 




<?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; Administration tools</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/tag/administration-tools/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>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>Eventlog search tool &#8212; Find quick help with windows event log entries</title>
		<link>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/eventlog-search-tool-find-quick-help-with-windows-event-log-entries/</link>
		<comments>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/eventlog-search-tool-find-quick-help-with-windows-event-log-entries/#comments</comments>
		<pubDate>Fri, 07 Mar 2008 22:22:32 +0000</pubDate>
		<dc:creator>Jerry Lees</dc:creator>
				<category><![CDATA[Administration tools]]></category>
		<category><![CDATA[DataCenter]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/eventlog-search-tool-find-quick-help-with-windows-event-log-entries/</guid>
		<description><![CDATA[While not VBScript related, I found this Microsoft Eventlog and Error Message Search a few days ago as I stumbled around looking for tools that I thought network administrators would need on my site that I&#8217;ve been toying with&#8211; I had to share the tool with you as well!  The tool itself is an awesome resource, similar to [...]]]></description>
				<content:encoded><![CDATA[<p>While not VBScript related, I found this <a href="http://www.microsoft.com/technet/support/ee/ee_advanced.aspx">Microsoft Eventlog and Error Message Search</a> a few days ago as I stumbled around looking for tools that I thought network administrators would need on <a href="http://www.websystemsadministration.com">my site</a> that I&#8217;ve been toying with&#8211; I had to share the tool with you as well!</p>
<p> The tool itself is an awesome resource, similar to <a href="http://www.eventid.net/">EventID.net</a>&#8211; except it&#8217;s <strong>FREE </strong>and it comes from Microsoft themselves providing links to Microosft content about the event entry or error message.</p>
<p> You can search for any combination of the following:</p>
<p>Microsoft Product|<br />
Version<br />
Message ID<br />
Event Source<br />
File Name<br />
Language</p>
<p>When you do it takes you to a search result page that lists the available results for your specific search, each seem to have not only an example of the message, but also an explanation of what the event means&#8230;. and the best part a section entitled <em><strong>User Action</strong></em> that gives a possible solution for the problem!</p>
<p> Enjoy the tip!</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/eventlog-search-tool-find-quick-help-with-windows-event-log-entries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
