 




<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The VBScript Network and Systems Administrator&#039;s Cafe &#187; Microsoft Windows</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/tag/microsoft-windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator</link>
	<description></description>
	<lastBuildDate>Tue, 11 Oct 2011 18:36:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>How to Add the Ability to Administer an IIS 6 Server From a XP Machine.</title>
		<link>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/how-to-add-the-ability-to-administer-and-iis-6-server-from-a-xp-machine/</link>
		<comments>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/how-to-add-the-ability-to-administer-and-iis-6-server-from-a-xp-machine/#comments</comments>
		<pubDate>Tue, 26 May 2009 14:49:06 +0000</pubDate>
		<dc:creator>Jerry Lees</dc:creator>
				<category><![CDATA[iis]]></category>
		<category><![CDATA[iis 6]]></category>
		<category><![CDATA[IIS6]]></category>
		<category><![CDATA[Microsoft Windows]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[web tools]]></category>
		<category><![CDATA[webmaster]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/how-to-add-the-ability-to-administer-and-iis-6-server-from-a-xp-machine/</guid>
		<description><![CDATA[In re-doing my laptop after a hard drive failure recently I’ve had to setup a bunch of stuff I had previously installed, one thing that several people have asked about (or didn&#8217;t know about) is the IIS6 MMC snap in. It allows you to Administer IIS6 from your desktop. It will give you the Internet [...]]]></description>
				<content:encoded><![CDATA[<p>In re-doing my laptop after a hard drive failure recently I’ve had to setup a bunch of stuff I had previously installed, one thing that several people have asked about (or didn&#8217;t know about) is the IIS6 MMC snap in. It allows you to Administer IIS6 from your desktop. It will give you the Internet Information Services (IIS6) Manager icon in Administrative tools and allow you to create custom MMC snap-ins for the web servers. It’s a huge time saver and allows you to do everything in IIS from your local machine (except administer SSL keys, so far as I can recall) that you can do while logged into the server—without logging onto the server!</p>
<p>First you’ll need IIS installed on your machine, via add/remove windows components in the add/remove programs control panel applet. After that run <a href="http://www.microsoft.com/Downloads/details.aspx?familyid=F9C1FB79-C903-4842-9F6C-9DB93643FDB7&amp;displaylang=en">IIS 6 Mgr setup.exe from Microsoft&#8217;s Site here</a>.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/how-to-add-the-ability-to-administer-and-iis-6-server-from-a-xp-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Word Tip: Keyboard shortcuts you may have never knew existed</title>
		<link>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/word-tip-keyboard-shortcuts-you-may-have-never-knew-existed/</link>
		<comments>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/word-tip-keyboard-shortcuts-you-may-have-never-knew-existed/#comments</comments>
		<pubDate>Fri, 15 May 2009 15:12:09 +0000</pubDate>
		<dc:creator>Jerry Lees</dc:creator>
				<category><![CDATA[Microsoft Word]]></category>
		<category><![CDATA[Microsoft Word tips]]></category>
		<category><![CDATA[short cut keys]]></category>
		<category><![CDATA[short cuts]]></category>
		<category><![CDATA[shortcut keys]]></category>
		<category><![CDATA[word]]></category>
		<category><![CDATA[Word Tips]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/word-tip-keyboard-shortcuts-you-may-have-never-knew-existed/</guid>
		<description><![CDATA[Recently, I&#8217;ve been doing more documentation than coding in VBScript (I&#8217;ve been coding, just in VB.Net recently) and have found some useful keyboard short cuts in Office that I thought I&#8217;d share with you all in a few blog posts, becasue while I know a lot about a lot of stuff&#8230; when it comes to [...]]]></description>
				<content:encoded><![CDATA[<p>Recently, I&#8217;ve been doing more documentation than coding in VBScript (I&#8217;ve been coding, just in VB.Net recently) and have found some useful keyboard short cuts in Office that I thought I&#8217;d share with you all in a few blog posts, becasue while I know a lot about a lot of stuff&#8230; when it comes to Office I&#8217;m still just another &#8220;user&#8221;. <img src='http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>These Shortcuts are for Microsoft word and help in formatting the page more quickly.</p>
<table border="0">
<tbody>
<tr>
<td>Decrease font size</td>
<td>Ctrl + Shift + &lt;</td>
</tr>
<tr>
<td>Increase font size</td>
<td>Ctrl + Shift + &gt;</td>
</tr>
<tr>
<td>Change font</td>
<td>Ctrl + Shift + F, then use the arrow keys to reach the new font</td>
</tr>
<tr>
<td>Change font size</td>
<td>Ctrl + Shift + P, then use the arrow keys to reach the new font size</td>
</tr>
<tr>
<td>Create page break</td>
<td>Ctrl + Enter</td>
</tr>
</tbody>
</table>
<p>Enjoy!</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/word-tip-keyboard-shortcuts-you-may-have-never-knew-existed/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Shortcut Tip: Quickly Navigate to a commonly used folder</title>
		<link>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/shortcut-tip-quickly-navigate-to-a-commonly-used-folder/</link>
		<comments>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/shortcut-tip-quickly-navigate-to-a-commonly-used-folder/#comments</comments>
		<pubDate>Mon, 11 May 2009 14:58:37 +0000</pubDate>
		<dc:creator>Jerry Lees</dc:creator>
				<category><![CDATA[short cuts]]></category>
		<category><![CDATA[tips and tricks]]></category>
		<category><![CDATA[windows tips]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/?p=313</guid>
		<description><![CDATA[I recently found a useful tip for those of you that always have tons of windows open, like me, and minimizing them all to get to an item on your desktop is just a pain. Create a shortcut with a hot key combination to open an item on your desktop! It works with all your [...]]]></description>
				<content:encoded><![CDATA[<p>I recently found a useful tip for those of you that always have tons of windows open, like me, and minimizing them all to get to an item on your desktop is just a pain. Create a shortcut with a hot key combination to open an item on your desktop! It works with all your windows open in their current location and is a HUGE time saver. here are the instructions</p>
<ol>
<li>Select the folder in Windows Explorer.</li>
<li>Create a shortcut, and place it on the desktop. (You create a shortcut by opening the folder, pointing to New on the File menu, then clicking Shortcut. Drag the shortcut to your desktop.)</li>
<li>Right–click the new shortcut, and then click Properties.</li>
<li>In the Properties dialog box, click the Shortcut tab, and in the Shortcut key box, enter a key combination (for example, CTRL+ALT+D or CTRL+SHIFT+D when D is for Documentation), and then click OK.</li>
</ol>
<p>The trick here is that the item MUST be on your desktop in order for the hot key to work&#8230; but then again, what&#8217;s one more thing on your desktop. <img src='http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Enjoy!</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/shortcut-tip-quickly-navigate-to-a-commonly-used-folder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OneNote Tip: Take better notes during meetings the easy way!</title>
		<link>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/onenote-tip-take-better-notes-during-meetings-the-easy-way/</link>
		<comments>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/onenote-tip-take-better-notes-during-meetings-the-easy-way/#comments</comments>
		<pubDate>Fri, 01 May 2009 13:11:34 +0000</pubDate>
		<dc:creator>Jerry Lees</dc:creator>
				<category><![CDATA[Microsoft Office]]></category>
		<category><![CDATA[office tips]]></category>
		<category><![CDATA[one note]]></category>
		<category><![CDATA[tips and tricks]]></category>
		<category><![CDATA[windows tips]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/?p=317</guid>
		<description><![CDATA[Microsoft has a product called one note that i really didn&#8217;t know a lot about. They really haven&#8217;t pushed it a lot and it just comes bundled with Office so I&#8217;d never really tried to use it, however, I found an article over at Microsoft&#8217;s site that gives an excellent set of tips for how [...]]]></description>
				<content:encoded><![CDATA[<p>Microsoft has a product called one note that i really didn&#8217;t know a lot about. They really haven&#8217;t pushed it a lot and it just comes bundled with Office so I&#8217;d never really tried to use it, however, I found an article over at Microsoft&#8217;s site that gives an excellent set of tips for how to use it to take better notes in meetings.</p>
<p>If you&#8217;re like me, you scribble notes (and doodle) on a notepad, open up word on your PDA, or if in a conference call full blown word on your laptop. You take notes as the meeting progresses and then later look back at your notes and wonder&#8230; &#8220;what was that I wrote about? That note doesn&#8217;t make any sense.&#8221;</p>
<p>Well Microsoft has a couple good tips <a href="http://www.microsoft.com/atwork/manageinfo/mtgnotes.mspx">at the one note site</a> to make your life easier taking notes.</p>
<p>Check them out!</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/onenote-tip-take-better-notes-during-meetings-the-easy-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Parsing the Windows Event log for specific data</title>
		<link>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/parsing-the-windows-event-log-for-specific-data/</link>
		<comments>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/parsing-the-windows-event-log-for-specific-data/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 13:44:42 +0000</pubDate>
		<dc:creator>Jerry Lees</dc:creator>
				<category><![CDATA[Eventlogs]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[systems management]]></category>
		<category><![CDATA[VBScript]]></category>
		<category><![CDATA[Win32_NTLogEvent]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/?p=106</guid>
		<description><![CDATA[If you&#8217;ve ever tried to find a specific event log entry in a system you know what a chore it can be to find them. Sure, you can filter on the event ID and get closer but, some applications (and system components) log every event that&#8217;s from the same source as the same event ID. [...]]]></description>
				<content:encoded><![CDATA[<p>If you&#8217;ve ever tried to find a specific event log entry in a system you know what a chore it can be to find them. Sure, you can filter on the event ID and get closer but, some applications (and system components) log every event that&#8217;s from the same source as the same event ID.</p>
<p>IIS is terribly bad about this! Additionally, Microsoft&#8217;s search filtering isn&#8217;t powerful enough to search in the even description or the event message. The script below solves that problem!</p>
<p><span style="color: #0000ff">GetLogInfo &#8220;ServerName&#8221;,&#8221;EventID&#8221;, &#8220;application&#8221;, &#8220;20081218&#8243;</span></p>
<p><span style="color: #0000ff">Function GetLogInfo( StrComputer1, EventID, EventLogType, YYYYMMDD)</span></p>
<p><span style="color: #0000ff"> Dim objWMIService, colItems, objItem<br />
 Dim TempStr</span></p>
<p><span style="color: #0000ff"> On Error Resume Next<br />
  &#8216; error control block<br />
  Set objWMIService = GetObject(&#8220;winmgmts:{impersonationLevel=impersonate}//&#8221; &amp; strComputer1 &amp; &#8220;\root\cimv2&#8243;)<br />
  Set colItems = objWMIService.ExecQuery (&#8220;Select * from Win32_NTLogEvent Where EventCode=&#8221; &amp; EventID &amp; &#8221; and logfile=&#8217;&#8221; &amp; EventlogType &amp; &#8220;&#8216;&#8221;)<br />
  For Each objItem in colItems<br />
       TempStr = &#8220;&#8221;<br />
       If mid(objItem.timegenerated,1,8) = YYYYMMDD Then<br />
         TempStr = objItem.message         <br />
         If Replace(TempStr,&#8221;Exception message: Request timed out.&#8221;,&#8221;") &lt;&gt; TempStr Then <br />
            TempStr = Mid(TempStr,InStr(1,TempStr,&#8221;Request URL: &#8220;)+13, 100)<br />
            TempStr = Mid(TempStr,1,InStr(1,TempStr,&#8221;.aspx&#8221;)+4)<br />
            WScript.Echo StrComputer1 &amp; &#8220;,&#8221; &amp; TempStr<br />
         End if<br />
       End if<br />
  Next<br />
 On Error GoTo 0<br />
End Function</span></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/parsing-the-windows-event-log-for-specific-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Downgrade Windows XP to Mac OS X&#8211; sort of</title>
		<link>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/downgrade-windows-xp-to-mac-os-x-sort-of/</link>
		<comments>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/downgrade-windows-xp-to-mac-os-x-sort-of/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 01:23:17 +0000</pubDate>
		<dc:creator>Jerry Lees</dc:creator>
				<category><![CDATA[interface replacements]]></category>
		<category><![CDATA[Microsoft Windows]]></category>
		<category><![CDATA[pranks]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/?p=188</guid>
		<description><![CDATA[Please forgive the title folks, I just couldn&#8217;t resist the jab to get your attention! I found this Windows UI Replacement a while back, looks like a pretty cool interface replacement for windows. It looks like it is actually a pretty cool prank&#8230; or a way to use a PC if you prefer the Mac. Simply download [...]]]></description>
				<content:encoded><![CDATA[<p>Please forgive the title folks, I just couldn&#8217;t resist the jab to get your attention!</p>
<p>I found this Windows UI Replacement a while back, looks like a pretty cool interface replacement for windows. It looks like it is actually a pretty cool prank&#8230; or a way to use a PC if you prefer the Mac.</p>
<p>Simply download the software from the link below and you will have <a href="http://www.howtogeek.com/howto/windows/make-your-xp-computer-look-like-os-x/" target="_blank">A Windows User Interface repacement that pretty closely mimics that of the Macintosh</a>!</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/downgrade-windows-xp-to-mac-os-x-sort-of/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding the owner of a process remotely with VBScript via the Win32_process class</title>
		<link>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/finding-the-owner-of-a-process-remotely-with-vbscript-via-the-win32_process-class/</link>
		<comments>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/finding-the-owner-of-a-process-remotely-with-vbscript-via-the-win32_process-class/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 15:18:13 +0000</pubDate>
		<dc:creator>Jerry Lees</dc:creator>
				<category><![CDATA[Administration tools]]></category>
		<category><![CDATA[Functions]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Systems Administration]]></category>
		<category><![CDATA[VBScript]]></category>
		<category><![CDATA[VBScript Functions]]></category>
		<category><![CDATA[win32_process]]></category>
		<category><![CDATA[Windows Management Interface]]></category>
		<category><![CDATA[WMI]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/?p=292</guid>
		<description><![CDATA[ Recently I had an issue where I needed to find the user running a series of processes on a large number of servers. Initially, it was a long process of logging onto each server then opening task manager and sorting by process name. After about 5 servers, I realized it was going to take hours [...]]]></description>
				<content:encoded><![CDATA[<p> Recently I had an issue where I needed to find the user running a series of processes on a large number of servers. Initially, it was a long process of logging onto each server then opening task manager and sorting by process name. After about 5 servers, I realized it was going to take hours to sort out the users running the processes&#8230; so I spent 30 minutes not preforming this process and wrote a script to do the rest of the work in less than a minute!</p>
<p>The function below uses the Win32_Process WMI class to enumerate processes running on a server that are named the same as the process name you give it. It then outputs the name of the user running the process.</p>
<p>Below is the function&#8230; Enjoy!</p>
<p> <span style="color: #0000ff">Function FindProcessOwner( StrComputer1, ProcessName)</span></p>
<p><span style="color: #0000ff">Dim objWMIService, colItems, objItem, Username, Domain</span></p>
<p><span style="color: #0000ff">On Error Resume Next<br />
&#8216; error control block<br />
Set objWMIService = GetObject(&#8220;winmgmts:{impersonationLevel=impersonate}//&#8221; &amp; strComputer1 &amp; &#8220;\root\cimv2&#8243;)<br />
If Err.Number &lt;&gt; 0 Then<br />
WScript.Echo &#8220;An Error Occured (&#8221; &amp; StrComputer1 &amp; &#8220;): &#8221; &amp; Err.Description<br />
End If<br />
Set colItems = objWMIService.ExecQuery (&#8220;Select * from Win32_Process Where Name = &#8216;&#8221; &amp; ProcessName &amp; &#8220;&#8216;&#8221;)<br />
WScript.Echo &#8220;Searching for processes on &#8221; &amp; StrComputer1 &amp; &#8220;.&#8221;<br />
WScript.Echo colItems.count &amp; &#8221; processes found.&#8221;<br />
For Each objItem in colItems<br />
objItem.getowner Username, Domain<br />
FindProcessOwner = FindProcessOwner &amp; VbCrLf &amp; strComputer1 &amp; &#8220;: &#8221; &amp; objItem.name &amp;_<br />
&#8220;(PID: &#8221; &amp; objItem.processid &amp; &#8220;) the owner is: &#8221; &amp; Domain &amp; &#8220;\&#8221; &amp; Username<br />
Next<br />
On Error GoTo 0<br />
End Function</span></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/finding-the-owner-of-a-process-remotely-with-vbscript-via-the-win32_process-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Writing a BGINFO like Script: Displaying Disk Statistics with WMI via the Win32_LogicalDisk class</title>
		<link>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/writing-a-bginfo-like-script-displaying-disk-statistics-with-wmi-via-the-win32_logicaldisk-class/</link>
		<comments>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/writing-a-bginfo-like-script-displaying-disk-statistics-with-wmi-via-the-win32_logicaldisk-class/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 11:05:23 +0000</pubDate>
		<dc:creator>Jerry Lees</dc:creator>
				<category><![CDATA[bginfo]]></category>
		<category><![CDATA[Systems Administration]]></category>
		<category><![CDATA[Systems administrator tools]]></category>
		<category><![CDATA[systems management]]></category>
		<category><![CDATA[systems reporting]]></category>
		<category><![CDATA[VBScript]]></category>
		<category><![CDATA[VBScript Functions]]></category>
		<category><![CDATA[Win32_logicaldisk]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/writing-a-bginfo-like-script-displaying-disk-statistics-with-wmi-via-the-win32_logicaldisk-class/</guid>
		<description><![CDATA[I recently had to provide the information displayed with BGINFO on a number of systems. Unfortunately, BGInfo only generates a bitmap, so far as I know, so I decided to write a script to generate the information and use this displayed information to send back to the person who requested it. The function below is [...]]]></description>
				<content:encoded><![CDATA[<p>I recently had to provide the information displayed with <a href="http://technet.microsoft.com/en-us/sysinternals/bb897557.aspx" target="_blank">BGINFO</a> on a number of systems. Unfortunately, BGInfo only generates a bitmap, so far as I know, so I decided to write a script to generate the information and use this displayed information to send back to the person who requested it.</p>
<p>The function below is a part of the script I mentioned. It retrieves and returns text that represents the total space and the total free space on all the physical hard drives in a system.</p>
<p>You can view all the scripts in this <a href="http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/tag/bginfo/">BGINFO series here</a>.</p>
<p>Here is the code:</p>
<p><span style="color: #0000ff">Function GetDiskInfo(strComputer)<br />
Dim colItems, objItem, address<br />
Dim StrQuery<br />
Dim objWMIService</span></p>
<p><span style="color: #0000ff"> StrQuery = &#8220;SELECT * FROM Win32_logicaldisk&#8221;<br />
Set objWMIService = GetObject(&#8220;winmgmts:\\&#8221; &amp; strComputer &amp; &#8220;\root\CIMV2&#8243;)<br />
Set colItems = objWMIService.ExecQuery(strQuery,,48)<br />
GetDiskInfo = VbCrLf</span></p>
<p><span style="color: #0000ff"> For Each objItem in colItems<br />
if objitem.MediaType = 12 Then<br />
GetDiskInfo = GetDiskInfo &amp; vbTab &amp; objItem.Caption &amp; &#8220;\ &#8221; &amp; Round((((objItem.size/1024)/1024)/1024),2) &amp; &#8221; GB Total with &#8221; &amp; Round((((objItem.Freespace/1024)/1024)/1024),2) &amp; &#8221; GB free&#8221; &amp; &#8221; (&#8221; &amp; objitem.filesystem &amp; &#8220;)&#8221; &amp; VbCrLf<br />
End If<br />
Next<br />
End Function<br />
</span></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/writing-a-bginfo-like-script-displaying-disk-statistics-with-wmi-via-the-win32_logicaldisk-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Retrieving the account IIS is using as the anonymous user account with VBScript</title>
		<link>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/retrieving-the-account-iis-is-using-as-the-anonymous-user-account-with-vbscript/</link>
		<comments>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/retrieving-the-account-iis-is-using-as-the-anonymous-user-account-with-vbscript/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 08:00:58 +0000</pubDate>
		<dc:creator>Jerry Lees</dc:creator>
				<category><![CDATA[iis]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Systems Administration]]></category>
		<category><![CDATA[systems management]]></category>
		<category><![CDATA[VBScript]]></category>
		<category><![CDATA[VBScript Functions]]></category>
		<category><![CDATA[web sites]]></category>
		<category><![CDATA[web tools]]></category>
		<category><![CDATA[working with objects]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/retrieving-the-account-iis-is-using-as-the-anonymous-user-account-with-vbscript/</guid>
		<description><![CDATA[I recently posted a script that retrieved the anonymous user password for a server in IIS. This script I posted, Using the IIS ADSI object to retrieve the anonymous user password for a server via VBScript, came in quite handy in a pinch, but not knowing the anonymous user account the password goes with can [...]]]></description>
				<content:encoded><![CDATA[<p>I recently posted a script that retrieved the anonymous user password for a server in IIS. This script I posted, <a href="../using-the-iis-adsi-object-to-retrieve-the-anonymous-user-password-for-a-server-via-vbscript">Using the IIS ADSI object to retrieve the anonymous user password for a server via VBScript</a>, came in quite handy in a pinch, but not knowing the anonymous user account the password goes with can also be a pain.Luckily I had that piece of information in the script as well!</p>
<p>So, I’ve wrapped that part of the script into a function for your use as well. Below is a snippet from the script to display the user account.</p>
<p><span style="color: #0000ff">Function Get_IUSR_Username(ServerName)<br />
Dim IIsObject</span></p>
<p>Set IIsObject = GetObject (&#8220;IIS://&#8221; &amp; ServerName &amp; &#8220;/w3svc&#8221;)<br />
on Error resume Next<br />
Get_IUSR_Username = IIsObject.Get(&#8220;AnonymousUserName&#8221;)<br />
On Error GoTo 0<br />
End Function</p>
<p>Enjoy!</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/retrieving-the-account-iis-is-using-as-the-anonymous-user-account-with-vbscript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using the IIS ADSI object to retrieve the anonymous user password for a server via VBScript</title>
		<link>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/using-the-iis-adsi-object-to-retrieve-the-anonymous-user-password-for-a-server-via-vbscript/</link>
		<comments>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/using-the-iis-adsi-object-to-retrieve-the-anonymous-user-password-for-a-server-via-vbscript/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 15:53:56 +0000</pubDate>
		<dc:creator>Jerry Lees</dc:creator>
				<category><![CDATA[iis]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Systems Administration]]></category>
		<category><![CDATA[Toolkit]]></category>
		<category><![CDATA[VBScipt]]></category>
		<category><![CDATA[VBScript]]></category>
		<category><![CDATA[VBScript Functions]]></category>
		<category><![CDATA[working with objects]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/using-the-iis-adsi-object-to-retrieve-the-anonymous-user-password-for-a-server-via-vbscript/</guid>
		<description><![CDATA[I recently had to change the anonymous user account for a change request for a site in IIS, but unfortunately the change did not work and we had to roll it back. However, I didn’t have and wouldn’t have known the account’s password since IIS and windows changes it periodically. So, out came the scripting [...]]]></description>
				<content:encoded><![CDATA[<p>I recently had to change the anonymous user account for a change request for a site in IIS, but unfortunately the change did not work and we had to roll it back. However, I didn’t have and wouldn’t have known the account’s password since IIS and windows changes it periodically.</p>
<p>So, out came the scripting tool belt and I found that I had a script written previously that let me get the anonymous user account and password through the IIS ADSI object.</p>
<p>Below is a snippet from the script to display the password.</p>
<p><span style="color: #0000ff">Function Get_IUSR_Password(ServerName)<br />
   Dim IIsObject<br />
   <br />
   Set IIsObject = GetObject (&#8220;IIS://&#8221; &amp; ServerName &amp; &#8220;/w3svc&#8221;)<br />
   on Error resume Next<br />
   Get_IUSR_Password = IIsObject.Get(&#8220;AnonymousUserPass&#8221;)<br />
   On Error GoTo 0<br />
End Function </span></p>
<p>Enjoy!</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/using-the-iis-adsi-object-to-retrieve-the-anonymous-user-password-for-a-server-via-vbscript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
