<?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>Andrew Morgan &#187; Windows</title>
	<atom:link href="http://andrewmorgan.ie/tag/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://andrewmorgan.ie</link>
	<description>Grumpy ramblings</description>
	<lastBuildDate>Fri, 30 Jun 2017 09:24:25 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.0</generator>
	<item>
		<title>Viewing open files on a file server from powershell.</title>
		<link>http://andrewmorgan.ie/2012/12/viewing-open-files-on-a-file-server-from-powershell/</link>
		<comments>http://andrewmorgan.ie/2012/12/viewing-open-files-on-a-file-server-from-powershell/#comments</comments>
		<pubDate>Wed, 05 Dec 2012 14:55:23 +0000</pubDate>
		<dc:creator><![CDATA[andyjmorgan]]></dc:creator>
				<category><![CDATA[Clustering]]></category>
		<category><![CDATA[PowerShell Scripting]]></category>
		<category><![CDATA[Server Based Computing]]></category>
		<category><![CDATA[Virtual Desktop Infrastructure]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows Server]]></category>
		<category><![CDATA[XenApp]]></category>
		<category><![CDATA[XenDesktop]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SBC]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[VDI]]></category>
		<category><![CDATA[xenapp]]></category>

		<guid isPermaLink="false">http://andrewmorgan.ie/?p=2480</guid>
		<description><![CDATA[So this is a situation you should all be aware of in an SBC / VDI environment, despite all warnings, you&#8217;ve redirected folders to your network drive and your file servers are screaming in agony? Having been in this situation recently, I needed to audit and report on the types of files open on the file server, my hunch was a certain select number of users were running applications (like *gulp* lotus notes) from the network share. Disappointed with the [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><img class="alignright size-full" alt="/wp-content/uploads/2011/03/windows_powershell_icon.png?w=58&amp;h=58&amp;h=58" src="/wp-content/uploads/2011/03/windows_powershell_icon.png?w=58&amp;h=58&amp;h=58" height="58" width="58" />So this is a situation you should all be aware of in an SBC / VDI environment, despite all <a href="http://helgeklein.com/blog/2011/11/folder-redirection-denial-of-service-waiting-to-happen/" target="_blank">warnings</a>, you&#8217;ve redirected folders to your network drive and your file servers are screaming in agony?</p>
<p>Having been in this situation recently, I needed to audit and report on the types of files open on the file server, my hunch was a certain select number of users were running applications (like *gulp* lotus notes) from the network share.</p>
<p>Disappointed with the powershell scripts on the interwebs, I decided to write my own function to perform this task:</p>
<p>[sourcecode language=&#8221;powershell&#8221;]<br />
function get-openfiles{<br />
param(<br />
    $computername=@($env:computername),<br />
    $verbose=$false)<br />
    $collection = @()<br />
foreach ($computer in $computername){<br />
    $netfile = [ADSI]&quot;WinNT://$computer/LanmanServer&quot;</p>
<p>        $netfile.Invoke(&quot;Resources&quot;) | foreach {<br />
            try{<br />
                $collection += New-Object PsObject -Property @{<br />
        		  Id = $_.GetType().InvokeMember(&quot;Name&quot;, &#8216;GetProperty&#8217;, $null, $_, $null)<br />
        		  itemPath = $_.GetType().InvokeMember(&quot;Path&quot;, &#8216;GetProperty&#8217;, $null, $_, $null)<br />
        		  UserName = $_.GetType().InvokeMember(&quot;User&quot;, &#8216;GetProperty&#8217;, $null, $_, $null)<br />
        		  LockCount = $_.GetType().InvokeMember(&quot;LockCount&quot;, &#8216;GetProperty&#8217;, $null, $_, $null)<br />
        		  Server = $computer<br />
        		}<br />
            }<br />
            catch{<br />
                if ($verbose){write-warning $error[0]}<br />
            }<br />
        }<br />
    }<br />
    Return $collection<br />
}<br />
[/sourcecode]</p>
<p>The function above (get-openfiles) has been written to accept an array of servers to the command line and it will return the following items:</p>
<ul>
<li>The ID of the open file.</li>
</ul>
<ul>
<li>The server it&#8217;s open from.</li>
</ul>
<ul>
<li>The username who has the file open.</li>
</ul>
<ul>
<li>The amount of locks the file has.</li>
</ul>
<p><strong>A couple of quick examples for using this command are below:<br />
<code><br />
</code><br />
</strong> <span style="text-decoration:underline;">Retrieving open files from server1:</span><br />
<code><br />
</code><br />
<img class="aligncenter" alt="full" src="/wp-content/uploads/2012/12/full.png" height="261" width="595" /><br />
<code><br />
</code></p>
<p>[sourcecode language=&#8221;powershell&#8221;]get-openfiles -computername server1 | select server,itempath,lockcount[/sourcecode]</p>
<p><code><br />
</code><br />
<span style="text-decoration:underline;">Retrieve a count of open files that end with the nsf file type (<em>Lotus Notes</em>):</span><br />
<code><br />
</code><br />
<img class="aligncenter size-full wp-image-2483" alt="count" src="/wp-content/uploads/2012/12/count.png" height="37" width="595" /><br />
<code><br />
</code></p>
<p>[sourcecode language=&#8221;powershell&#8221;](get-open files -computername server1,server2 | ? {$_.itempath -like &quot;*.nsf*&quot;}).count()[/sourcecode]</p>
<p><code><br />
</code><br />
<span style="text-decoration:underline;">Retrieve a report of total open files on a number of file servers:</span><br />
<code><br />
</code><br />
<img class="aligncenter size-full wp-image-2487" alt="report" src="/wp-content/uploads/2012/12/report.png" height="64" width="595" /></p>
<p>&nbsp;</p>
<p>[sourcecode language=&#8221;powershell&#8221;]get-openfiles -computername server1,server2,server3,server4,server5 | group -property server[/sourcecode]</p>
<p><code> </code></p>
]]></content:encoded>
			<wfw:commentRss>http://andrewmorgan.ie/2012/12/viewing-open-files-on-a-file-server-from-powershell/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Monitoring Storage disk queue&#8217;s and IO with PowerShell</title>
		<link>http://andrewmorgan.ie/2012/11/monitoring-storage-disk-queues-and-io-with-powershell/</link>
		<comments>http://andrewmorgan.ie/2012/11/monitoring-storage-disk-queues-and-io-with-powershell/#comments</comments>
		<pubDate>Fri, 30 Nov 2012 09:38:45 +0000</pubDate>
		<dc:creator><![CDATA[andyjmorgan]]></dc:creator>
				<category><![CDATA[Citrix]]></category>
		<category><![CDATA[PowerShell Scripting]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows Server]]></category>
		<category><![CDATA[XenApp]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[xenapp]]></category>

		<guid isPermaLink="false">http://andrewmorgan.ie/?p=2469</guid>
		<description><![CDATA[Here&#8217;s one that used to bother me alot. The problem usually went as follows: &#8220;Your XenApp servers have very high disk queue&#8217;s and IO&#8221; &#8220;What&#8217;s causing it?&#8221; &#8220;dunno&#8230;&#8221; With Server 2008, the task manager&#8217;s resource monitor feature will help you find these items. But in server 2003 this was a perilous task. The specific details for disk io per process are stored in performance monitor under each specific process running. Trying to analyse each process was a massive pain, but [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><img class="alignright size-full" alt="/wp-content/uploads/2011/03/windows_powershell_icon.png?w=58&amp;h=58&amp;h=58" src="/wp-content/uploads/2011/03/windows_powershell_icon.png?w=58&amp;h=58&amp;h=58" height="58" width="58" />Here&#8217;s one that used to bother me alot. The problem usually went as follows:</p>
<p>&#8220;Your XenApp servers have very high disk queue&#8217;s and IO&#8221;</p>
<p>&#8220;What&#8217;s causing it?&#8221;</p>
<p>&#8220;dunno&#8230;&#8221;</p>
<p>With Server 2008, the task manager&#8217;s resource monitor feature will help you find these items. But in server 2003 this was a perilous task. The specific details for disk io per process are stored in performance monitor under each specific process running. Trying to analyse each process was a massive pain, but powershell can do some very clever work to help alleviate this!</p>
<p>I wrote two quick functions which act similar to &#8220;top&#8221; in linux for giving an on screen view, updating at interval of what exactly is creating IO activity. These two functions are:</p>
<p>get-IODataBytes:</p>
<p><img class="aligncenter size-full wp-image-2470" alt="storageio" src="/wp-content/uploads/2012/11/storageio.png" height="233" width="595" /></p>
<p>Get-IODataOperations</p>
<p><img class="aligncenter size-full wp-image-2471" alt="storageioops" src="/wp-content/uploads/2012/11/storageioops.png" height="240" width="595" /></p>
<p>The code for these functions are below:</p>
<p>[sourcecode language=&#8221;powershell&#8221;]<br />
function get-iodatabytes{<br />
    $result=(get-counter -counter &quot;Process(*)IO Data Bytes/sec&quot; -ea 0).countersamples | ? {$_.cookedvalue -gt 0} | select instancename,@{Name=&quot;SessionID&quot;;Expression={if ($_.path.contains(&quot;#&quot;)){($_.path.split(&quot;#)&quot;))[1]}else{&quot;0&quot;}}},@{Name=&quot;IO Data Bytes/sec&quot;;Expression={[math]::Round($_.cookedvalue,0)}},@{Name=&quot;IO Data KBytes/sec&quot;;Expression={[math]::Round($_.cookedvalue / 1024,0)}} | sort -Descending &quot;IO Data Bytes/sec&quot; | ft<br />
    $currentqueue=(((get-counter -counter &quot;PhysicalDisk(0 C:)Current Disk Queue Length&quot; -ea 0).countersamples) | select cookedvalue).cookedvalue<br />
    clear<br />
    write-warning &quot;Hit [CTRL] + [C] to exit live capture&quot;<br />
    write-host &quot;Current Disk queue: $currentqueue&quot;<br />
    return $Result<br />
}</p>
<p>FUnction get-IODataOperations {<br />
    $result=(get-counter -counter &quot;Process(*)IO Data Operations/sec&quot; -ea 0).countersamples | ? {$_.cookedvalue -gt 0} | select instancename,@{Name=&quot;SessionID&quot;;Expression={if ($_.path.contains(&quot;#&quot;)){($_.path.split(&quot;#)&quot;))[1]}else{&quot;0&quot;}}},@{Name=&quot;IO Data Operations/sec&quot;;Expression={[math]::Round($_.cookedvalue,0)}} | sort -Descending &quot;IO Data Operations/sec&quot; | ft<br />
    $currentqueue=(((get-counter -counter &quot;PhysicalDisk(0 C:)Current Disk Queue Length&quot; -ea 0).countersamples) | select cookedvalue).cookedvalue<br />
    clear<br />
    write-warning &quot;Hit [CTRL] + [C] to exit live capture&quot;<br />
    write-host &quot;Current Disk queue: $currentqueue&quot;<br />
    return $Result<br />
}</p>
<p>[/sourcecode]</p>
<p>if you wish to loop one of these functions, simply use the following code:</p>
<p>[sourcecode language=&#8221;powershell&#8221;]<br />
while ($true){<br />
get-iodataoperations<br />
start-sleep 1<br />
}<br />
[/sourcecode]</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewmorgan.ie/2012/11/monitoring-storage-disk-queues-and-io-with-powershell/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>The curious case of missing file shares on a Microsoft File Server Cluster.</title>
		<link>http://andrewmorgan.ie/2012/01/the-curious-case-of-missing-file-shares-on-a-microsoft-file-server-cluster/</link>
		<comments>http://andrewmorgan.ie/2012/01/the-curious-case-of-missing-file-shares-on-a-microsoft-file-server-cluster/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 12:56:28 +0000</pubDate>
		<dc:creator><![CDATA[andyjmorgan]]></dc:creator>
				<category><![CDATA[Clustering]]></category>
		<category><![CDATA[Windows Server]]></category>
		<category><![CDATA[Cluster]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://andrewmorgan.ie/?p=1271</guid>
		<description><![CDATA[I had a very unusual issue recently where, after a fail over one of my file cluster resources didn&#8217;t publish all shares to the users. Some shares did come up, but many of the shares were missing resulting in users being locked out of their network drives. I immediately jumped to the registry HKEY_LOCAL_MACHINEClusterResources and found the resource by guid of my misbehaving file cluster. I could see all the shares missing were still published as resources as below: Upon reviewing the event logs, each [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><a href="/wp-content/uploads/2012/01/cluster-icon.png"><img class="alignright size-full wp-image-1273" title="cluster icon" src="/wp-content/uploads/2012/01/cluster-icon.png" alt="" width="129" height="109" /></a>I had a very unusual issue recently where, after a fail over one of my file cluster resources didn&#8217;t publish all shares to the users. Some shares did come up, but many of the shares were missing resulting in users being locked out of their network drives.</p>
<p>I immediately jumped to the registry HKEY_LOCAL_MACHINEClusterResources and found the resource by guid of my misbehaving file cluster. I could see all the shares missing were still published as resources as below:</p>
<p><a href="/wp-content/uploads/2012/01/registry-entry.png"><img class="aligncenter size-full wp-image-1272" title="registry entry" src="/wp-content/uploads/2012/01/registry-entry.png" alt="" width="600" height="153" /></a></p>
<p>Upon reviewing the event logs, each time the cluster was failed over, each missing share was logging the following event:</p>
<pre>Log Name: System
Source: Microsoft-Windows-FailoverClustering
Date: xx/xx/xxxx 08:00:27
Event ID: 1068
Task Category: File Server Resource
Level: Warning
Keywords:
User: SYSTEM
Computer: XXXXXXXXXXX.Domain.com
Description:
Cluster file share resource 'File Server FileServer' cannot be brought online. Creation of file share 'Vedeni' (scoped to network name Fileserver) failed due to error '5'. This operation will be automatically retried.</pre>
<p>Upon reviewing the share permissions, an over zealous administrator had trimmed the NTFS permissions, removing the local system account. Upon each cluster resource coming online, the cluster uses the local system account to enumerate the shares and present them. Remove this account and your shares wont come online!</p>
<p>This  account doesnt need to be on every folder, just each folder a share is based on. E.g. if you share d:sharefinance as serverfinance, only the finance folder needs access granted to the system account.</p>
<p><a href="/wp-content/uploads/2012/01/perms.png"><img class="aligncenter size-full wp-image-1275" title="perms" src="/wp-content/uploads/2012/01/perms.png" alt="" width="362" height="149" /></a></p>
<p>To resolve, configure the system account to have access to the folder on &#8220;this folder only&#8221; then restart the file server resource. The resource will come on-line and your shares will be available again!</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewmorgan.ie/2012/01/the-curious-case-of-missing-file-shares-on-a-microsoft-file-server-cluster/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Strange &#8220;Recent Places&#8221;  issue in windows 7 / Server 2008 R2.</title>
		<link>http://andrewmorgan.ie/2011/09/strange-recent-places-issue-in-windows-7-server-2008-r2/</link>
		<comments>http://andrewmorgan.ie/2011/09/strange-recent-places-issue-in-windows-7-server-2008-r2/#comments</comments>
		<pubDate>Wed, 14 Sep 2011 14:37:11 +0000</pubDate>
		<dc:creator><![CDATA[andyjmorgan]]></dc:creator>
				<category><![CDATA[Remote Desktop Services (RDS)]]></category>
		<category><![CDATA[Server Based Computing]]></category>
		<category><![CDATA[Windows Server]]></category>
		<category><![CDATA[Server 2008 r2]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://andrewmorgan.ie/?p=701</guid>
		<description><![CDATA[Just a quick post about a funny little issue I saw recently. First to give some background on this wonderful little folder. The recent places folder you see in the windows explorer Favorites menu is a collaboration of all the folders you have saved to recently. Windows compiles this folder view by first looking at your &#8220;Recent Files&#8221; in %userprofile%AppDataRoamingMicrosoftWindowsRecent and then filtering the results by directory. Leaving you with a view of all the folders you have worked in [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><a href="/wp-content/uploads/2011/09/recenticon1.png"><img class="alignright size-full wp-image-706" title="recenticon" src="/wp-content/uploads/2011/09/recenticon1.png" alt="" width="108" height="100" /></a>Just a quick post about a funny little issue I saw recently.</p>
<p>First to give some background on this wonderful little folder. The recent places folder you see in the windows explorer Favorites menu is a collaboration of all the folders you have saved to recently. Windows compiles this folder view by first looking at your &#8220;Recent Files&#8221; in %userprofile%AppDataRoamingMicrosoftWindowsRecent and then filtering the results by directory. Leaving you with a view of all the folders you have worked in recently.</p>
<p>In my case, when using mandatory profiles in Server 2008 R2 and Windows 7, the Recent Places Folder in windows Explorer is spelled incorrectly. Instead of being &#8220;Recent Places&#8221;, it&#8217;s listed as &#8220;RecentPlaces&#8221; without the space.</p>
<p>When this issue occurs, the folder will correctly list the folders you have recently worked in, but the name will be incorrect for the duration of your session.</p>
<p><a href="/wp-content/uploads/2011/09/recentplaces.png"><img class="aligncenter size-full wp-image-702" title="recentplaces" src="/wp-content/uploads/2011/09/recentplaces.png" alt="" width="306" height="191" /></a></p>
<p>This will occur if active setup has not run on your profile, or as part of your profile creation. It seems despite <a href="http://support.microsoft.com/kb/973289" target="_blank">following the Microsoft guide</a> to the letter, active setup still needs to run on a Mandatory profile each time a user logs in&#8230;</p>
<p>The individual component of active setup responsible for many things including this profile adjustment is {89820200-ECBD-11cf-8B85-00AA005B4340} found in these registry locations:</p>
<pre>HKEY_LOCAL_MACHINESOFTWAREMicrosoftActive SetupInstalled Components
HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftActive SetupInstalled Components</pre>
<p>This active setup component run&#8217;s the following command:</p>
<pre>C:WindowsSystem32regsvr32.exe /s /n /i:U shell32.dll</pre>
<p>To fix the issue, reinstate the active setup keys you wrongfully deleted (bad admin) or run the above command.</p>
<p>Once you&#8217;ve done this the folder will be displayed correctly.</p>
<p><img class="aligncenter size-full wp-image-708" title="correctrecentplaces" src="/wp-content/uploads/2011/09/correctrecentplaces.png" alt="" width="169" height="102" /></p>
<p>For a great explanation of Active setup, check out Helge&#8217;s write up <a href="http://helgeklein.com/blog/2010/04/active-setup-explained/" target="_blank">over here</a>.</p>
<p>If you still hate active setup (like I do) the above command can be run on  as part of a login script or better yet as part of a RES Workspace Manager &#8220;Execute Command&#8221; without the annoying active setup pause. This will then fix this issue each login before the user see&#8217;s it.</p>
<p>This command is actually really useful to be aware of and I&#8217;ll blog about this a little later in the week about some other applications of this seemingly routine command.</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewmorgan.ie/2011/09/strange-recent-places-issue-in-windows-7-server-2008-r2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Intermittent Thin Client disconnects</title>
		<link>http://andrewmorgan.ie/2009/10/intermittent-thin-client-disconnects/</link>
		<comments>http://andrewmorgan.ie/2009/10/intermittent-thin-client-disconnects/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 09:58:50 +0000</pubDate>
		<dc:creator><![CDATA[andyjmorgan]]></dc:creator>
				<category><![CDATA[Citrix]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://andymorgan.wordpress.com/?p=267</guid>
		<description><![CDATA[We recently had a problem after a Citrix rebuild where we were seeing thin clients intermittently disconnect from the citrix servers. Nothing in the event logs, just a lovely error on the Thin Client (Igel) reporting a Driver protocol error. The users could immediately reconnect, but 10-15 disconnects a day was getting a bit annoying for poor Joe Soap. The problem was very difficult to track down due to absolutely no logging or even acknowledgement of the problem in any [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><img class="alignright" src="/wp-content/uploads/2009/01/ctxapp13.png?w=96&amp;h=96&amp;h=96" alt="" width="96" height="96" />We recently had a problem after a Citrix rebuild where we were seeing thin clients intermittently disconnect from the citrix servers. Nothing in the event logs, just a lovely error on the Thin Client (Igel) reporting a Driver protocol error. The users could immediately reconnect, but 10-15 disconnects a day was getting a bit annoying for poor Joe Soap.</p>
<p>The problem was very difficult to track down due to absolutely no logging or even acknowledgement of the problem in any event logs.</p>
<p>We found that the reinstall was enabling the advanced IP features in Windows server 2003 involving TCP Offloading from the Nic to the CPU, Citrix and particularly thin clients do not like this feature one bit.</p>
<p>To disable these options, enter the following keys into the registry and reboot.</p>
<p>[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters]<br />
&#8220;EnableTCPA&#8221;=dword:00000000<br />
&#8220;EnableRSS&#8221;=dword:00000000<br />
&#8220;EnableTCPChimney&#8221;=dword:00000000</p>
<p>On a side note, I&#8217;ll be disabling these keys going forward on all server builds, its not a nice feature to implement unless the application is aware of the offload.</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewmorgan.ie/2009/10/intermittent-thin-client-disconnects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to add a domain user to the local admins on multiple servers.</title>
		<link>http://andrewmorgan.ie/2008/06/how-to-add-a-domain-user-to-the-local-admins/</link>
		<comments>http://andrewmorgan.ie/2008/06/how-to-add-a-domain-user-to-the-local-admins/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 10:26:10 +0000</pubDate>
		<dc:creator><![CDATA[andyjmorgan]]></dc:creator>
				<category><![CDATA[Batch Scripting]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows Server]]></category>
		<category><![CDATA[psexec]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[Sysinternals]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://joekickass.wordpress.com/?p=56</guid>
		<description><![CDATA[Needed to add a user to the local administrators on 16 citrix servers, below is the code if you need it. psexec @servers.txt cmd /c &#8220;net localgroup Administrators /add domainusername&#8221; this doesnt work with multiple usernames at one time. get psexec here: www.sysinternals.com servers.txt is a text file containing a list of servers, i.e: server1 server2 etc A]]></description>
				<content:encoded><![CDATA[<p><img class="alignright" src="/wp-content/uploads/2008/07/images.jpg?w=144&amp;h=108&amp;h=108" alt="" width="144" height="108" />Needed to add a user to the local administrators on 16 citrix servers, below is the code if you need it.</p>
<p><strong>psexec @servers.txt cmd /c &#8220;net localgroup Administrators /add domainusername&#8221;</strong></p>
<p>this doesnt work with multiple usernames at one time.</p>
<p>get psexec here: www.sysinternals.com</p>
<p>servers.txt is a text file containing a list of servers, i.e:</p>
<p>server1</p>
<p>server2</p>
<p>etc</p>
<p>A</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewmorgan.ie/2008/06/how-to-add-a-domain-user-to-the-local-admins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
