<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>IT works, But I dont know why...</title>
	<atom:link href="http://andymorgan.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://andymorgan.wordpress.com</link>
	<description>Scripts and Fixes...</description>
	<lastBuildDate>Tue, 24 Nov 2009 10:33:11 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='andymorgan.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/cf75d367f3bc12a5a90274af2ec02570?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>IT works, But I dont know why...</title>
		<link>http://andymorgan.wordpress.com</link>
	</image>
			<item>
		<title>Citrix Clipboard issues in a published desktop environment</title>
		<link>http://andymorgan.wordpress.com/2009/11/24/citrix-clipboard-issues-in-a-published-desktop-environment/</link>
		<comments>http://andymorgan.wordpress.com/2009/11/24/citrix-clipboard-issues-in-a-published-desktop-environment/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 10:17:32 +0000</pubDate>
		<dc:creator>Andrew Morgan</dc:creator>
				<category><![CDATA[Citrix]]></category>
		<category><![CDATA[App-V]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://andymorgan.wordpress.com/?p=273</guid>
		<description><![CDATA[It amazes me in this day and age that something as fundamentally simple as the clipboard in a windows environment can have issues, but it does happen&#8230; Especially in a multi user environment.
If you experience clipboard issues with office, Lotus notes and other copy and paste capable programs you have have a session memory issue!
The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andymorgan.wordpress.com&blog=3794180&post=273&subd=andymorgan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img class="alignright" src="http://andymorgan.files.wordpress.com/2009/01/ctxapp13.png?w=96&amp;h=96&#038;h=96" alt="" width="96" height="96" />It amazes me in this day and age that something as fundamentally simple as the clipboard in a windows environment can have issues, but it does happen&#8230; Especially in a multi user environment.</p>
<p>If you experience clipboard issues with office, Lotus notes and other copy and paste capable programs you have have a session memory issue!</p>
<p>The session View size and pool size have a massive part to play in 32 bit citrix environments, these size options dictate the amount of graphical memory that can be assigned to each session. The ceiling for these options in 32 bit are just 16mb, which rediculously low in modern days.</p>
<p>Taking equal parts of graphically heavy applications like Office 2007 and Known citrix killers like lotus notes, it really isn&#8217;t long until these limits spill over into horrible clipboard and copy / paste disasters. Take one step further and implement Microsoft App-V and you are in serious trouble.</p>
<p>If alike me, you run an environment that requires all the above nasties, help is at hand. After 12 months of continued troubleshooting I&#8217;ve found a happy medium of 64mb between low limits and too high limits.</p>
<p>To test the same, simply bash these off the following command lines and reboot, waving goodbye to your horrible clipboard issues:</p>
<p>reg add &#8220;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management&#8221; /v SessionPoolSize /t reg_dword /d 64 /f<br />
reg add &#8220;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management&#8221; /v SessionViewSize /t reg_dword /d 64 /f</p>
<p>Disclaimer:</p>
<p>We currently run with 10gb of memory, allowing us to allocate this extra 112mb of memory per user. If you require these options, consider a lower value or upgrade your ram capacity</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/andymorgan.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/andymorgan.wordpress.com/273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/andymorgan.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/andymorgan.wordpress.com/273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/andymorgan.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/andymorgan.wordpress.com/273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/andymorgan.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/andymorgan.wordpress.com/273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/andymorgan.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/andymorgan.wordpress.com/273/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andymorgan.wordpress.com&blog=3794180&post=273&subd=andymorgan&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://andymorgan.wordpress.com/2009/11/24/citrix-clipboard-issues-in-a-published-desktop-environment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c545af60a31f7dc666bfca92e2ac0c0b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Andy</media:title>
		</media:content>

		<media:content url="http://andymorgan.files.wordpress.com/2009/01/ctxapp13.png?w=96&#38;h=96&#38;h=96" medium="image" />
	</item>
		<item>
		<title>Enabling disk caches from a script</title>
		<link>http://andymorgan.wordpress.com/2009/11/24/enabling-disk-caches-from-a-script/</link>
		<comments>http://andymorgan.wordpress.com/2009/11/24/enabling-disk-caches-from-a-script/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 10:05:16 +0000</pubDate>
		<dc:creator>Andrew Morgan</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Server 2003]]></category>

		<guid isPermaLink="false">http://andymorgan.wordpress.com/?p=271</guid>
		<description><![CDATA[Just a quick post to share a fundamental performance increase to any citrix server out there running on local disk. If your disk supports caching, enable it now!
Get a copy of dskcache.exe from here:
run the following command: dskcache.exe +w +p
Enjoy your new disk performance!
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andymorgan.wordpress.com&blog=3794180&post=271&subd=andymorgan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img class="alignright" src="http://andymorgan.files.wordpress.com/2008/10/1010451006.jpg?w=105&amp;h=105&#038;h=105" alt="" width="105" height="105" />Just a quick post to share a fundamental performance increase to any citrix server out there running on local disk. If your disk supports caching, enable it now!</p>
<p>Get a copy of dskcache.exe from <a href="http://support.microsoft.com/default.aspx/kb/811392" target="_blank">here</a>:</p>
<p>run the following command: <strong>dskcache.exe +w +p</strong></p>
<p>Enjoy your new disk performance!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/andymorgan.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/andymorgan.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/andymorgan.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/andymorgan.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/andymorgan.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/andymorgan.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/andymorgan.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/andymorgan.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/andymorgan.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/andymorgan.wordpress.com/271/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andymorgan.wordpress.com&blog=3794180&post=271&subd=andymorgan&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://andymorgan.wordpress.com/2009/11/24/enabling-disk-caches-from-a-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c545af60a31f7dc666bfca92e2ac0c0b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Andy</media:title>
		</media:content>

		<media:content url="http://andymorgan.files.wordpress.com/2008/10/1010451006.jpg?w=105&#38;h=105" medium="image" />
	</item>
		<item>
		<title>Intermittent Thin Client disconnects</title>
		<link>http://andymorgan.wordpress.com/2009/10/24/intermittent-thin-client-disconnects/</link>
		<comments>http://andymorgan.wordpress.com/2009/10/24/intermittent-thin-client-disconnects/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 09:58:50 +0000</pubDate>
		<dc:creator>Andrew Morgan</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 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andymorgan.wordpress.com&blog=3794180&post=267&subd=andymorgan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img class="alignright" src="http://andymorgan.files.wordpress.com/2009/01/ctxapp13.png?w=96&amp;h=96&#038;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_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]<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>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/andymorgan.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/andymorgan.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/andymorgan.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/andymorgan.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/andymorgan.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/andymorgan.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/andymorgan.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/andymorgan.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/andymorgan.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/andymorgan.wordpress.com/267/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andymorgan.wordpress.com&blog=3794180&post=267&subd=andymorgan&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://andymorgan.wordpress.com/2009/10/24/intermittent-thin-client-disconnects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c545af60a31f7dc666bfca92e2ac0c0b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Andy</media:title>
		</media:content>

		<media:content url="http://andymorgan.files.wordpress.com/2009/01/ctxapp13.png?w=96&#38;h=96&#38;h=96" medium="image" />
	</item>
		<item>
		<title>Internet explorer 7 wont launch</title>
		<link>http://andymorgan.wordpress.com/2009/09/07/internet-explorer-7-wont-launch/</link>
		<comments>http://andymorgan.wordpress.com/2009/09/07/internet-explorer-7-wont-launch/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 16:55:09 +0000</pubDate>
		<dc:creator>Andrew Morgan</dc:creator>
				<category><![CDATA[Administration]]></category>

		<guid isPermaLink="false">http://andymorgan.wordpress.com/?p=263</guid>
		<description><![CDATA[Had a weird one over the weekend. A colleague of mine accidentally approved Internet Explorer 8 to all servers in our domain via wsus and it left our Citrix servers in a bit of a sad state. We set about removing it as soon as possible but after the uninstall / restart we were faced [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andymorgan.wordpress.com&blog=3794180&post=263&subd=andymorgan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img class="alignright size-full wp-image-264" title="Internet-Explorer-8" src="http://andymorgan.files.wordpress.com/2009/09/internet-explorer-8.jpg?w=117&#038;h=117" alt="Internet-Explorer-8" width="117" height="117" />Had a weird one over the weekend. A colleague of mine accidentally approved Internet Explorer 8 to all servers in our domain via wsus and it left our Citrix servers in a bit of a sad state. We set about removing it as soon as possible but after the uninstall / restart we were faced with this very strange problem. When we double clicked internet explorer on the desktop, the application wouldnt launch and a new shortcut to Internet Explorer would be created on the desktop.</p>
<p>We also had these logged every thirty minutes or so in the event logs:</p>
<h6>Event Type:    Error<br />
Event Source:    Userenv<br />
Event Category:    None<br />
Event ID:    1041<br />
Date:        06/09/2009<br />
Time:        21:50:38<br />
User:        NT AUTHORITY\SYSTEM<br />
Computer:    LPGPCTXXA0008<br />
Description:<br />
Windows cannot query DllName registry entry for {7B849a69-220F-451E-B3FE-2CB811AF94AE} and it will not be loaded. This is most likely caused by a faulty registration.</p>
<p>For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.</h6>
<p>And:</p>
<h6>Event Type:    Error<br />
Event Source:    Userenv<br />
Event Category:    None<br />
Event ID:    1041<br />
Date:        06/09/2009<br />
Time:        21:50:38<br />
User:        NT AUTHORITY\SYSTEM<br />
Computer:    LPGPCTXXA0008<br />
Description:<br />
Windows cannot query DllName registry entry for {CF7639F3-ABA2-41DB-97F2-81E2C5DBFC5D} and it will not be loaded. This is most likely caused by a faulty registration.</p>
<p>For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.</h6>
<p>If you face the above problems, delete the following registry keys and open internet explorer as an administrator:</p>
<p>&#8220;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\GPExtensions\{CF7639F3-ABA2-41DB-97F2-81E2C5DBFC5D}&#8221; /f<br />
&#8220;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\GPExtensions\{7B849a69-220F-451E-B3FE-2CB811AF94AE}&#8221; /f<br />
&#8220;HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30309D}\shell\OpenHomePage&#8221; /v legacydisable /f</p>
<p>That should fix that!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/andymorgan.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/andymorgan.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/andymorgan.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/andymorgan.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/andymorgan.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/andymorgan.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/andymorgan.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/andymorgan.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/andymorgan.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/andymorgan.wordpress.com/263/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andymorgan.wordpress.com&blog=3794180&post=263&subd=andymorgan&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://andymorgan.wordpress.com/2009/09/07/internet-explorer-7-wont-launch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c545af60a31f7dc666bfca92e2ac0c0b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Andy</media:title>
		</media:content>

		<media:content url="http://andymorgan.files.wordpress.com/2009/09/internet-explorer-8.jpg" medium="image">
			<media:title type="html">Internet-Explorer-8</media:title>
		</media:content>
	</item>
		<item>
		<title>Enabling RDP on a server remotely.</title>
		<link>http://andymorgan.wordpress.com/2009/09/04/enabling-rdp-on-a-server-remotely/</link>
		<comments>http://andymorgan.wordpress.com/2009/09/04/enabling-rdp-on-a-server-remotely/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 09:23:56 +0000</pubDate>
		<dc:creator>Andrew Morgan</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Administration]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://andymorgan.wordpress.com/?p=260</guid>
		<description><![CDATA[There&#8217;s very litte more annoying in a windows environment than having to go to a console of a server because some idiot has disabled remote administration on a server 2003/2000 server. I was in this situation recently and decided not to go to the console out of principle.

I wrote the following program in order to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andymorgan.wordpress.com&blog=3794180&post=260&subd=andymorgan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>There&#8217;s <strong>very</strong> litte more annoying in a windows environment than having to go to a console of a server because some idiot has disabled remote administration on a server 2003/2000 server. I was in this situation recently and decided not to go to the console out of principle.</p>
<p><img class="aligncenter size-full wp-image-261" title="rdpon" src="http://andymorgan.files.wordpress.com/2009/09/rdpon.jpg?w=495&#038;h=244" alt="rdpon" width="495" height="244" /></p>
<p>I wrote the following program in order to get around this issue. Its called RDPon.exe and you can get it <a href="http://www.4shared.com/file/130111597/4afcc2c1/RDPOn.html" target="_blank">here: </a></p>
<p>With this you can:</p>
<ul>
<li>Query RDP status</li>
<li>Enable RDP</li>
<li>Disable RDP</li>
</ul>
<p>I have sealed it as an exe so that you can right click it and choose run as to get at your admin account easily.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/andymorgan.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/andymorgan.wordpress.com/260/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/andymorgan.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/andymorgan.wordpress.com/260/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/andymorgan.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/andymorgan.wordpress.com/260/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/andymorgan.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/andymorgan.wordpress.com/260/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/andymorgan.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/andymorgan.wordpress.com/260/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andymorgan.wordpress.com&blog=3794180&post=260&subd=andymorgan&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://andymorgan.wordpress.com/2009/09/04/enabling-rdp-on-a-server-remotely/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c545af60a31f7dc666bfca92e2ac0c0b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Andy</media:title>
		</media:content>

		<media:content url="http://andymorgan.files.wordpress.com/2009/09/rdpon.jpg" medium="image">
			<media:title type="html">rdpon</media:title>
		</media:content>
	</item>
		<item>
		<title>Determining if a number is odd or even using a batch file</title>
		<link>http://andymorgan.wordpress.com/2009/09/04/determining-if-a-number-is-odd-or-even-using-a-batch-file/</link>
		<comments>http://andymorgan.wordpress.com/2009/09/04/determining-if-a-number-is-odd-or-even-using-a-batch-file/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 08:48:46 +0000</pubDate>
		<dc:creator>Andrew Morgan</dc:creator>
				<category><![CDATA[Citrix]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://andymorgan.wordpress.com/?p=258</guid>
		<description><![CDATA[Our challenge recently was seperating the reboots of our citrix servers to ensure that half of our farm is always available. This is particularly useful if you are a 24/7 house and need to know exactly what servers restart and when they restart.
So to begin, our server names consist of &#8220;servername00xx&#8221; where xx is the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andymorgan.wordpress.com&blog=3794180&post=258&subd=andymorgan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img class="alignright" src="http://andymorgan.files.wordpress.com/2008/07/images.jpg?w=144&amp;h=108&#038;h=108" alt="" width="144" height="108" />Our challenge recently was seperating the reboots of our citrix servers to ensure that half of our farm is always available. This is particularly useful if you are a 24/7 house and need to know exactly what servers restart and when they restart.</p>
<p>So to begin, our server names consist of &#8220;servername00xx&#8221; where xx is the number of the server, the task at hand was to ensure that 0001, 0003, 0005 etc restarted on one night and 0002, 0004, 0006 etc restarted the second night. To do this i needed to use the system variable &#8220;hostname&#8221; and read the last digit in the name to determine if the number was odd or even.</p>
<p>To get determine whether a number is odd or even i used the following logic. If you divide an even number by 2 then multiply it by two you will get the same number back, e.g. 8/2 = 4, 4*2 = 8, 8 is equal to 8 .</p>
<p>An odd number in batch is treated as follows 9/2=4, 4*2=8 ,9 is NOT equal to 8.</p>
<p style="padding-left:30px;">Rem Begining Logic Check for even or odd server<br />
for /f &#8220;tokens=1-2 delims=00&#8243; %%a in (&#8216;hostname&#8217;) do set compnumber=%%b<br />
set /a divnumber=%compnumber%/2<br />
set /a sum=%divnumber%*2</p>
<p>With the above excerpt, i set three variables, %compnumber% (which is the number after the 00), divnumber (a variable for the result of the computernumber divided by two) and sum, which is the resulting divnumber * 2.</p>
<p>This divides compnumber by 2 and multiplys divnumber by 2 setting the resulting number to sum.</p>
<p style="padding-left:30px;">Rem Running if checks<br />
if %compnumber% NEQ %sum% goto odds<br />
if %compnumber% EQU %sum% goto evens</p>
<p>This next step is our determiner:</p>
<p>If the number divided by two and multiplied by two is not the same as the original number, the number is odd, the if statement then sends the script to the odds labeled portion of our script.</p>
<p>If the number divided by two and multiplied by two is the same as the original number, well you get the idea, its even and jumps down.</p>
<p style="padding-left:30px;">
 <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> dds<br />
&lt;&#8212;Do something for odd servers here&#8212;&gt;<br />
exit</p>
<p style="padding-left:30px;">
<p>:evens<br />
&lt;&#8212;Do something for even servers here&#8212;&gt;<br />
exit</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/andymorgan.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/andymorgan.wordpress.com/258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/andymorgan.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/andymorgan.wordpress.com/258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/andymorgan.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/andymorgan.wordpress.com/258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/andymorgan.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/andymorgan.wordpress.com/258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/andymorgan.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/andymorgan.wordpress.com/258/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andymorgan.wordpress.com&blog=3794180&post=258&subd=andymorgan&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://andymorgan.wordpress.com/2009/09/04/determining-if-a-number-is-odd-or-even-using-a-batch-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c545af60a31f7dc666bfca92e2ac0c0b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Andy</media:title>
		</media:content>

		<media:content url="http://andymorgan.files.wordpress.com/2008/07/images.jpg?w=144&#38;h=108&#38;h=108" medium="image" />
	</item>
		<item>
		<title>Forcing a printer online using a script:</title>
		<link>http://andymorgan.wordpress.com/2009/06/02/forcing-a-printer-online-using-a-script/</link>
		<comments>http://andymorgan.wordpress.com/2009/06/02/forcing-a-printer-online-using-a-script/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 07:53:38 +0000</pubDate>
		<dc:creator>Andrew Morgan</dc:creator>
				<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Printers]]></category>

		<guid isPermaLink="false">http://andymorgan.wordpress.com/?p=253</guid>
		<description><![CDATA[Recently while installing Zetafax 11, we noticed that some of our maintenance scripts on our XenApp servers were causing the zetafax printer to fall offline on reboot. Below is a simple to use (built in to server 2003) script that can be used to force a printer online.
The Following will force &#8220;Printer Name&#8221; to work [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andymorgan.wordpress.com&blog=3794180&post=253&subd=andymorgan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img class="alignright size-full wp-image-254" title="printer_icon" src="http://andymorgan.files.wordpress.com/2009/06/printer_icon.jpg?w=99&#038;h=99" alt="printer_icon" width="99" height="99" />Recently while installing Zetafax 11, we noticed that some of our maintenance scripts on our XenApp servers were causing the zetafax printer to fall offline on reboot. Below is a simple to use (built in to server 2003) script that can be used to force a printer online.</p>
<p>The Following will force &#8220;Printer Name&#8221; to work online:</p>
<p>cscript C:\WINDOWS\system32\prncnfg.vbs -t -p &#8220;Printer Name&#8221; -workoffline</p>
<p>As an extra function, the below will rename a local printer:</p>
<p>Cscript %windir%\system32\Prncnfg.vbs -x -p &#8220;old printer name&#8221; -z newprintername</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/andymorgan.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/andymorgan.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/andymorgan.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/andymorgan.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/andymorgan.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/andymorgan.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/andymorgan.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/andymorgan.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/andymorgan.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/andymorgan.wordpress.com/253/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andymorgan.wordpress.com&blog=3794180&post=253&subd=andymorgan&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://andymorgan.wordpress.com/2009/06/02/forcing-a-printer-online-using-a-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c545af60a31f7dc666bfca92e2ac0c0b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Andy</media:title>
		</media:content>

		<media:content url="http://andymorgan.files.wordpress.com/2009/06/printer_icon.jpg" medium="image">
			<media:title type="html">printer_icon</media:title>
		</media:content>
	</item>
		<item>
		<title>Restarting a server at a certain time from accross the LAN.</title>
		<link>http://andymorgan.wordpress.com/2009/03/08/restarting-a-server-at-a-certain-time-from-accross-the-lan/</link>
		<comments>http://andymorgan.wordpress.com/2009/03/08/restarting-a-server-at-a-certain-time-from-accross-the-lan/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 22:10:04 +0000</pubDate>
		<dc:creator>Andrew Morgan</dc:creator>
				<category><![CDATA[Antivirus]]></category>
		<category><![CDATA[Citrix]]></category>

		<guid isPermaLink="false">http://andymorgan.wordpress.com/?p=251</guid>
		<description><![CDATA[Just a quick entry as i got an email requesting this today, &#8220;How can i schedule a restart on a remote server to run out of hours?&#8221;
This script uses at.exe which is soon replaced by schtasks.exe. This can only be run by an administrator of the server you wish to restart, obviously.
Rem setting vars:
set server=servertorestart
set [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andymorgan.wordpress.com&blog=3794180&post=251&subd=andymorgan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img class="alignright" src="http://andymorgan.files.wordpress.com/2008/07/images.jpg?w=144&amp;h=108&#038;h=108" alt="" width="144" height="108" />Just a quick entry as i got an email requesting this today, &#8220;How can i schedule a restart on a remote server to run out of hours?&#8221;</p>
<p>This script uses at.exe which is soon replaced by schtasks.exe. This can only be run by an administrator of the server you wish to restart, obviously.</p>
<p style="padding-left:30px;"><em>Rem setting vars:<br />
set server=servertorestart<br />
set time=05:00</em></p>
<p style="padding-left:30px;"><em>REM performing check for previous file and deleting it:<br />
if exist </em><a href="//\\%server%\c$\rebootme.bat"><em>\\%server%\c$\rebootme.bat</em></a><em> del </em><a href="//\\%server%\c$\rebootme.bat"><em>\\%server%\c$\rebootme.bat</em></a></p>
<p style="padding-left:30px;"><em>Rem Creating reboot batch file:<br />
echo shutdown -r -t 03 &gt;&gt; </em><a href="//\\%server%\c$\rebootme.bat"><em>\\%server%\c$\rebootme.bat</em></a></p>
<p style="padding-left:30px;"><em>Rem Schedueling the job:<br />
at </em><a href="//\\%server%"><em>\\%server%</em></a><em> %time% c:\rebootme.bat</em></p>
<p>To Create a reuseable, error checking script with idiot proof options! save  the following as a .bat file:</p>
<p style="padding-left:30px;"><em>@echo off<br />
cls<br />
Rem setting vars:<br />
set /p server=[Please enter the name of the server you wish to restart:]<br />
cls<br />
echo Selected server = %server%<br />
set /p time=[Please enter the time  in HH:MM format at which you wish to restart the server: e.g. 05:00]<br />
cls</em></p>
<p style="padding-left:30px;"><em>REM performing final idiot check<br />
echo Are you absolutely sure you wish to restart %server% at %time%?<br />
Pause</em></p>
<p style="padding-left:30px;"><em>REM performing check for previous file and deleting it:<br />
if exist </em><a href="//\\%server%\c$\rebootme.bat"><em>\\%server%\c$\rebootme.bat</em></a><em> del </em><a href="//\\%server%\c$\rebootme.bat"><em>\\%server%\c$\rebootme.bat</em></a><em> &amp; echo deleted previous file</em></p>
<p style="padding-left:30px;"><em>Rem Creating reboot batch file:<br />
echo shutdown -r -t 03 &gt;&gt; </em><a href="//\\%server%\c$\rebootme.bat"><em>\\%server%\c$\rebootme.bat</em></a></p>
<p style="padding-left:30px;"><em>Rem Ensuring reboot file exists:<br />
if exist </em><a href="//\\%server%\c$\rebootme.bat"><em>\\%server%\c$\rebootme.bat</em></a><em> echo reboot script created successfully.<br />
if not exist </em><a href="//\\%server%\c$\rebootme.bat"><em>\\%server%\c$\rebootme.bat</em></a><em> goto Failed</em></p>
<p style="padding-left:30px;"><em>Rem Schedueling the job:<br />
at </em><a href="//\\%server%"><em>\\%server%</em></a><em> %time% c:\rebootme.bat<br />
Echo Job schedueled, Script complete.<br />
pause</em></p>
<p style="padding-left:30px;"><em>:failed<br />
echo something failed, I&#8217;d look into that if i were you.</em></p>
<p style="padding-left:30px;"><em>pause<br />
exit</em></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/andymorgan.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/andymorgan.wordpress.com/251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/andymorgan.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/andymorgan.wordpress.com/251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/andymorgan.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/andymorgan.wordpress.com/251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/andymorgan.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/andymorgan.wordpress.com/251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/andymorgan.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/andymorgan.wordpress.com/251/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andymorgan.wordpress.com&blog=3794180&post=251&subd=andymorgan&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://andymorgan.wordpress.com/2009/03/08/restarting-a-server-at-a-certain-time-from-accross-the-lan/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c545af60a31f7dc666bfca92e2ac0c0b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Andy</media:title>
		</media:content>

		<media:content url="http://andymorgan.files.wordpress.com/2008/07/images.jpg?w=144&#38;h=108&#38;h=108" medium="image" />
	</item>
		<item>
		<title>Disabling Dep with a script</title>
		<link>http://andymorgan.wordpress.com/2009/03/08/disabling-dep-with-a-script/</link>
		<comments>http://andymorgan.wordpress.com/2009/03/08/disabling-dep-with-a-script/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 21:39:05 +0000</pubDate>
		<dc:creator>Andrew Morgan</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Citrix]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://andymorgan.wordpress.com/?p=248</guid>
		<description><![CDATA[We had this problem recently with our XenApp servers, as part of the latest service pack DEP (or Data Execution Protection) has now been enabled for all applications accross all platforms and this can cause havok in a terminal services environment.
The problem with Dep is simple, its not a Reg Key, its not an environment [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andymorgan.wordpress.com&blog=3794180&post=248&subd=andymorgan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img class="alignright" src="http://andymorgan.files.wordpress.com/2008/07/images.jpg?w=144&amp;h=108&#038;h=108" alt="" width="144" height="108" />We had this problem recently with our XenApp servers, as part of the latest service pack DEP (or Data Execution Protection) has now been enabled for all applications accross all platforms and this can cause havok in a terminal services environment.</p>
<p>The problem with Dep is simple, its not a Reg Key, its not an environment variable its a system setting loaded on startup from the boot.ini file. To make matters worse its a kinda complicated setting as it sounds opposite to what it is exactly doing.</p>
<p>Take this for example, this is a server with DEP enabled:</p>
<p>multi(0)disk(0)rdisk(0)partition(1)\WINDOWS=&#8221;Windows Server 2003, Standard&#8221; <strong>/NoExecute=OptOut</strong> /fastdetect</p>
<p>What confuses me with the above statement is why Opting out means DEP is enabled? To disable DEP you need to change this switch to OptIn, which makes no sense to me at all.</p>
<p>To automate this change, i used a tool called <a href="http://gnuwin32.sourceforge.net/packages/rpl.htm" target="_blank">RPL.exe</a>, this is a direct translation of the Unix command/tool to replace text inside of a text file. Using RPL i could search the boot.ini for the optout statement and replace it with the optin (aka turn off Dep).</p>
<p>Because boot.ini is a system and read only file by default, i needed to use the <a href="http://www.computerhope.com/attribhl.htm">attrib</a> command so first i set about removing the read only, hidden and system file attributes on the file in order to edit it:</p>
<p>attrib -r -h -s c:\boot.ini</p>
<p>once the file was editable, i now performed the rpl command to search and replace:</p>
<p>rpl.exe -i /noexecute=optout /NoExecute=OptIn c:\boot.ini</p>
<p>Once the file had been changed if neccessary it was time to set the file back to read only, hidden and system before closing the script:</p>
<p>attrib +r +h +s c:\boot.ini</p>
<p>And voila, next reboot and Dep is gone <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/andymorgan.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/andymorgan.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/andymorgan.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/andymorgan.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/andymorgan.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/andymorgan.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/andymorgan.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/andymorgan.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/andymorgan.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/andymorgan.wordpress.com/248/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andymorgan.wordpress.com&blog=3794180&post=248&subd=andymorgan&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://andymorgan.wordpress.com/2009/03/08/disabling-dep-with-a-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c545af60a31f7dc666bfca92e2ac0c0b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Andy</media:title>
		</media:content>

		<media:content url="http://andymorgan.files.wordpress.com/2008/07/images.jpg?w=144&#38;h=108&#38;h=108" medium="image" />
	</item>
		<item>
		<title>How to hide a local printer on a Terminal / XenApp Server</title>
		<link>http://andymorgan.wordpress.com/2009/03/06/how-to-hide-a-local-printer-on-a-terminal-xenapp-server/</link>
		<comments>http://andymorgan.wordpress.com/2009/03/06/how-to-hide-a-local-printer-on-a-terminal-xenapp-server/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 21:12:11 +0000</pubDate>
		<dc:creator>Andrew Morgan</dc:creator>
				<category><![CDATA[Citrix]]></category>

		<guid isPermaLink="false">http://andymorgan.wordpress.com/?p=246</guid>
		<description><![CDATA[We had a problem recently with the adobe professional suite installing a local printer on the XenApp server, this was great for users licensed to use Adobe Professional, but for users that weren&#8217;t it gave them a possibility to infringe the licensing simply by printing to this printer.
To limit the printer, you simply need to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andymorgan.wordpress.com&blog=3794180&post=246&subd=andymorgan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img class="alignright" src="http://andymorgan.files.wordpress.com/2009/01/ctxapp13.png?w=96&amp;h=96&#038;h=96" alt="" width="96" height="96" />We had a problem recently with the adobe professional suite installing a local printer on the XenApp server, this was great for users licensed to use Adobe Professional, but for users that weren&#8217;t it gave them a possibility to infringe the licensing simply by printing to this printer.</p>
<p>To limit the printer, you simply need to assign custom permissions to the printer. Allowing members of a group the ability to print to it (i.e. adobe professional users) and restricting everyone else. This works brilliantly as if the user has no permissions to the printer the user cant even see it!</p>
<p>This can be done manually if you wish, but you can also script it using <a href="http://www.helge.mynetcologne.de/setacl/" target="_blank">SetAcl.exe</a>.</p>
<p>The documentation on their website is shockingly bad for printers, so below is an example of how to remove the permissions from a local printer:</p>
<p style="padding-left:30px;">setacl.exe -on &#8220;adobe pdf&#8221; -ot prn -actn clear -clr dacl,sacl</p>
<p>The following will grant the &#8220;local administrators&#8221; group full control of the printer for troubleshooting:</p>
<p style="padding-left:30px;">setacl.exe -on &#8220;adobe pdf&#8221; -ot prn -actn ace -ace &#8220;n:administrators;p:full&#8221;&#8216;</p>
<p>And the following will grant the domain group &#8220;apps acrobat writer&#8221; the ability to view and print to the printer</p>
<p style="padding-left:30px;">setacl.exe -on &#8220;adobe pdf&#8221; -ot prn -actn ace -ace &#8220;n:domain\Apps Acrobat Writer 9;p:print&#8221;</p>
<p> The whole lot together is below in Enteo scripting format:</p>
<p style="padding-left:30px;">Execute(&#8216;.\extern$\setacl.exe -on &#8220;adobe pdf&#8221; -ot prn -actn clear -clr dacl,sacl&#8217;)/?<br />
Execute(&#8216;.\extern$\setacl.exe -on &#8220;adobe pdf&#8221; -ot prn -actn ace -ace &#8220;n:administrators;p:full&#8221;&#8216;)/?<br />
Execute(&#8216;.\extern$\setacl.exe -on &#8220;adobe pdf&#8221; -ot prn -actn ace -ace &#8220;n:emea\LPGP CTX Apps Acrobat Writer 9;p:print&#8221;&#8216;)/?</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/andymorgan.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/andymorgan.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/andymorgan.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/andymorgan.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/andymorgan.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/andymorgan.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/andymorgan.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/andymorgan.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/andymorgan.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/andymorgan.wordpress.com/246/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andymorgan.wordpress.com&blog=3794180&post=246&subd=andymorgan&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://andymorgan.wordpress.com/2009/03/06/how-to-hide-a-local-printer-on-a-terminal-xenapp-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c545af60a31f7dc666bfca92e2ac0c0b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Andy</media:title>
		</media:content>

		<media:content url="http://andymorgan.files.wordpress.com/2009/01/ctxapp13.png?w=96&#38;h=96" medium="image" />
	</item>
	</channel>
</rss>