<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Vbscript on BAFM</title><link>https://christian.blog.pakiheim.de/tags/vbscript/</link><description>Recent content in Vbscript on BAFM</description><generator>Hugo -- 0.160.1</generator><language>en</language><lastBuildDate>Fri, 08 Aug 2014 08:34:49 +0000</lastBuildDate><atom:link href="https://christian.blog.pakiheim.de/tags/vbscript/index.xml" rel="self" type="application/rss+xml"/><item><title>VBscript: Query remote OS and SP info</title><link>https://christian.blog.pakiheim.de/posts/2014-08-08_vbscript-query-remote-os-and-sp-info/</link><pubDate>Fri, 08 Aug 2014 08:34:49 +0000</pubDate><guid isPermaLink="false">http://blog.barfoo.org/?p=2953</guid><description>&lt;p&gt;As I wrote &lt;a href="https://christian.blog.pakiheim.de/posts/2014-08-08_windows-server-2003-sp1-wsus-and-security-updates" title="Windows Server 2003 SP1, WSUS and Security Updates"&gt;on Thursday&lt;/a&gt;, I am battling with Windows Server 2003. Now I got a list out of our change management database, which sadly ain&amp;rsquo;t that accurate. So in order to get reliable information about the target systems (in order to do some accurate planning), I ended up writing a small vbscript which simply takes the hostname on the command line (cscript //NoLogo win_sp_level.vbs 10.0.0.5) and returns a csv-like element.&lt;/p&gt;</description></item><item><title>VBscript: Query remote OS and SP info (continued)</title><link>https://christian.blog.pakiheim.de/posts/2010-02-15_vbscript-query-remote-os-and-sp-info-continued/</link><pubDate>Mon, 15 Feb 2010 20:34:34 +0000</pubDate><guid isPermaLink="false">http://blog.barfoo.org/?p=2975</guid><description>&lt;p&gt;After some more crunching on &lt;a href="https://christian.blog.pakiheim.de/posts/2010-02-15_vbscript-query-remote-os-and-sp-info-continued" title="VBscript: Query remote OS and SP info"&gt;my VBscript&lt;/a&gt;, I think I finally have a working script that runs through a csv-list I point it to and walk onto each system (by ip-address only sadly) and query the os and the Service Pack that is installed. The CSV may look like this:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt" id="hl-0-1"&gt;&lt;a class="lnlinks" href="#hl-0-1"&gt;1&lt;/a&gt;
&lt;/span&gt;&lt;span class="lnt" id="hl-0-2"&gt;&lt;a class="lnlinks" href="#hl-0-2"&gt;2&lt;/a&gt;
&lt;/span&gt;&lt;span class="lnt" id="hl-0-3"&gt;&lt;a class="lnlinks" href="#hl-0-3"&gt;3&lt;/a&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Hostname;IP;Model;Description;OS;Service-Pack;BL;Priority
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;epimetheus;10.0.0.2;VMware guest;File-Server
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;hades;10.0.0.1;VMware guest;Core-Router
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;After saving that one, and running a cscript //NoLogo win_sp_level.vbs you should find a completed list like this:&lt;/p&gt;</description></item></channel></rss>