<?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>Michael Phillips Blog &#187; Citrix</title>
	<atom:link href="http://nukeitmike.com/blog/tag/citrix/feed" rel="self" type="application/rss+xml" />
	<link>http://nukeitmike.com/blog</link>
	<description>My place to speak about things</description>
	<lastBuildDate>Fri, 03 Feb 2012 22:55:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Launch a PowerShell script minimized</title>
		<link>http://nukeitmike.com/blog/2011/12/28/launch-a-powershell-script-minimized/</link>
		<comments>http://nukeitmike.com/blog/2011/12/28/launch-a-powershell-script-minimized/#comments</comments>
		<pubDate>Wed, 28 Dec 2011 20:45:55 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Citrix]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://nukeitmike.com/blog/?p=299</guid>
		<description><![CDATA[We use Citrix for a lot of applications, and I have a need to launch Outlook, then an application, and then close Outlook when that application is closed by the user.&#160; This seems like a pretty simple thing to do (and I suppose it is, sort of) but it took me a while to figure [...]]]></description>
			<content:encoded><![CDATA[<p>We use Citrix for a lot of applications, and I have a need to launch Outlook, then an application, and then close Outlook when that application is closed by the user.&#160; This seems like a pretty simple thing to do (and I suppose it is, sort of) but it took me a while to figure it out.&#160; </p>
<p>One piece of the puzzle is that PowerShell remains open if you do it the way I have it setup right now.&#160; If the user closes that PowerShell window, then the monitor process will not close Outlook when the user exits the LOB app.&#160; In order to mitigate this issue somewhat, I wanted to start PowerShell minimized.&#160; The way to do this is:</p>
<blockquote><p>powershell -WindowStyle Minimized .\ScriptToRun.ps1</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://nukeitmike.com/blog/2011/12/28/launch-a-powershell-script-minimized//feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unable to login to Citrix server via RDP or ICA</title>
		<link>http://nukeitmike.com/blog/2011/02/04/unable-to-login-to-citrix-server-via-rdp-or-ica/</link>
		<comments>http://nukeitmike.com/blog/2011/02/04/unable-to-login-to-citrix-server-via-rdp-or-ica/#comments</comments>
		<pubDate>Fri, 04 Feb 2011 17:06:49 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Citrix]]></category>
		<category><![CDATA[General Info]]></category>
		<category><![CDATA[Server 2008]]></category>
		<category><![CDATA[RDP]]></category>
		<category><![CDATA[Server 2008 R2]]></category>
		<category><![CDATA[XenApp]]></category>

		<guid isPermaLink="false">http://nukeitmike.com/blog/2011/02/04/unable-to-login-to-citrix-server-via-rdp-or-ica/</guid>
		<description><![CDATA[We have recently set up some new Windows Server 2008 R2/Citrix XenApp 6.0 servers.  For some reason, users could not launch a remote desktop to them even though we (thought) allowed this.  Turns out there is a policy which blocks this by default.  I found the answer here: Re: Unable to login using RDP or [...]]]></description>
			<content:encoded><![CDATA[<p>We have recently set up some new Windows Server 2008 R2/Citrix XenApp 6.0 servers.  For some reason, users could not launch a remote desktop to them even though we (thought) allowed this.  Turns out there is a policy which blocks this by default.  I found the answer here:</p>
<blockquote><p><a name="1448366"></a>Re: Unable to login using RDP or ICA after installing XenApp 6<br />
Posted: Mar 31, 2010 5:27 PM   <a href="http://forums.citrix.com/message.jspa?messageID=1447261#1447261"><img title="in response to: Aref  Mukred" src="http://forums.citrix.com/images/up-10x10.gif" border="0" alt="in response to: Aref  Mukred" width="10" height="10" /></a> in response to: <a href="http://forums.citrix.com/message.jspa?messageID=1447261#1447261">Aref Mukred</a></p>
<p><img title="6 points" src="http://forums.citrix.com/images/answer-correct-24x24.gif" border="0" alt="" /><br />
Correct</p>
<p><a href="http://forums.citrix.com/thread.jspa?threadID=261944&amp;start=15&amp;rate=true"><img src="http://forums.citrix.com/images/vote_thumb.gif" border="0" alt="This message was useful" /></a><br />
4 users found this post useful</p>
<p>Hi Aref -<br />
Can you please try the following ?<br />
1. Open Delivery Services Console<br />
2. Edit the unfiltered user policy | ICA<br />
3. Set the policy for Desktop Launches to Allowed<br />
This policy applies to XenApp 6.0 and Allows or prevents non-administrative users to connect to a desktop session on the server.<br />
When allowed, non-administrative users can connect. By default, non-administrative users cannot connect to desktop sessions.<br />
Thanks<br />
Ramesh</p></blockquote>
<p><a href="http://forums.citrix.com/thread.jspa?threadID=261944&amp;start=15&amp;tstart=0">Citrix Forums : Unable to login using RDP or ICA after &#8230;</a></p>
<p>The answer above will get you there, but as my teachers used to tell me all the time, he needs to “show his work”:</p>
<p><a href="http://nukeitmike.com/blog/wp-content/uploads/2011/02/image.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://nukeitmike.com/blog/wp-content/uploads/2011/02/image_thumb.png" border="0" alt="image" width="218" height="244" /></a></p>
<p><a href="http://nukeitmike.com/blog/wp-content/uploads/2011/02/image1.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://nukeitmike.com/blog/wp-content/uploads/2011/02/image_thumb1.png" border="0" alt="image" width="244" height="75" /></a></p>
<p><a href="http://nukeitmike.com/blog/wp-content/uploads/2011/02/image2.png"><img style="background-image: none; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://nukeitmike.com/blog/wp-content/uploads/2011/02/image_thumb2.png" border="0" alt="image" width="244" height="79" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://nukeitmike.com/blog/2011/02/04/unable-to-login-to-citrix-server-via-rdp-or-ica//feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A fatal error occurred while trying to sysprep the machine.</title>
		<link>http://nukeitmike.com/blog/2010/06/03/a-fatal-error-occurred-while-trying-to-sysprep-the-machine/</link>
		<comments>http://nukeitmike.com/blog/2010/06/03/a-fatal-error-occurred-while-trying-to-sysprep-the-machine/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 01:08:22 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Server 2008]]></category>
		<category><![CDATA[Citrix]]></category>
		<category><![CDATA[imaging]]></category>
		<category><![CDATA[sysprep]]></category>

		<guid isPermaLink="false">http://nukeitmike.com/blog/2010/06/03/a-fatal-error-occurred-while-trying-to-sysprep-the-machine/</guid>
		<description><![CDATA[Today, while getting ready to deploy an updated Citrix farm for a set of Line of Business applications, I got an error during the sysprep process.&#160; The machine in question is a 2008 64 bit machine.&#160; It has Citrix and all the applications installed.&#160; It is also a Hyper-V VM.&#160; I created an answer file [...]]]></description>
			<content:encoded><![CDATA[<p>Today, while getting ready to deploy an updated Citrix farm for a set of Line of Business applications, I got an error during the sysprep process.&#160; The machine in question is a 2008 64 bit machine.&#160; It has Citrix and all the applications installed.&#160; It is also a Hyper-V VM.&#160; </p>
<p>I created an answer file and when I run Sysprep I get a popup that says:&#160; A fatal error occurred while trying to sysprep the machine.</p>
<p>Hmm..&#160; so I look at the logs and here is what I find:</p>
<blockquote><p>2010-06-03 10:42:33, Error&#160;&#160;&#160;&#160;&#160; [0x0f0085] SYSPRP LaunchDll:Could not load DLL drmv2clt.dll[gle=0x0000007e]     <br />2010-06-03 10:42:33, Error&#160;&#160;&#160;&#160;&#160; [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 126[gle=0x0000007e]      <br />2010-06-03 10:42:33, Error&#160;&#160;&#160;&#160;&#160; [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep cleanup providers; hr = 0x8007007e[gle=0x0000007e]</p>
</blockquote>
<p>I found lots of references to Windows Media Player, and that you can’t have sharing enabled.&#160; Not a problem on this machine.&#160; Not any help either.&#160; </p>
<p>I did find this article helpful: <a title="http://myit4u.wordpress.com/2010/03/17/launchdll-could-not-load-dll-drmv2clt-dll/" href="http://myit4u.wordpress.com/2010/03/17/launchdll-could-not-load-dll-drmv2clt-dll/">http://myit4u.wordpress.com/2010/03/17/launchdll-could-not-load-dll-drmv2clt-dll/</a></p>
<blockquote><p>Guess what?! Those aren’t shown in on a Windows Server 2008! Our workaround was to install the Desktop Experience feature on the server.</p>
</blockquote>
<p>I added the “Desktop Experience” feature did the sysprep and then uninstalled it on each of the new machines.&#160; Rather a pain, but I didn’t have a lot of time to work on figuring out a better answer.</p>
]]></content:encoded>
			<wfw:commentRss>http://nukeitmike.com/blog/2010/06/03/a-fatal-error-occurred-while-trying-to-sysprep-the-machine//feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;netvsc&#8221; error in Hyper-V guest</title>
		<link>http://nukeitmike.com/blog/2010/04/21/netvsc-error-in-hyper-v-guest/</link>
		<comments>http://nukeitmike.com/blog/2010/04/21/netvsc-error-in-hyper-v-guest/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 18:33:05 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Server 2008]]></category>
		<category><![CDATA[Server Core]]></category>
		<category><![CDATA[Citrix]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[Hotfix]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://nukeitmike.com/blog/2010/04/21/netvsc-error-in-hyper-v-guest/</guid>
		<description><![CDATA[We use Citrix Presentation Server for a number of applications, and lately we have had a significant increase in issues with one set of our Citrix servers.&#160; We have 3 main sets of Citrix servers and the problems have only been happening on one set.&#160; One of the sets doesn’t have this error, but wouldn’t [...]]]></description>
			<content:encoded><![CDATA[<p>We use Citrix Presentation Server for a number of applications, and lately we have had a significant increase in issues with one set of our Citrix servers.&#160; We have 3 main sets of Citrix servers and the problems have only been happening on one set.&#160; </p>
<p>One of the sets doesn’t have this error, but wouldn’t because they are physical servers.&#160; They have been in production a long time, and we have plans to virtualize them.&#160; </p>
<p>The second set doesn’t get the errors, but it is fewer servers and fewer users.</p>
<p>The third set:</p>
<ul>
<ul>
<li> is virtual</li>
<li>runs on 2008 R2 Hyper-V</li>
<li>has more servers (6 as opposed to 4 or 5 for the other two)</li>
<li>supports more users and more users per server (averages around 20 users per server during business hours)</li>
</ul>
</ul>
<p>Around November, we started upgrading our hosts from 2008 to 2008 R2.&#160; The problems have been getting progressively worse peaking in the last 2 months.&#160; Our last 2008 host was converted in March.&#160; </p>
<p>After some event log review, we were able to correlate some of the issues to the following error in the event log:</p>
<blockquote><p>Event Type:&#160;&#160;&#160; Warning     <br />Event Source:&#160;&#160;&#160; netvsc      <br />Event Category:&#160;&#160;&#160; None      <br />Event ID:&#160;&#160;&#160; 5      <br />Date:&#160;&#160;&#160;&#160;&#160;&#160;&#160; 4/19/2010      <br />Time:&#160;&#160;&#160;&#160;&#160;&#160;&#160; 3:49:53 PM      <br />User:&#160;&#160;&#160;&#160;&#160;&#160;&#160; N/A      <br />Computer:&#160;&#160;&#160; &lt;ServerNameChangedToProtectTheGuilty&gt;      <br />Description:      <br />The miniport &#8216;Microsoft Virtual Machine Bus Network Adapter #4&#8242; hung. </p>
<p>For more information, see Help and Support Center at <a href="http://go.microsoft.com/fwlink/events.asp">http://go.microsoft.com/fwlink/events.asp</a>.      <br />Data:      <br />0000: 00 00 00 00 02 00 52 00&#160;&#160; &#8230;&#8230;R.      <br />0008: 00 00 00 00 05 00 00 80&#160;&#160; &#8230;&#8230;.      <br />0010: 00 00 00 00 00 00 00 00&#160;&#160; &#8230;&#8230;..      <br />0018: 00 00 00 00 00 00 00 00&#160;&#160; &#8230;&#8230;..      <br />0020: 00 00 00 00 00 00 00 00&#160;&#160; &#8230;&#8230;..</p>
</blockquote>
<p>and right behind that would be this message:</p>
<blockquote><p>Event Type:&#160;&#160;&#160; Information     <br />Event Source:&#160;&#160;&#160; netvsc      <br />Event Category:&#160;&#160;&#160; None      <br />Event ID:&#160;&#160;&#160; 4      <br />Date:&#160;&#160;&#160;&#160;&#160;&#160;&#160; 4/19/2010      <br />Time:&#160;&#160;&#160;&#160;&#160;&#160;&#160; 3:49:53 PM      <br />User:&#160;&#160;&#160;&#160;&#160;&#160;&#160; N/A      <br />Computer:&#160;&#160;&#160; &lt;ServerNameChangedToProtectTheGuilty&gt;      <br />Description:      <br />The miniport &#8216;Microsoft Virtual Machine Bus Network Adapter #4&#8242; reset. </p>
<p>For more information, see Help and Support Center at <a href="http://go.microsoft.com/fwlink/events.asp">http://go.microsoft.com/fwlink/events.asp</a>.      <br />Data:      <br />0000: 00 00 00 00 02 00 52 00&#160;&#160; &#8230;&#8230;R.      <br />0008: 00 00 00 00 04 00 00 40&#160;&#160; &#8230;&#8230;.@      <br />0010: 00 00 00 00 00 00 00 00&#160;&#160; &#8230;&#8230;..      <br />0018: 00 00 00 00 00 00 00 00&#160;&#160; &#8230;&#8230;..      <br />0020: 00 00 00 00 00 00 00 00&#160;&#160; &#8230;&#8230;..</p>
</blockquote>
<p>After doing a bit of searching and getting a lot of nothing, and doing some on site troubleshooting without much luck, I finally broke down and called Microsoft.&#160; I spent a day e-mailing back and forth with someone who was suggesting that I try all the things that I had already tried, so I contacted our TAM and had the case escalated.&#160; </p>
<p>The technician then informed me that there was an internal hotfix that had not been fully tested yet, that related to my issue.&#160; It seems that in 2008 R2 Hyper-V guests running Server 2003, the network adapter will hang and then reset under heavy load.&#160; The hotfix has to be applied to the host and then the integration services on the guest have to be updated.&#160; In my environment, when I updated, I had to remove the integration services from the guest before the updated NIC driver would install.&#160; I reported this behavior to the technician I was working with, but he said that he couldn’t reproduce that particular problem and that he had no issues updating his test environment.</p>
<p>It is my understanding that the hotfix will be released under KB981836.&#160; When you install this, it changes the integration services version from 6.1.7600.16385 to 6.1.7600.20683.&#160; You can see this if you look at the driver version on the guest NIC.</p>
]]></content:encoded>
			<wfw:commentRss>http://nukeitmike.com/blog/2010/04/21/netvsc-error-in-hyper-v-guest//feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Temporary Registry Profiles &#8211; Finally an answer</title>
		<link>http://nukeitmike.com/blog/2009/08/11/temporary-registry-profiles-finally-an-answer/</link>
		<comments>http://nukeitmike.com/blog/2009/08/11/temporary-registry-profiles-finally-an-answer/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 13:36:14 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[General Info]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Citrix]]></category>
		<category><![CDATA[Process Monitor]]></category>
		<category><![CDATA[profiles]]></category>
		<category><![CDATA[registry]]></category>
		<category><![CDATA[Sysinternals]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://nukeitmike.com/blog/2009/08/11/temporary-registry-profiles-finally-an-answer/</guid>
		<description><![CDATA[We have been having issues at work for a while where a user gets “cannot load the locally stored profile” and a temporary profile is created.&#160; It gets to be quite frustrating for the users because each time they log in they lose any settings that they have made.&#160; Apparently, we arent’ the only company [...]]]></description>
			<content:encoded><![CDATA[<p>We have been having issues at work for a while where a user gets “cannot load the locally stored profile” and a temporary profile is created.&#160; It gets to be quite frustrating for the users because each time they log in they lose any settings that they have made.&#160; Apparently, we arent’ the only company that has been having this issue.&#160; The complete article has a very interesting discussion on the Windows Logical Prefetcher and what the cause of the problem was, but the gist of what you need to fix the problem is update your Citrix client or use the work arounds mentioned below:</p>
<blockquote><p>Now that the problem was understood, Microsoft and Citrix brainstormed on workarounds customers could apply while Citrix worked on an update to the ICA Client that would prevent the sharing violation. One workaround was to disable application prefetching and another was to write a logoff script that deletes the Ssonsvr.exe prefetch files. Citrix published the workarounds in this <a href="http://support.citrix.com/article/CTX118226">Citrix Knowledge Base</a> article and Microsoft in this <a href="http://support.microsoft.com/kb/969100/en-us">Microsoft Knowledge Base</a> article. The update to the ICA Client, which was made available a few days later, changed the network provider DLL to 10 seconds after Ssonsvr.exe launches before returning control to Mpnotify.exe. Because Winlogon waits for Mpnotify to exit before logging on a user, the Logical Prefetcher won’t associate Winlogon’s accesses of the user’s hive with Ssonsvr.exe’s startup. </p>
</blockquote>
<p><a href="http://blogs.technet.com/markrussinovich/archive/2009/08/10/3272210.aspx">Mark&#8217;s Blog : The Case of the Temporary Registry Profiles</a></p>
]]></content:encoded>
			<wfw:commentRss>http://nukeitmike.com/blog/2009/08/11/temporary-registry-profiles-finally-an-answer//feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

