<?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>documentation &#8211; Carl Webster</title>
	<atom:link href="https://www.carlwebster.com/tag/documentation/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.carlwebster.com</link>
	<description>The Accidental Citrix Admin - The site for those who find themselves supporting Citrix involuntarily or accidentally</description>
	<lastBuildDate>Mon, 06 Sep 2021 11:26:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
<site xmlns="com-wordpress:feed-additions:1">42228915</site>	<item>
		<title>Using My Citrix XenApp 6.5 PowerShell Documentation Script with Remoting</title>
		<link>https://www.carlwebster.com/using-my-citrix-xenapp-6-5-powershell-doumentation-script-with-remoting/</link>
					<comments>https://www.carlwebster.com/using-my-citrix-xenapp-6-5-powershell-doumentation-script-with-remoting/#comments</comments>
		
		<dc:creator><![CDATA[Carl Webster]]></dc:creator>
		<pubDate>Tue, 08 Jan 2013 19:11:09 +0000</pubDate>
				<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[XenApp]]></category>
		<category><![CDATA[XenApp 6.5]]></category>
		<category><![CDATA[documentation]]></category>
		<category><![CDATA[netsh advfirewall]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[TCP Port 2513]]></category>
		<category><![CDATA[windows firewall]]></category>
		<category><![CDATA[xenapp 6.5]]></category>
		<guid isPermaLink="false">https://www.carlwebster.com/?p=5216</guid>

					<description><![CDATA[I received an email from a reader wanting to get my Citrix XenApp 6.5 Farm PowerShell documentation script to work remotely.  After I wrote my original script and article, Citrix&#8230;]]></description>
										<content:encoded><![CDATA[<p>I received an email from a reader wanting to get my <a title="Documenting a Citrix XenApp 6.5 Farm with Microsoft PowerShell" href="https://www.carlwebster.com/downloads/download-info/xenapp-6-5/" target="_blank" rel="noopener">Citrix XenApp 6.5 Farm PowerShell documentation script </a>to work remotely.  After I wrote my original script and article, <a title="XenApp 6.5 Powershell SDK" href="https://carlwebster.sharefile.com/d-s9b9df5f6350489f8" target="_blank" rel="noopener">Citrix updated the XenApp 6.5 PowerShell SDK</a> to support Remoting and a Default Computer Name.  Even using the new –ComputerName parameter, he was still unable to get my script to work.</p>
<p><span id="more-5216"></span></p>
<p><strong>Note:</strong> This article was updated on November 20, 2015. Go to the bottom of this article to see the updated information.</p>
<p>I installed the Citrix XenApp 6.5 PowerShell SDK and Group Policy modules on my lab domain controller.  All my lab servers have the Windows Firewall enabled and Server Manager Remote Management enabled.</p>
<p>I found this information in the SDK help file on <em>Remoting Cmdlets</em>:</p>
<pre class="brush: plain; title: ; notranslate">
This section explains how to invoke the XenApp Commands remotely. In XenApp 6.5 the cmdlets can be remoted using
the -ComputerName parameter.  In order to facilitate running existing scripts remotely without having to make
significant changes, a default computer name can be set in the client machine. To do this a new set of cmdlets
was introduced. When the default computer name is set, all the cmdlets will automatically remote to the server
specified without having to explicitly use the -ComputerName parameter every time.

To set the default computer name:

Set-XADefaultComputerName server1
</pre>
<p>My lab XenApp 6.5 server is named XA65, so I entered on my domain controller.</p>
<pre class="brush: bash; title: ; notranslate">Set-XADefaultComputerName XA65 </pre>
<p>When I ran my documentation script, I received:</p>
<figure id="attachment_49437" aria-describedby="caption-attachment-49437" style="width: 986px" class="wp-caption alignnone"><a href="https://www.carlwebster.com/wp-content/uploads/2013/01/Figure001.png"><img fetchpriority="high" decoding="async" class="size-full wp-image-49437" src="https://www.carlwebster.com/wp-content/uploads/2013/01/Figure001.png" alt="Figure 1" width="986" height="144" srcset="https://www.carlwebster.com/wp-content/uploads/2013/01/Figure001.png 986w, https://www.carlwebster.com/wp-content/uploads/2013/01/Figure001-530x77.png 530w, https://www.carlwebster.com/wp-content/uploads/2013/01/Figure001-900x131.png 900w, https://www.carlwebster.com/wp-content/uploads/2013/01/Figure001-768x112.png 768w, https://www.carlwebster.com/wp-content/uploads/2013/01/Figure001-600x88.png 600w" sizes="(max-width: 986px) 100vw, 986px" /></a><figcaption id="caption-attachment-49437" class="wp-caption-text">Figure 1</figcaption></figure>
<p>I then ran Microsoft’s Sysinternals ProcMon to get a network trace. I found that TCP Port 2513 needed to be opened (Figure 2).</p>
<figure id="attachment_49438" aria-describedby="caption-attachment-49438" style="width: 647px" class="wp-caption alignnone"><a href="https://www.carlwebster.com/wp-content/uploads/2013/01/Figure002.png"><img decoding="async" class="size-full wp-image-49438" src="https://www.carlwebster.com/wp-content/uploads/2013/01/Figure002.png" alt="Figure 2" width="647" height="222" srcset="https://www.carlwebster.com/wp-content/uploads/2013/01/Figure002.png 647w, https://www.carlwebster.com/wp-content/uploads/2013/01/Figure002-530x182.png 530w, https://www.carlwebster.com/wp-content/uploads/2013/01/Figure002-600x206.png 600w" sizes="(max-width: 647px) 100vw, 647px" /></a><figcaption id="caption-attachment-49438" class="wp-caption-text">Figure 2</figcaption></figure>
<p>My wife tells me I couldn’t find a 10 gallon (37.8541 Liter) jug of milk on the fridge&#8217;s top shelf!  What does this have to do with anything?  DOH! At the top of the help file, I <em>now</em> see (Figure 3):</p>
<figure id="attachment_49439" aria-describedby="caption-attachment-49439" style="width: 706px" class="wp-caption alignnone"><a href="https://www.carlwebster.com/wp-content/uploads/2013/01/Figure003.png"><img decoding="async" class="size-full wp-image-49439" src="https://www.carlwebster.com/wp-content/uploads/2013/01/Figure003.png" alt="Figure 3" width="706" height="103" srcset="https://www.carlwebster.com/wp-content/uploads/2013/01/Figure003.png 706w, https://www.carlwebster.com/wp-content/uploads/2013/01/Figure003-530x77.png 530w, https://www.carlwebster.com/wp-content/uploads/2013/01/Figure003-600x88.png 600w" sizes="(max-width: 706px) 100vw, 706px" /></a><figcaption id="caption-attachment-49439" class="wp-caption-text">Figure 3</figcaption></figure>
<p>The help text says TCP Port 2513 must be opened on both computers, but I found I only needed it opened on the XenApp server.  To me, that is one less port open on my network.</p>
<p>I created a Windows Firewall Rule on my XenApp server to open TCP Port 2513 between the domain controller and my XenApp server (Figure 4).  The “remoteip” will need to be the computer&#8217;s IP address used to run the script.</p>
<pre class="brush: bash; title: ; notranslate"> netsh advfirewall firewall add rule name=&amp;amp;quot;Citrix PoSH TCP Port 2513&amp;amp;quot; dir=in action=allow description=&amp;amp;quot;Allow communication between XenApp and remote computer running PoSH scripts&amp;amp;quot; enable=yes profile=any remoteip=192.168.1.100 protocol=tcp localport=2513 &amp;nbsp;</pre>
<figure id="attachment_49440" aria-describedby="caption-attachment-49440" style="width: 668px" class="wp-caption alignnone"><a href="https://www.carlwebster.com/wp-content/uploads/2013/01/Figure004-1.png"><img loading="lazy" decoding="async" class="size-full wp-image-49440" src="https://www.carlwebster.com/wp-content/uploads/2013/01/Figure004-1.png" alt="Figure 4" width="668" height="331" srcset="https://www.carlwebster.com/wp-content/uploads/2013/01/Figure004-1.png 668w, https://www.carlwebster.com/wp-content/uploads/2013/01/Figure004-1-530x263.png 530w, https://www.carlwebster.com/wp-content/uploads/2013/01/Figure004-1-600x297.png 600w" sizes="auto, (max-width: 668px) 100vw, 668px" /></a><figcaption id="caption-attachment-49440" class="wp-caption-text">Figure 4</figcaption></figure>
<p>The Windows Firewall GUI shows my new rule created and enabled (Figure 5).</p>
<figure id="attachment_49441" aria-describedby="caption-attachment-49441" style="width: 901px" class="wp-caption alignnone"><a href="https://www.carlwebster.com/wp-content/uploads/2013/01/Figure005.png"><img loading="lazy" decoding="async" class="size-full wp-image-49441" src="https://www.carlwebster.com/wp-content/uploads/2013/01/Figure005.png" alt="Figure 5" width="901" height="149" srcset="https://www.carlwebster.com/wp-content/uploads/2013/01/Figure005.png 901w, https://www.carlwebster.com/wp-content/uploads/2013/01/Figure005-530x88.png 530w, https://www.carlwebster.com/wp-content/uploads/2013/01/Figure005-768x127.png 768w, https://www.carlwebster.com/wp-content/uploads/2013/01/Figure005-600x99.png 600w" sizes="auto, (max-width: 901px) 100vw, 901px" /></a><figcaption id="caption-attachment-49441" class="wp-caption-text">Figure 5</figcaption></figure>
<p>Now my script runs (Figure 6).</p>
<figure id="attachment_49442" aria-describedby="caption-attachment-49442" style="width: 988px" class="wp-caption alignnone"><a href="https://www.carlwebster.com/wp-content/uploads/2013/01/Figure006.png"><img loading="lazy" decoding="async" class="size-full wp-image-49442" src="https://www.carlwebster.com/wp-content/uploads/2013/01/Figure006.png" alt="Figure 6" width="988" height="631" srcset="https://www.carlwebster.com/wp-content/uploads/2013/01/Figure006.png 988w, https://www.carlwebster.com/wp-content/uploads/2013/01/Figure006-470x300.png 470w, https://www.carlwebster.com/wp-content/uploads/2013/01/Figure006-900x575.png 900w, https://www.carlwebster.com/wp-content/uploads/2013/01/Figure006-768x490.png 768w, https://www.carlwebster.com/wp-content/uploads/2013/01/Figure006-600x383.png 600w" sizes="auto, (max-width: 988px) 100vw, 988px" /></a><figcaption id="caption-attachment-49442" class="wp-caption-text">Figure 6</figcaption></figure>
<p>Now you can use my XenApp 6.5 PowerShell Documentation Script with absolutely no modifications and have it work with remoting.  Thanks, Citrix, for making this so easy.</p>
<p><strong>Update November 20, 2015</strong>:</p>
<p>If you are having an issue connecting, make sure the Citrix XenApp Commands Remoting service is started. I have seen this service in three states at various locations: Manual, Automatic but not Started, and Automatic and Started.  Make sure this service is Started, and then your remote connection should succeed.</p>
<p>Thanks to my Aussie friend Jeremy Saunders for reminding me to update this article with this information.</p>
<figure id="attachment_49443" aria-describedby="caption-attachment-49443" style="width: 820px" class="wp-caption alignnone"><a href="https://www.carlwebster.com/wp-content/uploads/2013/01/Figure007-1.png"><img loading="lazy" decoding="async" class="size-full wp-image-49443" src="https://www.carlwebster.com/wp-content/uploads/2013/01/Figure007-1.png" alt="Figure 7" width="820" height="616" srcset="https://www.carlwebster.com/wp-content/uploads/2013/01/Figure007-1.png 820w, https://www.carlwebster.com/wp-content/uploads/2013/01/Figure007-1-399x300.png 399w, https://www.carlwebster.com/wp-content/uploads/2013/01/Figure007-1-768x577.png 768w, https://www.carlwebster.com/wp-content/uploads/2013/01/Figure007-1-600x451.png 600w" sizes="auto, (max-width: 820px) 100vw, 820px" /></a><figcaption id="caption-attachment-49443" class="wp-caption-text">Figure 7</figcaption></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://www.carlwebster.com/using-my-citrix-xenapp-6-5-powershell-doumentation-script-with-remoting/feed/</wfw:commentRss>
			<slash:comments>24</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">5216</post-id>	</item>
	</channel>
</rss>
