<?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>Windows SysAdmin Hub</title>
	<atom:link href="https://sysadminguides.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://sysadminguides.wordpress.com</link>
	<description>IT server administrator help - just a click away!</description>
	<lastBuildDate>Thu, 27 Sep 2018 23:35:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>

<image>
	<url>https://sysadminguides.wordpress.com/wp-content/uploads/2017/04/cropped-8148e6668425f602_org.png?w=32</url>
	<title>Windows SysAdmin Hub</title>
	<link>https://sysadminguides.wordpress.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">127283554</site><cloud domain='sysadminguides.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<atom:link rel="search" type="application/opensearchdescription+xml" href="https://sysadminguides.wordpress.com/osd.xml" title="Windows SysAdmin Hub" />
	<atom:link rel='hub' href='https://sysadminguides.wordpress.com/?pushpress=hub'/>
	<item>
		<title>Updated &#8211; Server Setup PowerShell Script</title>
		<link>https://sysadminguides.wordpress.com/2018/09/27/updated-server-setup-script/</link>
					<comments>https://sysadminguides.wordpress.com/2018/09/27/updated-server-setup-script/#respond</comments>
		
		<dc:creator><![CDATA[Cameron Yates]]></dc:creator>
		<pubDate>Thu, 27 Sep 2018 23:16:50 +0000</pubDate>
				<category><![CDATA[Computer Misc]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[new]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[server setup script]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[update]]></category>
		<guid isPermaLink="false">http://sysadminguides.org/?p=3688</guid>

					<description><![CDATA[Out with the old, in with the new&#8230; I&#8217;ve been meaning to update my server setup script post for quite a while now. It was one of the first posts I made on this blog and at that time of writing that post I was very new to PowerShell scripting and it showed. Well tonight &#8230; <a href="https://sysadminguides.wordpress.com/2018/09/27/updated-server-setup-script/" class="more-link">Continue reading <span class="screen-reader-text">Updated &#8211; Server Setup PowerShell&#160;Script</span></a>]]></description>
										<content:encoded><![CDATA[<h3>Out with the old, in with the new&#8230;</h3>
<p>I&#8217;ve been meaning to update my server setup script post for quite a while now. It was one of the first posts I made on this blog and at that time of writing that post I was very new to PowerShell scripting and it showed.</p>
<p>Well tonight was the night!</p>
<p>I made some big amendments to how the script runs, mainly how it gathers the user input. It doesn&#8217;t include everything I&#8217;d like it to eventually contain and preform, but it&#8217;s a start. <img src="https://s0.wp.com/wp-content/mu-plugins/wpcom-smileys/twemoji/2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>If you&#8217;re interested heres the link to the post &#8211;</p>
<p><a href="https://sysadminguides.org/2017/04/12/server-build-script/" rel="nofollow">https://sysadminguides.org/2017/04/12/server-build-script/</a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<hr />
<p>Free to follow and stay updated <img src="https://s0.wp.com/wp-content/mu-plugins/wpcom-smileys/twemoji/2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" />  <a class="genericon genericon-facebook" href="https://www.facebook.com/sysadminguides/" target="_blank" rel="noopener noreferrer"><span class="screen-reader-text">View sysadminguides’s profile on Facebook </span></a><a class="genericon genericon-twitter" href="https://twitter.com/GuidesSysadmin/" target="_blank" rel="noopener noreferrer"><span class="screen-reader-text">View GuidesSysadmin’s profile on Twitter </span></a><a class="genericon genericon-googleplus" href="https://plus.google.com/u/0/115372466162675927272/" target="_blank" rel="noopener noreferrer"><span class="screen-reader-text">View 115372466162675927272’s profile on Google+</span></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://sysadminguides.wordpress.com/2018/09/27/updated-server-setup-script/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3688</post-id>
		<media:content url="https://1.gravatar.com/avatar/4c21b4a8fb07c2a3833a81482c5b545ec72822b1d80e2f61325bf24ea61bc544?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sysadminguides</media:title>
		</media:content>
	</item>
		<item>
		<title>HP MSA SAN &#8211; Basic Troubleshooting &#8211; Controller Faulty / Down (ember lights)</title>
		<link>https://sysadminguides.wordpress.com/2018/09/11/hp-msa-san-basic-troubleshooting-controller-faulty-down-ember-lights/</link>
					<comments>https://sysadminguides.wordpress.com/2018/09/11/hp-msa-san-basic-troubleshooting-controller-faulty-down-ember-lights/#respond</comments>
		
		<dc:creator><![CDATA[Cameron Yates]]></dc:creator>
		<pubDate>Tue, 11 Sep 2018 21:47:32 +0000</pubDate>
				<category><![CDATA[HP]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Controller]]></category>
		<category><![CDATA[controller down]]></category>
		<category><![CDATA[Controller faulty]]></category>
		<category><![CDATA[critical error]]></category>
		<category><![CDATA[down]]></category>
		<category><![CDATA[events]]></category>
		<category><![CDATA[fault]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[logs]]></category>
		<category><![CDATA[MSA]]></category>
		<category><![CDATA[problem controller]]></category>
		<category><![CDATA[putty]]></category>
		<category><![CDATA[reseat]]></category>
		<category><![CDATA[restart]]></category>
		<category><![CDATA[show]]></category>
		<category><![CDATA[troubleshoot]]></category>
		<category><![CDATA[USB connection]]></category>
		<guid isPermaLink="false">http://sysadminguides.org/?p=3667</guid>

					<description><![CDATA[&#160; In this post we are going to look at basic troubleshooting steps a System Administrator can carry out to identify and potentially resolve a faulty storage controller in a HP MSA 2040. This post is going to focus more on dual controller setups, with both a Controller A and a Controller B. In my &#8230; <a href="https://sysadminguides.wordpress.com/2018/09/11/hp-msa-san-basic-troubleshooting-controller-faulty-down-ember-lights/" class="more-link">Continue reading <span class="screen-reader-text">HP MSA SAN &#8211; Basic Troubleshooting &#8211; Controller Faulty / Down (ember&#160;lights)</span></a>]]></description>
										<content:encoded><![CDATA[<p>&nbsp;</p>
<h3>In this post we are going to look at basic troubleshooting steps a System Administrator can carry out to identify and potentially resolve a faulty storage controller in a HP MSA 2040.</h3>
<p>This post is going to focus more on dual controller setups, with both a Controller A and a Controller B. In my case the faulty controller was brought to my attention by the health ember light on the front of the SAN and using the methods displayed in this article. I was able to gather information and ultimately bring the controller back up.</p>
<h4><span style="text-decoration:underline;">First step is to log into the SMU (Storage Management Utility)</span> &#8211;</h4>
<p>Using the SMU you can use the event logs as a first step to identifying the error/problem</p>
<p>In my case I was getting the error below:</p>
<blockquote><p><span style="color:#800000;">Error: Critical Error Fault Type: NMI p1: 0x037454E, p2: 0x0000000 &#8230;.. No Cur Thread</span></p></blockquote>
<p><img data-attachment-id="3660" data-permalink="https://sysadminguides.wordpress.com/smu-controller-a-failer3/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/smu-controller-a-failer3.png" data-orig-size="933,390" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="SMU Controller" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/smu-controller-a-failer3.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/smu-controller-a-failer3.png?w=676" class="alignnone size-full wp-image-3660" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/smu-controller-a-failer3.png?w=676" alt="SMU Controller"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/smu-controller-a-failer3.png 933w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/smu-controller-a-failer3.png?w=150&amp;h=63 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/smu-controller-a-failer3.png?w=300&amp;h=125 300w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/smu-controller-a-failer3.png?w=768&amp;h=321 768w" sizes="(max-width: 933px) 100vw, 933px" /></p>
<p>Overall there wasn&#8217;t a lot of information to go off aside from confirmation that a serious error had occurred on Controller A and as a result Controller B had initiated the failover process.</p>
<p>Controller A was still powered on and ping able, plus I could get to it&#8217;s SMU. However, when I tried to log in it would either give an unsuccessful login or state that the controller was &#8216;initializing&#8217;.</p>
<h4><span style="text-decoration:underline;">Get more information using CLI</span> &#8211;</h4>
<p>A good way to gather more information is to telnet or ssh into the working controller&#8217;s command line interface (CLI). An easy method to do this is to use a piece of software called Putty.</p>
<p>Just enter the controllers IP and press <strong>Open</strong></p>
<p><img data-attachment-id="3661" data-permalink="https://sysadminguides.wordpress.com/putty/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/putty.png" data-orig-size="617,208" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Putty" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/putty.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/putty.png?w=617" class="alignnone size-full wp-image-3661" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/putty.png?w=676" alt="Putty"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/putty.png 617w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/putty.png?w=150&amp;h=51 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/putty.png?w=300&amp;h=101 300w" sizes="(max-width: 617px) 100vw, 617px" /></p>
<p>When prompted put in your credentials (the one you would use to log into the SMU)</p>
<p>If a putty connection over your network isn&#8217;t working, try the below method to connect via USB.</p>
<h4><span style="text-decoration:underline;">Connecting to MSA CLI via Serial Connecton using USB to Mini USB</span> &#8211;</h4>
<p>-Install driver for the USB connection. (<a href="http://h20564.www2.hp.com/hpsc/swd/public/detail?swItemId=MTX_8de10954d645450f9e3c0d015d">http://h20564.www2.hp.com/hpsc/swd/public/detail?swItemId=MTX_8de10954d645450f9e3c0d015d</a> )</p>
<p>-Check COM port on Device Manager from Windows.</p>
<p><strong><img data-attachment-id="3663" data-permalink="https://sysadminguides.wordpress.com/device-mangaer/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/device-mangaer.jpg" data-orig-size="318,110" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="USB device manager" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/device-mangaer.jpg?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/device-mangaer.jpg?w=318" class="alignnone size-full wp-image-3663" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/device-mangaer.jpg?w=676" alt="USB device manager"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/device-mangaer.jpg 318w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/device-mangaer.jpg?w=150&amp;h=52 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/device-mangaer.jpg?w=300&amp;h=104 300w" sizes="(max-width: 318px) 100vw, 318px" /></strong></p>
<p>-Connect USB to the Mini USB port of the MSA</p>
<p>-Use Putty, or Hyperterminal.</p>
<p><img loading="lazy" data-attachment-id="3664" data-permalink="https://sysadminguides.wordpress.com/putty-usb/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/putty-usb.jpg" data-orig-size="358,148" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="putty USB" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/putty-usb.jpg?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/putty-usb.jpg?w=358" class="alignnone size-full wp-image-3664" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/putty-usb.jpg?w=676" alt="putty USB"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/putty-usb.jpg 358w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/putty-usb.jpg?w=150&amp;h=62 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/putty-usb.jpg?w=300&amp;h=124 300w" sizes="(max-width: 358px) 100vw, 358px" /></p>
<p>-Hit enter to connect to the MSA.</p>
<h4><span style="text-decoration:underline;">Useful CLI Commands</span> &#8211;</h4>
<p>Get information about both controllers</p>
<blockquote><p>show controllers</p></blockquote>
<p>Show recent controller events (can copy output into notepad)</p>
<blockquote><p>show events</p></blockquote>
<p>In my case the show controllers command displayed a health note advising me to restart the problem controller A.</p>
<blockquote><p>Health Reason: The controller is not Healthy</p>
<p>Recommendation: &#8211; Restart the Storage Controller in this controller module, unless it is performing an operation where it is normal for it to be shut down, such as firmware update.</p></blockquote>
<p>For all CLI commands, you can refer to HP&#8217;s CLI Reference Guide &#8211;</p>
<p><a href="https://h50146.www5.hpe.com/lib/products/storage/manual/array/723979-001.pdf" target="_blank" rel="noopener noreferrer nofollow">Click to access 723979-001.pdf</a></p>
<h4><span style="text-decoration:underline;">Re-Seating the Problem Controller</span> &#8211;</h4>
<p>Ultimately I chose to reseat the problem controller in an attempt to prompt a clean restart. Essentially what this involves is unscrewing the two pins holding the problem controller, followed by pulling it slightly out of the controller slot and putting it back in.</p>
<p>Although doing this caused the controller to show no health issues when re-running the <strong>#show controller</strong> command on the working Controller (B). I had no connectivity to the problem controller (A).</p>
<p><strong>Progress!</strong> At least at this point I didn&#8217;t have any errors in my working controller&#8217;s (B) SMU and nothing was showing as unhealthy in the CLI.</p>
<h4><span style="text-decoration:underline;">Restarting the Controller</span> &#8211;</h4>
<p>All had to do at this point was restart the problem controller (A) via CLI. It came back up healthy with network connectivity.</p>
<blockquote><p>restart mc a</p></blockquote>
<p><span style="text-decoration:underline;">Additional info concerning CLI restarting: Syntax restart sc|mc a|b|both </span><br />
Parameters sc|mc<br />
<em>The controller to restart:</em><br />
&#8211; sc: Storage Controller<br />
&#8211; mc: Management Controller<br />
a|b|both</p>
<p>I could now connect using putty to Controller A, I could login into it&#8217;s SMU and the ember lights had cleared from the physical panel on the SAN. Happy days!</p>
<p><span style="color:#ffcc00;">**</span>If a simple reseat, restart, or cold reboot of the problem controller still fails to resolve your issue or you want to try and gather more information as to the preceding events leading up to the error. There is the option to generate detailed logs via CLI.</p>
<h4><span style="text-decoration:underline;">Get more detailed logs via CLI</span> &#8211;</h4>
<ul>
<li>Enter the command in CLI &#8220;<em>#show protocols&#8221;</em>
<ul>
<li>If FTP is not Enabled &#8211;</li>
<li>Enter the command: &#8220;<em>#set protocols ftp enabled&#8221;</em></li>
<li>Exit the telnet session, putty etc.</li>
<li>Once FTP is enabled:
<ul>
<li>Go to Start &#8211; Command Prompt &#8211; enter &#8220;cd ../..&#8221; (Go to C:/ Drive or the location where you want to save the logs)</li>
<li>Type <em>&#8220;#ftp &#8221;<br />
</em></li>
<li>Then type the user name and password of controller to authenticate.</li>
</ul>
</li>
<li>Use the command &#8220;<em>#get logs filename.zip&#8221;</em></li>
</ul>
</li>
</ul>
<p>Once you have your logs, you can use Trace32 to view the logs. (Can use notepad but it&#8217;s very difficult to view due to a lack of formatting.</p>
<p><span style="text-decoration:underline;">You can download Trace32 here:</span></p>
<p>Download Microsoft Config Manager tools and choose to only install <strong>Common Tools</strong> in the wizard.</p>
<p><a href="https://www.microsoft.com/en-us/download/details.aspx?id=9257" rel="nofollow">https://www.microsoft.com/en-us/download/details.aspx?id=9257</a></p>
<p><img loading="lazy" data-attachment-id="3665" data-permalink="https://sysadminguides.wordpress.com/common-tools/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/common-tools.png" data-orig-size="631,493" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="configmgr" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/common-tools.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/common-tools.png?w=631" class="alignnone size-full wp-image-3665" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/common-tools.png?w=676" alt="configmgr"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/common-tools.png 631w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/common-tools.png?w=150&amp;h=117 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/common-tools.png?w=300&amp;h=234 300w" sizes="(max-width: 631px) 100vw, 631px" /></p>
<p><img loading="lazy" data-attachment-id="3666" data-permalink="https://sysadminguides.wordpress.com/sms-trace/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/sms-trace.png" data-orig-size="774,453" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Tracer32" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/sms-trace.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/sms-trace.png?w=676" class="alignnone size-full wp-image-3666" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/sms-trace.png?w=676" alt="Tracer32"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/sms-trace.png 774w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/sms-trace.png?w=150&amp;h=88 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/sms-trace.png?w=300&amp;h=176 300w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/sms-trace.png?w=768&amp;h=449 768w" sizes="(max-width: 774px) 100vw, 774px" /></p>
<p>Hope this was helpful!</p>
<p>&nbsp;</p>
<hr />
<p>Thanks for reading &#8211; feel free to follow and stay updated <img src="https://s0.wp.com/wp-content/mu-plugins/wpcom-smileys/twemoji/2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <a class="genericon genericon-facebook" href="https://www.facebook.com/sysadminguides/" target="_blank" rel="noopener noreferrer"><span class="screen-reader-text">View sysadminguides’s profile on Facebook </span></a><a class="genericon genericon-twitter" href="https://twitter.com/GuidesSysadmin/" target="_blank" rel="noopener noreferrer"><span class="screen-reader-text">View GuidesSysadmin’s profile on Twitter </span></a><a class="genericon genericon-googleplus" href="https://plus.google.com/u/0/115372466162675927272/" target="_blank" rel="noopener noreferrer"><span class="screen-reader-text">View 115372466162675927272’s profile on Google+</span></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://sysadminguides.wordpress.com/2018/09/11/hp-msa-san-basic-troubleshooting-controller-faulty-down-ember-lights/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3667</post-id>
		<media:content url="https://1.gravatar.com/avatar/4c21b4a8fb07c2a3833a81482c5b545ec72822b1d80e2f61325bf24ea61bc544?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sysadminguides</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/smu-controller-a-failer3.png" medium="image">
			<media:title type="html">SMU Controller</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/putty.png" medium="image">
			<media:title type="html">Putty</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/device-mangaer.jpg" medium="image">
			<media:title type="html">USB device manager</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/putty-usb.jpg" medium="image">
			<media:title type="html">putty USB</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/common-tools.png" medium="image">
			<media:title type="html">configmgr</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/sms-trace.png" medium="image">
			<media:title type="html">Tracer32</media:title>
		</media:content>
	</item>
		<item>
		<title>Get Computer Workstations Manufacturer and Model Remotely using a PowerShell Script</title>
		<link>https://sysadminguides.wordpress.com/2018/09/04/get-workstations-manufacturer-model-remotely-using-powershell/</link>
					<comments>https://sysadminguides.wordpress.com/2018/09/04/get-workstations-manufacturer-model-remotely-using-powershell/#comments</comments>
		
		<dc:creator><![CDATA[Cameron Yates]]></dc:creator>
		<pubDate>Tue, 04 Sep 2018 21:23:19 +0000</pubDate>
				<category><![CDATA[Powershell]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[CSV]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[export csv]]></category>
		<category><![CDATA[Get-wmiobject]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[manufacturer]]></category>
		<category><![CDATA[model]]></category>
		<category><![CDATA[powershell script]]></category>
		<category><![CDATA[RPC server is unavailable]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[workstation]]></category>
		<guid isPermaLink="false">http://sysadminguides.org/?p=3624</guid>

					<description><![CDATA[In this post we are going investigate the use of PowerShell scripting to remotely mass gather all desktops \ laptops make and model details within an environment. Asset management is a big part of the general management of business IT. Having useful little scripts to gather information quickly with minimal effort has proved very beneficial &#8230; <a href="https://sysadminguides.wordpress.com/2018/09/04/get-workstations-manufacturer-model-remotely-using-powershell/" class="more-link">Continue reading <span class="screen-reader-text">Get Computer Workstations Manufacturer and Model Remotely using a PowerShell&#160;Script</span></a>]]></description>
										<content:encoded><![CDATA[<h3>In this post we are going investigate the use of PowerShell scripting to remotely mass gather all desktops \ laptops make and model details within an environment.</h3>
<p>Asset management is a big part of the general management of business IT. Having useful little scripts to gather information quickly with minimal effort has proved very beneficial for me, especially in environments where asset management has been neglected.</p>
<h4></h4>
<h4>Getting a list of workstations &#8211;</h4>
<p>If you don&#8217;t already have list of your workstations, run the PowerShell command below making sure to change the -searchbase switch to match your environment.</p>
<blockquote><p><span style="color:#0000ff;font-family:Lucida Console;font-size:small;">Get-ADComputer</span> <span style="color:#000080;font-family:Lucida Console;font-size:small;">-filter</span><span style="font-family:Lucida Console;font-size:small;"> * </span><span style="color:#000080;font-family:Lucida Console;font-size:small;">-SearchBase</span> <span style="color:#8b0000;font-family:Lucida Console;font-size:small;">&#8216;OU=Workstations,DC=plebs,DC=local&#8217;</span> <span style="color:#000080;font-family:Lucida Console;font-size:small;">-Properties</span> <span style="color:#8a2be2;font-family:Lucida Console;font-size:small;">*</span> <span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">|</span> <span style="color:#0000ff;font-family:Lucida Console;font-size:small;">select</span> <span style="color:#8a2be2;font-family:Lucida Console;font-size:small;">Name</span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">,</span> <span style="color:#8a2be2;font-family:Lucida Console;font-size:small;">Description</span> <span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">|</span> <span style="color:#0000ff;font-family:Lucida Console;font-size:small;">export-csv</span> <span style="color:#000080;font-family:Lucida Console;font-size:small;">-Path</span> <span style="color:#8a2be2;font-family:Lucida Console;font-size:small;">C:\temp\Workstations.csv</span></p></blockquote>
<h4></h4>
<h4>Creating a notepad containing workstations &#8211;</h4>
<p>Next you will need to copy the workstations into a txt document. In my case I saved it to a temp folder on my C Drive. Your script will pull from this document.</p>
<p><img loading="lazy" data-attachment-id="3618" data-permalink="https://sysadminguides.wordpress.com/computers/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/computers.jpg" data-orig-size="437,261" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;Cameron Yates&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1536096584&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Workstations" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/computers.jpg?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/computers.jpg?w=437" class="alignnone size-full wp-image-3618" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/computers.jpg?w=676" alt="Workstations notepad"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/computers.jpg 437w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/computers.jpg?w=150&amp;h=90 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/computers.jpg?w=300&amp;h=179 300w" sizes="(max-width: 437px) 100vw, 437px" /></p>
<h4></h4>
<h4>Loop script utilizing Get-WmiObject &#8211;</h4>
<p>Make sure to point the script to the right locations, so Get-Content needs target the location of your txt file.</p>
<blockquote><p><span style="color:#ff4500;font-family:Lucida Console;font-size:small;">$computernames</span> <span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">=</span> <span style="color:#0000ff;font-family:Lucida Console;font-size:small;">Get-Content</span> <span style="color:#8b0000;font-family:Lucida Console;font-size:small;">&#8216;C:\temp\Computers.txt&#8217;</span> <span style="color:#006400;font-family:Lucida Console;font-size:small;">#Gets list of workstations from txt document</span><br />
<span style="color:#ff4500;font-family:Lucida Console;font-size:small;">$Workstations</span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">=</span><span style="font-family:Lucida Console;font-size:small;"> @() </span><span style="color:#006400;font-family:Lucida Console;font-size:small;">#Stops loop clearing array</span><br />
<span style="color:#00008b;font-family:Lucida Console;font-size:small;">foreach</span><span style="font-family:Lucida Console;font-size:small;"> (</span><span style="color:#ff4500;font-family:Lucida Console;font-size:small;">$computername</span> <span style="color:#00008b;font-family:Lucida Console;font-size:small;">in</span> <span style="color:#ff4500;font-family:Lucida Console;font-size:small;">$computernames</span><span style="font-family:Lucida Console;font-size:small;">) </span><br />
{<br />
<span style="color:#ff4500;font-family:Lucida Console;font-size:small;">$WmiObject</span> <span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">=</span> <span style="color:#0000ff;font-family:Lucida Console;font-size:small;">Get-WmiObject</span> <span style="color:#000080;font-family:Lucida Console;font-size:small;">-computername</span> <span style="color:#ff4500;font-family:Lucida Console;font-size:small;">$computername</span> <span style="color:#8a2be2;font-family:Lucida Console;font-size:small;">Win32_ComputerSystem</span> <span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">|</span> <span style="color:#0000ff;font-family:Lucida Console;font-size:small;">select</span> <span style="color:#8a2be2;font-family:Lucida Console;font-size:small;">Manufacturer</span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">,</span> <span style="color:#8a2be2;font-family:Lucida Console;font-size:small;">Model</span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">,</span> <span style="color:#8a2be2;font-family:Lucida Console;font-size:small;">Name</span><br />
<span style="color:#ff4500;font-family:Lucida Console;font-size:small;">$Workstations</span> <span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">+=</span> <span style="color:#ff4500;font-family:Lucida Console;font-size:small;">$WmiObject</span><br />
}<br />
<span style="color:#ff4500;font-family:Lucida Console;font-size:small;">$Workstations</span> <span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">|</span> <span style="color:#0000ff;font-family:Lucida Console;font-size:small;">export-csv</span> <span style="color:#000080;font-family:Lucida Console;font-size:small;">-Path</span> <span style="color:#8a2be2;font-family:Lucida Console;font-size:small;">C:\temp\WorkstationDetails.csv </span></p></blockquote>
<h4>Exported CSV Results &#8211;</h4>
<p>Go to the location of your exported CSV and you should get similar results to the image below.</p>
<p><img loading="lazy" data-attachment-id="3619" data-permalink="https://sysadminguides.wordpress.com/computers2/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/computers2.jpg" data-orig-size="499,135" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;Cameron Yates&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1536098307&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Excel csv" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/computers2.jpg?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/computers2.jpg?w=499" class="alignnone size-full wp-image-3619" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/computers2.jpg?w=676" alt="Excel csv"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/computers2.jpg 499w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/computers2.jpg?w=150&amp;h=41 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/computers2.jpg?w=300&amp;h=81 300w" sizes="(max-width: 499px) 100vw, 499px" /></p>
<h4></h4>
<h4>Errors: The RPC server is unavailable &#8211;</h4>
<p><img loading="lazy" data-attachment-id="3623" data-permalink="https://sysadminguides.wordpress.com/error1/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/error1.png" data-orig-size="849,106" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="get-wmiobject" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/error1.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/error1.png?w=676" class="alignnone  wp-image-3623" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/error1.png?w=728&#038;h=91" alt="get-wmiobject" width="728" height="91" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/error1.png?w=728&amp;h=91 728w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/error1.png?w=150&amp;h=19 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/error1.png?w=300&amp;h=37 300w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/error1.png?w=768&amp;h=96 768w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/error1.png 849w" sizes="(max-width: 728px) 100vw, 728px" /></p>
<p>This error is nothing to worry about, it simply means the desktop/laptop is currently not on the network or powered on. The script will just exclude that workstation from the list.</p>
<h4></h4>
<h4>Want to include failed connections?</h4>
<p>If you want to include failed connections in the final export, try using this script. It utilizes the Test-Connection command to test the connection to the workstations and as a result the addition of the failed desktops in the csv. However instead of showing the Make and Model it changes the manufacturer and model column to &#8220;Failed connection&#8221; whilst also adding the desktop name.</p>
<blockquote><p><span style="color:#ff4500;font-family:Lucida Console;font-size:small;">$computernames</span> <span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">=</span> <span style="color:#0000ff;font-family:Lucida Console;font-size:small;">Get-Content</span> <span style="color:#8b0000;font-family:Lucida Console;font-size:small;">&#8216;C:\temp\Computers.txt&#8217;</span> <span style="color:#006400;font-family:Lucida Console;font-size:small;">#Gets list of workstations from txt document</span><br />
<span style="color:#ff4500;font-family:Lucida Console;font-size:small;">$Workstations</span> <span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">=</span><span style="font-family:Lucida Console;font-size:small;"> @() </span><span style="color:#006400;font-family:Lucida Console;font-size:small;">#Stops loop clearing array</span></p>
<p><span style="color:#00008b;font-family:Lucida Console;font-size:small;">foreach</span><span style="font-family:Lucida Console;font-size:small;"> (</span><span style="color:#ff4500;font-family:Lucida Console;font-size:small;">$computername</span> <span style="color:#00008b;font-family:Lucida Console;font-size:small;">in</span> <span style="color:#ff4500;font-family:Lucida Console;font-size:small;">$computernames</span><span style="font-family:Lucida Console;font-size:small;">) </span><br />
{<br />
<span style="color:#ff4500;font-family:Lucida Console;font-size:small;">$status</span> <span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">=</span> <span style="color:#0000ff;font-family:Lucida Console;font-size:small;">Test-Connection</span> <span style="color:#ff4500;font-family:Lucida Console;font-size:small;">$computername</span> <span style="color:#000080;font-family:Lucida Console;font-size:small;">-count</span> <span style="color:#800080;font-family:Lucida Console;font-size:small;">1</span> <span style="color:#000080;font-family:Lucida Console;font-size:small;">-quiet</span> <span style="color:#006400;font-family:Lucida Console;font-size:small;">#Tests connection</span><br />
<span style="color:#006400;font-family:Lucida Console;font-size:small;">#If connection successful</span><br />
<span style="color:#00008b;font-family:Lucida Console;font-size:small;">If</span><span style="font-family:Lucida Console;font-size:small;"> (</span><span style="color:#ff4500;font-family:Lucida Console;font-size:small;">$status</span> <span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">-eq</span> <span style="color:#8b0000;font-family:Lucida Console;font-size:small;">&#8216;true&#8217;</span><span style="font-family:Lucida Console;font-size:small;">){</span><br />
<span style="color:#ff4500;font-family:Lucida Console;font-size:small;">$WmiObject</span> <span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">=</span> <span style="color:#0000ff;font-family:Lucida Console;font-size:small;">Get-WmiObject</span> <span style="color:#000080;font-family:Lucida Console;font-size:small;">-computername</span> <span style="color:#ff4500;font-family:Lucida Console;font-size:small;">$computername</span> <span style="color:#8a2be2;font-family:Lucida Console;font-size:small;">Win32_ComputerSystem</span> <span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">|</span> <span style="color:#0000ff;font-family:Lucida Console;font-size:small;">select</span> <span style="color:#8a2be2;font-family:Lucida Console;font-size:small;">Manufacturer</span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">,</span> <span style="color:#8a2be2;font-family:Lucida Console;font-size:small;">Model</span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">,</span> <span style="color:#8a2be2;font-family:Lucida Console;font-size:small;">Name</span><br />
<span style="color:#ff4500;font-family:Lucida Console;font-size:small;">$Workstations</span> <span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">+=</span> <span style="color:#ff4500;font-family:Lucida Console;font-size:small;">$WmiObject</span><br />
}<br />
<span style="color:#006400;font-family:Lucida Console;font-size:small;">#Else if connection fails</span><br />
<span style="color:#00008b;font-family:Lucida Console;font-size:small;">Else</span><span style="font-family:Lucida Console;font-size:small;"> {</span><br />
<span style="color:#006400;font-family:Lucida Console;font-size:small;">#Create object</span><br />
<span style="color:#ff4500;font-family:Lucida Console;font-size:small;">$object</span> <span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">=</span> <span style="color:#8b0000;font-family:Lucida Console;font-size:small;">&#8220;&#8221;</span> <span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">|</span> <span style="color:#0000ff;font-family:Lucida Console;font-size:small;">Select</span> <span style="color:#8b0000;font-family:Lucida Console;font-size:small;">&#8220;Name&#8221;</span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">,</span><span style="color:#8b0000;font-family:Lucida Console;font-size:small;">&#8220;Manufacturer&#8221;</span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">,</span><span style="color:#8b0000;font-family:Lucida Console;font-size:small;">&#8220;Model&#8221;</span><br />
<span style="color:#006400;font-family:Lucida Console;font-size:small;"># Fill the object</span><br />
<span style="color:#ff4500;font-family:Lucida Console;font-size:small;">$object</span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">.</span><span style="font-family:Lucida Console;font-size:small;">Name </span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">=</span> <span style="color:#ff4500;font-family:Lucida Console;font-size:small;">$computername</span><br />
<span style="color:#ff4500;font-family:Lucida Console;font-size:small;">$object</span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">.</span><span style="font-family:Lucida Console;font-size:small;">Manufacturer </span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">=</span> <span style="color:#8b0000;font-family:Lucida Console;font-size:small;">&#8220;Failed Connection&#8221;</span><br />
<span style="color:#ff4500;font-family:Lucida Console;font-size:small;">$object</span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">.</span><span style="font-family:Lucida Console;font-size:small;">Model </span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">=</span> <span style="color:#8b0000;font-family:Lucida Console;font-size:small;">&#8220;Failed Connection&#8221;</span><br />
<span style="color:#006400;font-family:Lucida Console;font-size:small;"># Add the object to the workstations array</span><br />
<span style="color:#ff4500;font-family:Lucida Console;font-size:small;">$Workstations</span> <span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">+=</span> <span style="color:#ff4500;font-family:Lucida Console;font-size:small;">$object</span><br />
<span style="color:#006400;font-family:Lucida Console;font-size:small;"># Wipe the object</span><br />
<span style="color:#ff4500;font-family:Lucida Console;font-size:small;">$object</span> <span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">=</span> <span style="color:#ff4500;font-family:Lucida Console;font-size:small;">$null </span>}<br />
}<br />
<span style="color:#ff4500;font-family:Lucida Console;font-size:small;">$Workstations</span> <span style="color:#a9a9a9;font-family:Lucida Console;font-size:small;">|</span> <span style="color:#0000ff;font-family:Lucida Console;font-size:small;">export-csv</span> <span style="color:#000080;font-family:Lucida Console;font-size:small;">-Path</span> <span style="color:#8a2be2;font-family:Lucida Console;font-size:small;">C:\temp\WorkstationDetails.csv </span></p></blockquote>
<p><img loading="lazy" data-attachment-id="3629" data-permalink="https://sysadminguides.wordpress.com/2018/09/04/get-workstations-manufacturer-model-remotely-using-powershell/capture4/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/capture4.png" data-orig-size="920,185" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Failed connection csv" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/capture4.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/capture4.png?w=676" class="alignnone  wp-image-3629" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/capture4.png?w=620&#038;h=125" alt="Failed connection csv" width="620" height="125" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/capture4.png?w=620&amp;h=125 620w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/capture4.png?w=150&amp;h=30 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/capture4.png?w=300&amp;h=60 300w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/capture4.png?w=768&amp;h=154 768w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/capture4.png 920w" sizes="(max-width: 620px) 100vw, 620px" /></p>
<h4>Want your script to gather more workstation information? &#8211;</h4>
<p>WMI has a number of different classes that can be utilized to extract more information about the workstations in your environment.</p>
<p><a href="https://ss64.com/ps/get-wmiobject.html" rel="nofollow">https://ss64.com/ps/get-wmiobject.html</a> &#8211; Includes a lot of the available classes you can check out.</p>
<p>Also user &#8216;<a class="commit-author tooltipped tooltipped-s user-mention" href="https://github.com/vinaypamnani/wmie2/commits?author=vinaypamnani">vinaypamnani</a>&#8216; on Github has published a really impressive WMI explorer application.  &#8211; <a href="https://archive.codeplex.com/?p=wmie" rel="nofollow">https://archive.codeplex.com/?p=wmie</a> &#8211; <a href="https://github.com/vinaypamnani/wmie2/releases" rel="nofollow">https://github.com/vinaypamnani/wmie2/releases</a></p>
<p>&nbsp;</p>
<hr />
<p>Thanks for reading &#8211; feel free to follow and stay updated <img src="https://s0.wp.com/wp-content/mu-plugins/wpcom-smileys/twemoji/2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <a class="genericon genericon-facebook" href="https://www.facebook.com/sysadminguides/" target="_blank" rel="noopener noreferrer"><span class="screen-reader-text">View sysadminguides’s profile on Facebook </span></a><a class="genericon genericon-twitter" href="https://twitter.com/GuidesSysadmin/" target="_blank" rel="noopener noreferrer"><span class="screen-reader-text">View GuidesSysadmin’s profile on Twitter </span></a><a class="genericon genericon-googleplus" href="https://plus.google.com/u/0/115372466162675927272/" target="_blank" rel="noopener noreferrer"><span class="screen-reader-text">View 115372466162675927272’s profile on Google+</span></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://sysadminguides.wordpress.com/2018/09/04/get-workstations-manufacturer-model-remotely-using-powershell/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3624</post-id>
		<media:content url="https://1.gravatar.com/avatar/4c21b4a8fb07c2a3833a81482c5b545ec72822b1d80e2f61325bf24ea61bc544?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sysadminguides</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/computers.jpg" medium="image">
			<media:title type="html">Workstations notepad</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/computers2.jpg" medium="image">
			<media:title type="html">Excel csv</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/error1.png" medium="image">
			<media:title type="html">get-wmiobject</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/09/capture4.png" medium="image">
			<media:title type="html">Failed connection csv</media:title>
		</media:content>
	</item>
		<item>
		<title>[Fix] ILO HP Error &#8211; Embedded Flash/SD-CARD: Embedded media manager failed initialization</title>
		<link>https://sysadminguides.wordpress.com/2018/08/26/fix-ilo-hp-error-embedded-flash-sd-card-embedded-media-manager-failed-initialization/</link>
					<comments>https://sysadminguides.wordpress.com/2018/08/26/fix-ilo-hp-error-embedded-flash-sd-card-embedded-media-manager-failed-initialization/#comments</comments>
		
		<dc:creator><![CDATA[Cameron Yates]]></dc:creator>
		<pubDate>Sun, 26 Aug 2018 15:11:01 +0000</pubDate>
				<category><![CDATA[Computer Misc]]></category>
		<category><![CDATA[HP]]></category>
		<category><![CDATA[embedded]]></category>
		<category><![CDATA[embedded flash]]></category>
		<category><![CDATA[embedded media manager failed inititialization]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[failed]]></category>
		<category><![CDATA[firmware]]></category>
		<category><![CDATA[firmware upgrade]]></category>
		<category><![CDATA[HP Lights out configuration utility]]></category>
		<category><![CDATA[HP Proliant]]></category>
		<category><![CDATA[ILO]]></category>
		<category><![CDATA[ILO error]]></category>
		<category><![CDATA[ILO upgrade]]></category>
		<category><![CDATA[manager]]></category>
		<category><![CDATA[media]]></category>
		<category><![CDATA[NAND]]></category>
		<category><![CDATA[Reset]]></category>
		<category><![CDATA[SD Card]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[XML script]]></category>
		<guid isPermaLink="false">http://sysadminguides.org/?p=3598</guid>

					<description><![CDATA[In this post we are going to look at a ILO diagnostics error displaying problems with the internal USB/SDHC card on a server&#8217;s motherboard. In my case the issue appeared after preforming an ILO firmware upgrade to a HP Proliant blade server. The error in full was: (sorry about the lack of images) Embedded Flash/SD-Card: &#8230; <a href="https://sysadminguides.wordpress.com/2018/08/26/fix-ilo-hp-error-embedded-flash-sd-card-embedded-media-manager-failed-initialization/" class="more-link">Continue reading <span class="screen-reader-text">[Fix] ILO HP Error &#8211; Embedded Flash/SD-CARD: Embedded media manager failed&#160;initialization</span></a>]]></description>
										<content:encoded><![CDATA[<h3>In this post we are going to look at a ILO diagnostics error displaying problems with the internal USB/SDHC card on a server&#8217;s motherboard.</h3>
<p>In my case the issue appeared after preforming an ILO firmware upgrade to a HP Proliant blade server.</p>
<p>The error in full was: (sorry about the lack of images)</p>
<blockquote><p><span style="color:#993300;">Embedded Flash/SD-Card: Embedded media manager failed initialization</span></p></blockquote>
<p>The way in which I tackled this error involved completely resetting the SD Card (NAND) using a XML script against the HP ILO configuration tool executable.</p>
<h4>HP-Lights out configuration tool &#8211;</h4>
<p>If you want to try the same process. Firstly you are going to need the HP-Lights out configuration tool found here:</p>
<p><a href="https://support.hpe.com/hpsc/swd/public/detail?sp4ts.oid=5264039&#038;swItemId=MTX_c2f8737292c74b3b852b063ff7&#038;swEnvOid=4210" rel="nofollow">https://support.hpe.com/hpsc/swd/public/detail?sp4ts.oid=5264039&#038;swItemId=MTX_c2f8737292c74b3b852b063ff7&#038;swEnvOid=4210</a></p>
<p>You can install it on any device that has connectivity to the problem server. In my case I just installed it on the HP server displaying the error.</p>
<h4>Creating the XML file &#8211;</h4>
<p>Next you are going to want to create the XML file that&#8217;s going to initiate a wipe of your servers internal SD Card.</p>
<p>Simply open notepad, put in the contents below and save it in XML file format. So in my case I named it <strong>ResetNAND.xml</strong></p>
<blockquote><p>&lt;RIBCL VERSION=&#8221;2.0&#8243;&gt;<br />
&lt;LOGIN USER_LOGIN=&#8221;<span style="color:#000080;">Administrator</span>&#8221; PASSWORD=&#8221;<span style="color:#000080;">Password</span>&#8220;&gt;<br />
&lt;RIB_INFO MODE=&#8221;write&#8221;&gt;<br />
&lt;FORCE_FORMAT VALUE=&#8221;all&#8221; /&gt;<br />
&lt;/RIB_INFO&gt;<br />
&lt;/LOGIN&gt;<br />
&lt;/RIBCL&gt;</p></blockquote>
<p><span style="color:#ff0000;">**</span>Make sure to change the LOGIN USER_LOGIN line to contain your ILO username and password.</p>
<p>Save the file to the location of the HP ILO utility-</p>
<blockquote><p>C:\Program Files (x86)\HP Lights-Out Configuration Utility</p></blockquote>
<p><img loading="lazy" data-attachment-id="3600" data-permalink="https://sysadminguides.wordpress.com/2018/08/26/fix-ilo-hp-error-embedded-flash-sd-card-embedded-media-manager-failed-initialization/rdcman_2018-08-26_15-43-44/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/08/rdcman_2018-08-26_15-43-44.png" data-orig-size="871,354" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="HP Lights-Out Configuration Utility" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/08/rdcman_2018-08-26_15-43-44.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/08/rdcman_2018-08-26_15-43-44.png?w=676" class="alignnone size-full wp-image-3600" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/08/rdcman_2018-08-26_15-43-44.png?w=676" alt="HP Lights-Out Configuration Utility"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/08/rdcman_2018-08-26_15-43-44.png 871w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/08/rdcman_2018-08-26_15-43-44.png?w=150&amp;h=61 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/08/rdcman_2018-08-26_15-43-44.png?w=300&amp;h=122 300w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/08/rdcman_2018-08-26_15-43-44.png?w=768&amp;h=312 768w" sizes="(max-width: 871px) 100vw, 871px" /></p>
<h4>Running the XML &#8211;</h4>
<p>Now it&#8217;s time to run the XML. First open up CMD and navigate to the HP Lights-Outs Configuration Utility directory. Follow this up by typing in the following, making sure to change the IP , the username/password to match your environment and the filename if you called your XML something different.</p>
<blockquote><p>C:\Program Files (x86)\HP Lights-Out Configuration Utility&gt;HPQLOCFG.exe -s <span style="color:#000080;">&lt;ILO server IP&gt;</span> -f <span style="color:#000080;">ResetNAND.xml</span> -u <span style="color:#000080;">Administrator</span> -p <span style="color:#000080;">password</span></p></blockquote>
<p>If all goes well, the ILO should drop for a small period of time before coming back up and displaying no SD card issues.</p>
<h4>Other XML Scripts &#8211;</h4>
<p>The great thing about this process, aside from fixing the SDCard error; is it gets you used to the notion of running XML scripts to gather more information about your ILO&#8217;s health/logs/settings. The same process can be used on other XML scripts.</p>
<p>HP provide a big collection of useful XML scripts here &#8211;</p>
<p><a href="https://support.hpe.com/hpsc/swd/public/detail?sp4ts.oid=5264039&#038;swItemId=MTX_f045db3f567040f291bf645684&#038;swEnvOid=4210" rel="nofollow">https://support.hpe.com/hpsc/swd/public/detail?sp4ts.oid=5264039&#038;swItemId=MTX_f045db3f567040f291bf645684&#038;swEnvOid=4210</a></p>
<p>Hope this has been helpful!</p>
<p>&nbsp;</p>
<hr />
<p>Thanks for reading &#8211; feel free to follow and stay updated <img src="https://s0.wp.com/wp-content/mu-plugins/wpcom-smileys/twemoji/2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <a class="genericon genericon-facebook" href="https://www.facebook.com/sysadminguides/" target="_blank" rel="noopener noreferrer"><span class="screen-reader-text">View sysadminguides’s profile on Facebook </span></a><a class="genericon genericon-twitter" href="https://twitter.com/GuidesSysadmin/" target="_blank" rel="noopener noreferrer"><span class="screen-reader-text">View GuidesSysadmin’s profile on Twitter </span></a><a class="genericon genericon-googleplus" href="https://plus.google.com/u/0/115372466162675927272/" target="_blank" rel="noopener noreferrer"><span class="screen-reader-text">View 115372466162675927272’s profile on Google+</span></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sysadminguides.wordpress.com/2018/08/26/fix-ilo-hp-error-embedded-flash-sd-card-embedded-media-manager-failed-initialization/feed/</wfw:commentRss>
			<slash:comments>16</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3598</post-id>
		<media:content url="https://1.gravatar.com/avatar/4c21b4a8fb07c2a3833a81482c5b545ec72822b1d80e2f61325bf24ea61bc544?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sysadminguides</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/08/rdcman_2018-08-26_15-43-44.png" medium="image">
			<media:title type="html">HP Lights-Out Configuration Utility</media:title>
		</media:content>
	</item>
		<item>
		<title>How to / Fix &#8211; Delete recurring meetings using PowerShell &#8211; Exchange Mailbox</title>
		<link>https://sysadminguides.wordpress.com/2018/06/03/how-to-fix-delete-recurring-meetings-using-powershell-exchange-mailbox/</link>
					<comments>https://sysadminguides.wordpress.com/2018/06/03/how-to-fix-delete-recurring-meetings-using-powershell-exchange-mailbox/#comments</comments>
		
		<dc:creator><![CDATA[Cameron Yates]]></dc:creator>
		<pubDate>Sun, 03 Jun 2018 22:52:29 +0000</pubDate>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[cannot delete]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[Fix]]></category>
		<category><![CDATA[mailbox]]></category>
		<category><![CDATA[meetings]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[recurring]]></category>
		<category><![CDATA[recurring meetings]]></category>
		<category><![CDATA[Search-mailbox]]></category>
		<category><![CDATA[time]]></category>
		<guid isPermaLink="false">http://sysadminguides.org/?p=3521</guid>

					<description><![CDATA[In this post we are going to look at the deletion of reoccurring meetings in Exchange, using PowerShell. In addition to addressing a common issue. &#160; Firstly Check you are using/typing the PowerShell command correctly In the instance where a person is looking to remove a recurring meeting from an Exchange mailbox with the use &#8230; <a href="https://sysadminguides.wordpress.com/2018/06/03/how-to-fix-delete-recurring-meetings-using-powershell-exchange-mailbox/" class="more-link">Continue reading <span class="screen-reader-text">How to / Fix &#8211; Delete recurring meetings using PowerShell &#8211; Exchange&#160;Mailbox</span></a>]]></description>
										<content:encoded><![CDATA[<h3>In this post we are going to look at the deletion of reoccurring meetings in Exchange, using PowerShell. In addition to addressing a common issue.</h3>
<p>&nbsp;</p>
<h4>Firstly Check you are using/typing the PowerShell command correctly</h4>
<p>In the instance where a person is looking to remove a recurring meeting from an Exchange mailbox with the use of PowerShell. He/She can firstly utilize the <strong>Search-Mailbox</strong> command, whilst also using the <strong>-searchquery</strong> switch, to firstly identify the particular calendar event and then proceed to either move, copy or delete said meeting.</p>
<p>To specify the date range, you can separate your dates by &#8220;<span style="color:#800080;">..</span>&#8221;</p>
<p>Additionally you can also specify the time.</p>
<p>The following ISO 8601-compatible datetime formats are supported in queries:</p>
<ul>
<li>YYYY-MM-DD</li>
<li class="">YYYY-MM-DDThh:mm:ss</li>
<li>YYYY-MM-DDThh:mm:ssZ</li>
<li>YYYY-MM-DDThh:mm:ssfrZ</li>
</ul>
<p>An example command would look something like this &#8211;</p>
<blockquote><p>Search-Mailbox -identity<em> &#8220;</em><span style="color:#800080;">finance1<span style="color:#808080;">&#8220;</span></span><em> &#8211;</em>SearchQuery kind:meetings AND subject:<span style="color:#800080;">Test</span> (Recurring) AND Received:&#8221;<span style="color:#800080;">2017/10/08 10:00:00..2017/12/08 13:00:00</span>&#8220;<em><br />
</em></p></blockquote>
<h4>In the event where the command is seemingly going through without error, but the meeting persists &#8211;</h4>
<p>First try making the received date range as long or longer than the recurring meeting.</p>
<p>For example, if the meeting is from 01/01/2018 to 01/02/2018, we need to set the shortest data range as 01/01/2018 to 01/02/2018. Or alternatively set the date range to a month later 01/01/2018 to 01/03/2018</p>
<blockquote><p>Search-Mailbox<em> </em>-identity<em> &#8220;</em><span style="color:#800080;">Recruitment<span style="color:#808080;">&#8220;</span></span> <em>&#8211;</em>SearchQuery kind:meetings AND subject:<span style="color:#800080;">DailyMeeting</span> (Recurring) AND Received:&#8221;<span style="color:#800080;">2018/01/01 10:00:00..2018/03/01 13:00:00</span>&#8220;</p></blockquote>
<p class="">Additionally if all else fails, you can always go with the less refined option of removing the date/time section of the command.</p>
<p>Further reading &#8211;<br />
<a href="http://sysadminguides.org/2017/05/08/useful-exchange-powershell-commands-the-ultimate-list/" target="_blank" rel="noopener">Useful Exchange PowerShell Commands &#8211; The Ultimate List.</a><br />
<a href="http://sysadminguides.org/2017/06/14/delete-calendar-meetings-in-a-mailbox-using-powershell-exchange/" target="_blank" rel="noopener">Delete calendar meetings in a Mailbox using PowerShell – Exchange</a></p>
<hr />
<p>Thanks for reading &#8211; feel free to follow and stay updated <img src="https://s0.wp.com/wp-content/mu-plugins/wpcom-smileys/twemoji/2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" />  <a class="genericon genericon-facebook" href="https://www.facebook.com/sysadminguides/" target="_blank" rel="noopener noreferrer"><span class="screen-reader-text">View sysadminguides’s profile on Facebook </span></a><a class="genericon genericon-twitter" href="https://twitter.com/GuidesSysadmin/" target="_blank" rel="noopener noreferrer"><span class="screen-reader-text">View GuidesSysadmin’s profile on Twitter </span></a><a class="genericon genericon-googleplus" href="https://plus.google.com/u/0/115372466162675927272/" target="_blank" rel="noopener noreferrer"><span class="screen-reader-text">View 115372466162675927272’s profile on Google+</span></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://sysadminguides.wordpress.com/2018/06/03/how-to-fix-delete-recurring-meetings-using-powershell-exchange-mailbox/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3521</post-id>
		<media:content url="https://1.gravatar.com/avatar/4c21b4a8fb07c2a3833a81482c5b545ec72822b1d80e2f61325bf24ea61bc544?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sysadminguides</media:title>
		</media:content>
	</item>
		<item>
		<title>Setup Citrix NetScaler Client Authentication using a Windows CA</title>
		<link>https://sysadminguides.wordpress.com/2018/05/21/setup-citrix-netscaler-client-authentication-using-a-windows-ca/</link>
					<comments>https://sysadminguides.wordpress.com/2018/05/21/setup-citrix-netscaler-client-authentication-using-a-windows-ca/#comments</comments>
		
		<dc:creator><![CDATA[Cameron Yates]]></dc:creator>
		<pubDate>Mon, 21 May 2018 13:10:48 +0000</pubDate>
				<category><![CDATA[Citrix]]></category>
		<category><![CDATA[Certificate]]></category>
		<category><![CDATA[Citrix NetScaler]]></category>
		<category><![CDATA[Citrix SSL]]></category>
		<category><![CDATA[Client Authentication]]></category>
		<category><![CDATA[Client Certificate]]></category>
		<category><![CDATA[CSR]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[Gateway]]></category>
		<category><![CDATA[Gateway Server]]></category>
		<category><![CDATA[PKCS12]]></category>
		<category><![CDATA[RSA key]]></category>
		<category><![CDATA[Socket Error]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[SSL handshake]]></category>
		<category><![CDATA[Storefront]]></category>
		<category><![CDATA[Virtual Server]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows CA]]></category>
		<category><![CDATA[Windows Certificates]]></category>
		<category><![CDATA[WinSCP]]></category>
		<guid isPermaLink="false">http://sysadminguides.org/?p=3429</guid>

					<description><![CDATA[In this post we are going to be looking at setting up Client Authentication on your  Citrix NetScaler using self assigned Windows certificates and a Windows CA. Client authentication involves a client certificate which is a type of digital certificate that can be used by client systems to make authenticated requests to a remote server. &#8230; <a href="https://sysadminguides.wordpress.com/2018/05/21/setup-citrix-netscaler-client-authentication-using-a-windows-ca/" class="more-link">Continue reading <span class="screen-reader-text">Setup Citrix NetScaler Client Authentication using a Windows&#160;CA</span></a>]]></description>
										<content:encoded><![CDATA[<h3>In this post we are going to be looking at setting up Client Authentication on your  Citrix NetScaler using self assigned Windows certificates and a Windows CA.</h3>
<p>Client authentication involves<span class="Y0NH2b CLPzrc g9yevd"> a client certificate which is a type of digital certificate that can be used by client systems to make authenticated requests to a remote server. Client certificates play a key role in many mutual authentication designs, providing strong assurances of a requester&#8217;s identity.</span></p>
<p>This setup will involve configuring your NetScaler and Storefront for client authentication and the creation of the client certificate. This client certificate will then need to be installed on all requesting client computers, otherwise access to the NetScaler login page will be forbidden.</p>
<p>Additionally we will also look at an SSL error that is closely tied to this setup. The error involves users getting a certificate authentication prompt when trying to log into their apps or desktop. [ <span style="color:#800000;">Error</span>: &#8220;Unable to Launch Application. Cannot connect to the Citrix XenApp Server. Socket operation on non-socket.&#8221; ]</p>
<p>Video showcasing the result of this setup &#8211;<br />
Firstly without the client certificate and then after installing it.</p>
<div class="jetpack-video-wrapper"><iframe class="youtube-player" width="560" height="315" src="https://www.youtube.com/embed/FCqpqA_7zt0?version=3&#038;rel=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=en&#038;autohide=2&#038;wmode=transparent" allowfullscreen="true" style="border:0;" sandbox="allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox"></iframe></div>
<p><em>(Due to OBS recording my browser rather than my display, the successful remote connection through storefront won&#8217;t be displayed in the video, in addition to me selecting the certificate from my file directory during the import process into Firefox)</em></p>
<h4>First step &#8211; Create the Client Certificate</h4>
<p>In your Citrix netscaler web gui, navigate to the <strong>Client Certificate Wizard</strong>. Do this by going to the <strong>Configuration</strong> tab, then selecting <strong>Traffic Management</strong> in the left side bar. Followed by <strong>SSL</strong> and then <strong>Client Certificate Wizard</strong>.</p>
<p>Under the Create Key drop down, enter the following details. You can name the keyfile whatever you fancy and remember to give the key a PEM passphrase for security.</p>
<p><img loading="lazy" data-attachment-id="3465" data-permalink="https://sysadminguides.wordpress.com/2018/05/21/setup-citrix-netscaler-client-authentication-using-a-windows-ca/firefox_2018-05-09_17-00-16/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-00-16.png" data-orig-size="313,494" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Create Client Key" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-00-16.png?w=190" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-00-16.png?w=313" class="alignnone size-full wp-image-3465" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-00-16.png?w=676" alt="Create Client Key"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-00-16.png 313w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-00-16.png?w=95&amp;h=150 95w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-00-16.png?w=190&amp;h=300 190w" sizes="(max-width: 313px) 100vw, 313px" /></p>
<p><strong>After that follow on with the setup and create your CSR</strong> &#8211;</p>
<p>The <strong>common name</strong> is my public IP considering I am not using DNS records for this setup. If you were using a domain name as your landing address you would put that in there. (i.e microhard.local).</p>
<p>Use the same PEM passphrase you setup for the key you created previously.</p>
<p><img loading="lazy" data-attachment-id="3467" data-permalink="https://sysadminguides.wordpress.com/2018/05/21/setup-citrix-netscaler-client-authentication-using-a-windows-ca/capture-2/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/capture.png" data-orig-size="392,787" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Create CSR Netscaler" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/capture.png?w=149" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/capture.png?w=392" class="alignnone size-full wp-image-3467" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/capture.png?w=676" alt="Create CSR Netscaler"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/capture.png 392w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/capture.png?w=75&amp;h=150 75w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/capture.png?w=149&amp;h=300 149w" sizes="(max-width: 392px) 100vw, 392px" /></p>
<p>Now the setup page should look something like this after you have created both the Key and the CSR file.</p>
<p><img loading="lazy" data-attachment-id="3466" data-permalink="https://sysadminguides.wordpress.com/2018/05/21/setup-citrix-netscaler-client-authentication-using-a-windows-ca/firefox_2018-05-09_17-02-00/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-02-00.png" data-orig-size="1096,237" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="SSL C" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-02-00.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-02-00.png?w=676" class="alignnone size-full wp-image-3466" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-02-00.png?w=676" alt="SSL C"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-02-00.png 1096w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-02-00.png?w=150&amp;h=32 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-02-00.png?w=300&amp;h=65 300w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-02-00.png?w=768&amp;h=166 768w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-02-00.png?w=1024&amp;h=221 1024w" sizes="(max-width: 1096px) 100vw, 1096px" /></p>
<p>The next step in the SSL Certificate Wizard is to create the certificate. <span style="color:#ff0000;"><strong>Do not</strong></span> do this. Instead, copy the CSR file from the <strong>/flash/nsconfig/ssl/ </strong>directory on the NetScaler appliance to a Windows computer/server for the next step.</p>
<p>As shown below you can use the utility WinSCP to transfer the certificate of the NetScaler file directory.</p>
<p><img loading="lazy" data-attachment-id="3349" data-permalink="https://sysadminguides.wordpress.com/2018/03/25/fix-citrix-netscaler-rebooting-license-problems-system-time-resets-reverts/winscp-login-session/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/winscp-login-session.png" data-orig-size="628,424" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="WinSCP login session" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/winscp-login-session.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/winscp-login-session.png?w=628" class="alignnone size-full wp-image-3349" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/winscp-login-session.png?w=676" alt="WinSCP login session"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/winscp-login-session.png 628w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/winscp-login-session.png?w=150&amp;h=101 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/winscp-login-session.png?w=300&amp;h=203 300w" sizes="(max-width: 628px) 100vw, 628px" /></p>
<p><img loading="lazy" data-attachment-id="3470" data-permalink="https://sysadminguides.wordpress.com/2018/05/21/setup-citrix-netscaler-client-authentication-using-a-windows-ca/winscp_2018-05-09_17-02-55/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/winscp_2018-05-09_17-02-55.png" data-orig-size="372,143" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="WinCSP" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/winscp_2018-05-09_17-02-55.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/winscp_2018-05-09_17-02-55.png?w=372" class="alignnone size-full wp-image-3470" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/winscp_2018-05-09_17-02-55.png?w=676" alt="WinCSP"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/winscp_2018-05-09_17-02-55.png 372w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/winscp_2018-05-09_17-02-55.png?w=150&amp;h=58 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/winscp_2018-05-09_17-02-55.png?w=300&amp;h=115 300w" sizes="(max-width: 372px) 100vw, 372px" /></p>
<p><strong>[Optional] &#8211; </strong>To request a certificate from your Domain CA you are going to need to use a domain account to access the certserv web gui. This part of the process is shown below as it&#8217;s required to create the certificate. The way I prefer to do it is to create a new domain account with heavy restrictions, no domain admin for instance. This account will then be used in the process of creating the certificate. (Don&#8217;t worry, anyone can use the certificate regardless of whether they are that new account or not. They just need the certificate installed on their workstation.</p>
<p>In this example I am going to create an account called CitrixAuth</p>
<p><img loading="lazy" data-attachment-id="3469" data-permalink="https://sysadminguides.wordpress.com/2018/05/21/setup-citrix-netscaler-client-authentication-using-a-windows-ca/firefox_2018-05-09_17-07-11/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-07-11.png" data-orig-size="602,322" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Basic AD account" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-07-11.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-07-11.png?w=602" class="alignnone size-full wp-image-3469" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-07-11.png?w=676" alt="Basic AD account"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-07-11.png 602w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-07-11.png?w=150&amp;h=80 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-07-11.png?w=300&amp;h=160 300w" sizes="(max-width: 602px) 100vw, 602px" /></p>
<h4><strong>Creating the Certificate using your Windows Domain CA</strong></h4>
<p>Now that you have the CSR off your NetScaler and on your workstation.</p>
<p>Navigate to Microsoft Active Directory Certificate Services.</p>
<p>Login using an account preferably with minimal access for security reasons. I&#8217;m using the basic account I created above which doesn&#8217;t have any admin rights.</p>
<p><img loading="lazy" data-attachment-id="3476" data-permalink="https://sysadminguides.wordpress.com/2018/05/21/setup-citrix-netscaler-client-authentication-using-a-windows-ca/firefox_2018-05-09_17-09-01/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-09-01.png" data-orig-size="761,326" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="certsrv" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-09-01.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-09-01.png?w=676" class="alignnone  wp-image-3476" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-09-01.png?w=584&#038;h=250" alt="certsrv" width="584" height="250" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-09-01.png?w=584&amp;h=250 584w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-09-01.png?w=150&amp;h=64 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-09-01.png?w=300&amp;h=129 300w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-09-01.png 761w" sizes="(max-width: 584px) 100vw, 584px" /></p>
<p>Click <strong>Request a certificate</strong> then <strong>Advanced Certificate request</strong>.</p>
<p><img loading="lazy" data-attachment-id="3397" data-permalink="https://sysadminguides.wordpress.com/2018/05/01/setup-citrix-netscaler-ssl-without-dns-records-using-a-public-ip-and-a-windows-ca/firefox_2018-04-29_14-09-01/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-01.png" data-orig-size="627,477" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Active Directory Certificate Services" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-01.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-01.png?w=627" class="alignnone  wp-image-3397" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-01.png?w=584&#038;h=444" alt="Active Directory Certificate Services" width="584" height="444" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-01.png?w=584&amp;h=444 584w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-01.png?w=150&amp;h=114 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-01.png?w=300&amp;h=228 300w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-01.png 627w" sizes="(max-width: 584px) 100vw, 584px" /></p>
<p><img loading="lazy" data-attachment-id="3398" data-permalink="https://sysadminguides.wordpress.com/2018/05/01/setup-citrix-netscaler-ssl-without-dns-records-using-a-public-ip-and-a-windows-ca/firefox_2018-04-29_14-09-27/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-27.png" data-orig-size="329,131" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="firefox_2018-04-29_14-09-27" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-27.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-27.png?w=329" class="alignnone  wp-image-3398" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-27.png?w=329&#038;h=131" alt="firefox_2018-04-29_14-09-27" width="329" height="131" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-27.png 329w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-27.png?w=150&amp;h=60 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-27.png?w=300&amp;h=119 300w" sizes="(max-width: 329px) 100vw, 329px" /></p>
<p>Open the CSR saved to your computer using <strong>Notepad</strong>. Copy and paste the contents into the text box under <strong>Saved Request</strong>. In Certificate Template, select <strong>User</strong> and click <strong>Submit</strong>.</p>
<p><img loading="lazy" data-attachment-id="3477" data-permalink="https://sysadminguides.wordpress.com/2018/05/21/setup-citrix-netscaler-client-authentication-using-a-windows-ca/capture1/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/capture1.png" data-orig-size="491,466" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="CSR Domain Certificate" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/capture1.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/capture1.png?w=491" class="alignnone  wp-image-3477" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/capture1.png?w=460&#038;h=437" alt="CSR Domain Certificate" width="460" height="437" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/capture1.png?w=460&amp;h=437 460w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/capture1.png?w=150&amp;h=142 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/capture1.png?w=300&amp;h=285 300w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/capture1.png 491w" sizes="(max-width: 460px) 100vw, 460px" /></p>
<p>Click the Base 64 encoded radio button then press <strong>Download certificate</strong>.</p>
<p><img loading="lazy" data-attachment-id="3402" data-permalink="https://sysadminguides.wordpress.com/2018/05/01/setup-citrix-netscaler-ssl-without-dns-records-using-a-public-ip-and-a-windows-ca/firefox_2018-04-29_14-11-54/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-11-541.png" data-orig-size="468,213" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="BASE 64 encoded" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-11-541.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-11-541.png?w=468" class="alignnone  wp-image-3402" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-11-541.png?w=336&#038;h=153" alt="BASE 64 encoded" width="336" height="153" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-11-541.png?w=336&amp;h=153 336w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-11-541.png?w=150&amp;h=68 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-11-541.png?w=300&amp;h=137 300w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-11-541.png 468w" sizes="(max-width: 336px) 100vw, 336px" /></p>
<h4>Install the Microsoft-generated certificate</h4>
<p>Return to the NetScaler SSL Server Certificate Wizard, skip step 3, and go to step 4 to install the certificate. Fill in the fields making sure to upload your saved Microsoft certificate on your computer under <strong>Certificate File Name</strong> and your RSA key you create earlier under the <strong>Key File Name</strong>.</p>
<p>When the certificate uploads, a prompt appears for the name and password of the Key File that you created earlier. Once everything is filled in click <strong>Create</strong> and then click <strong>Done</strong>.</p>
<p><img loading="lazy" data-attachment-id="3480" data-permalink="https://sysadminguides.wordpress.com/2018/05/21/setup-citrix-netscaler-client-authentication-using-a-windows-ca/firefox_2018-05-09_17-11-45/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-11-45.png" data-orig-size="320,388" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="NetScaler Install Certificate" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-11-45.png?w=247" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-11-45.png?w=320" class="alignnone size-full wp-image-3480" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-11-45.png?w=676" alt="NetScaler Install Certificate"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-11-45.png 320w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-11-45.png?w=124&amp;h=150 124w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-11-45.png?w=247&amp;h=300 247w" sizes="(max-width: 320px) 100vw, 320px" /></p>
<p>You should now see your client certificate under Traffic Management &gt; SSL &gt; Client Certificates.</p>
<p><img loading="lazy" data-attachment-id="3482" data-permalink="https://sysadminguides.wordpress.com/2018/05/21/setup-citrix-netscaler-client-authentication-using-a-windows-ca/firefox_2018-05-09_17-12-22/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-12-22.png" data-orig-size="636,157" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="NetScaler Client Certificartes" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-12-22.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-12-22.png?w=636" class="alignnone size-full wp-image-3482" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-12-22.png?w=676" alt="NetScaler Client Certificartes"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-12-22.png 636w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-12-22.png?w=150&amp;h=37 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-12-22.png?w=300&amp;h=74 300w" sizes="(max-width: 636px) 100vw, 636px" /></p>
<h4>Enabling Client-Authentication</h4>
<p>Next step is to enabled client authentication on your NectScalers Virtual Gateway server</p>
<p>You do this by navigating to the <strong>Configuration Tab</strong>, then proceed to the <strong>NetScaler Gateway</strong> followed by <strong>Virtual Servers</strong>.</p>
<p>Click on your setup Virtual Server and go into <strong>SSL Parameters </strong>drop down. Proceed to tick the <strong>Client Authentication</strong> radio button and then select <strong>Mandatory</strong> on the drop down. Then press <strong>OK</strong>. Followed by <strong>Done</strong> at the bottom to saved changes.</p>
<p><img loading="lazy" data-attachment-id="3481" data-permalink="https://sysadminguides.wordpress.com/2018/05/21/setup-citrix-netscaler-client-authentication-using-a-windows-ca/zfirefox_2018-05-09_17-55-46/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/zfirefox_2018-05-09_17-55-46.png" data-orig-size="763,407" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="SSL Paramters" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/zfirefox_2018-05-09_17-55-46.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/zfirefox_2018-05-09_17-55-46.png?w=676" class="alignnone  wp-image-3481" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/zfirefox_2018-05-09_17-55-46.png?w=678&#038;h=362" alt="SSL Paramters" width="678" height="362" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/zfirefox_2018-05-09_17-55-46.png?w=678&amp;h=362 678w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/zfirefox_2018-05-09_17-55-46.png?w=150&amp;h=80 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/zfirefox_2018-05-09_17-55-46.png?w=300&amp;h=160 300w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/zfirefox_2018-05-09_17-55-46.png 763w" sizes="(max-width: 678px) 100vw, 678px" /></p>
<h4>The Problem &#8211; Client Certificate Authentication Prompt Appears while Launching Application through NetScaler Gateway Integrated with StoreFront.</h4>
<p>At this point you would assume everything has now been configured correctly on the NetScaler end as per Critix recommendations.</p>
<p>However, as of writing this post most people will run into a problem later on whereas a client (with the correct certificate installed) will be able to connect to the NetScaler but won&#8217;t be able to connect to their remote session through StoreFront. What happens is upon opening a Storefront desktop or application, they will receive a certificate prompt and ultimately an SSL error.</p>
<p><span style="color:#800000;">The Error</span>: &#8216; The connection to &#8216;Storefront Desktop&#8217; failed with status (Socket operation on non-socket (Socket Error 10038)) &#8216;</p>
<p>This can be shown below.</p>
<p><img loading="lazy" data-attachment-id="3484" data-permalink="https://sysadminguides.wordpress.com/2018/05/21/setup-citrix-netscaler-client-authentication-using-a-windows-ca/cdviewer_2018-05-09_17-41-50/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/cdviewer_2018-05-09_17-41-50.png" data-orig-size="1090,670" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Certificate prompt" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/cdviewer_2018-05-09_17-41-50.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/cdviewer_2018-05-09_17-41-50.png?w=676" class="alignnone  wp-image-3484" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/cdviewer_2018-05-09_17-41-50.png?w=548&#038;h=337" alt="Certificate prompt" width="548" height="337" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/cdviewer_2018-05-09_17-41-50.png?w=548&amp;h=337 548w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/cdviewer_2018-05-09_17-41-50.png?w=150&amp;h=92 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/cdviewer_2018-05-09_17-41-50.png?w=300&amp;h=184 300w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/cdviewer_2018-05-09_17-41-50.png?w=768&amp;h=472 768w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/cdviewer_2018-05-09_17-41-50.png?w=1024&amp;h=629 1024w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/cdviewer_2018-05-09_17-41-50.png 1090w" sizes="(max-width: 548px) 100vw, 548px" /></p>
<p><img loading="lazy" data-attachment-id="3485" data-permalink="https://sysadminguides.wordpress.com/2018/05/21/setup-citrix-netscaler-client-authentication-using-a-windows-ca/cdviewer_2018-05-09_17-27-00/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/cdviewer_2018-05-09_17-27-00.png" data-orig-size="394,147" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Citrix Socket Error" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/cdviewer_2018-05-09_17-27-00.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/cdviewer_2018-05-09_17-27-00.png?w=394" class="alignnone  wp-image-3485" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/cdviewer_2018-05-09_17-27-00.png?w=362&#038;h=135" alt="Citrix Socket Error" width="362" height="135" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/cdviewer_2018-05-09_17-27-00.png?w=362&amp;h=135 362w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/cdviewer_2018-05-09_17-27-00.png?w=150&amp;h=56 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/cdviewer_2018-05-09_17-27-00.png?w=300&amp;h=112 300w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/cdviewer_2018-05-09_17-27-00.png 394w" sizes="(max-width: 362px) 100vw, 362px" /></p>
<h4>The Solution &#8211; Create another Gateway Virtual Server on a different port to the original where client authentication is unchecked (also works on a differnet IP).</h4>
<p>The problem appears due to the client attempting to do an additional SSL handshake with the same NetScaler virtual server (because of the SSLProxy HOST defined in the ICA file) upon the user attempting to open a application or desktop.</p>
<p>The goal is to get around this problem is to make it so the SSL Proxy Host defined in the ICA file, points to your dummy virtual server where client authentication is unchecked, thus no additional SSL handshake is required.</p>
<p><strong>Creating the Dummy Gateway &#8211;</strong></p>
<p>As shown in the below screenshot, I have created another NetScaler Gateway, by going through the <strong>Create New Gateway</strong> wizard found under the <strong>XenApp and XenDesktop</strong> tab on the left on your NetScaler web GUI .</p>
<p>It has the same server certificate file, points to the same Storefront and authenticates using the same domain controller. The only difference is this dummy virtual server is on port <strong>4300</strong> as apposed to <strong>443</strong> which is the port set on my main virtual server.</p>
<p>(I used a different IP for my dummy server in this example. Citrix specifies using the same for both your Gateway virtual servers)</p>
<p><img loading="lazy" data-attachment-id="3487" data-permalink="https://sysadminguides.wordpress.com/2018/05/21/setup-citrix-netscaler-client-authentication-using-a-windows-ca/firefox_2018-05-09_16-30-17/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-30-17.png" data-orig-size="907,502" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="NetScaler Gateway Settings" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-30-17.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-30-17.png?w=676" class="alignnone size-full wp-image-3487" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-30-17.png?w=676" alt="NetScaler Gateway Settings"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-30-17.png 907w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-30-17.png?w=150&amp;h=83 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-30-17.png?w=300&amp;h=166 300w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-30-17.png?w=768&amp;h=425 768w" sizes="(max-width: 907px) 100vw, 907px" /></p>
<p>After completing the Gateway setup you should now see your dummy NetScaler Gateway Virtual Server as well as your original ones.</p>
<p><img loading="lazy" data-attachment-id="3489" data-permalink="https://sysadminguides.wordpress.com/2018/05/21/setup-citrix-netscaler-client-authentication-using-a-windows-ca/firefox_2018-05-09_16-31-31/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-31-31.png" data-orig-size="536,221" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="NetScaler Gateway Virtual server" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-31-31.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-31-31.png?w=536" class="alignnone size-full wp-image-3489" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-31-31.png?w=676" alt="NetScaler Gateway Virtual server"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-31-31.png 536w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-31-31.png?w=150&amp;h=62 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-31-31.png?w=300&amp;h=124 300w" sizes="(max-width: 536px) 100vw, 536px" /></p>
<p>Nothing to specific for this solution needs to be setup on your dummy Gateway server settings wise. It should mimic the settings of your original Gateway Server, just without Client Authentication being checked (it will be unchecked by default). Ensure that everything vital is working such the connection to your Secure Ticket Authority Server.</p>
<p><img loading="lazy" data-attachment-id="3488" data-permalink="https://sysadminguides.wordpress.com/2018/05/21/setup-citrix-netscaler-client-authentication-using-a-windows-ca/firefox_2018-05-09_16-30-58/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-30-58.png" data-orig-size="813,168" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="firefox_2018-05-09_16-30-58" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-30-58.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-30-58.png?w=676" class="alignnone size-full wp-image-3488" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-30-58.png?w=676" alt="firefox_2018-05-09_16-30-58"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-30-58.png 813w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-30-58.png?w=150&amp;h=31 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-30-58.png?w=300&amp;h=62 300w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-30-58.png?w=768&amp;h=159 768w" sizes="(max-width: 813px) 100vw, 813px" /></p>
<h3></h3>
<h4>Changing your Storefront Settings to reflect your NetScaler changes &#8211;</h4>
<p>Now your dummy Gateway Server is up and running. You need to change your Storefront NetScaler Gateway settings.</p>
<p>On StoreFront go to Manage NetScaler Gateway</p>
<p><img loading="lazy" data-attachment-id="3491" data-permalink="https://sysadminguides.wordpress.com/2018/05/21/setup-citrix-netscaler-client-authentication-using-a-windows-ca/vpxclient_2018-05-09_16-26-51/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-09_16-26-51.png" data-orig-size="193,262" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Storefront Manage NetScaler Gateway" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-09_16-26-51.png?w=193" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-09_16-26-51.png?w=193" class="alignnone  wp-image-3491" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-09_16-26-51.png?w=166&#038;h=225" alt="Storefront Manage NetScaler Gateway" width="166" height="225" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-09_16-26-51.png?w=166&amp;h=225 166w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-09_16-26-51.png?w=110&amp;h=150 110w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-09_16-26-51.png 193w" sizes="(max-width: 166px) 100vw, 166px" /></p>
<p>Now make sure the <strong>NetScaler Gateway URL</strong> under <strong>General Settings</strong> contains both the FQDN (or IP in my case) and the port of your dummy Gateway Server</p>
<p><img loading="lazy" data-attachment-id="3492" data-permalink="https://sysadminguides.wordpress.com/2018/05/21/setup-citrix-netscaler-client-authentication-using-a-windows-ca/vpxclient_2018-05-09_16-27-06/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-09_16-27-06.png" data-orig-size="741,242" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Storefront General Settings" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-09_16-27-06.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-09_16-27-06.png?w=676" class="alignnone  wp-image-3492" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-09_16-27-06.png?w=606&#038;h=198" alt="Storefront General Settings" width="606" height="198" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-09_16-27-06.png?w=606&amp;h=198 606w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-09_16-27-06.png?w=150&amp;h=49 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-09_16-27-06.png?w=300&amp;h=98 300w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-09_16-27-06.png 741w" sizes="(max-width: 606px) 100vw, 606px" /></p>
<p>Additionally under<strong> Authentication Settings</strong>, edit the <strong>Callback URL</strong> to also contain the port number of your dummy virtual server.</p>
<p><img loading="lazy" data-attachment-id="3493" data-permalink="https://sysadminguides.wordpress.com/2018/05/21/setup-citrix-netscaler-client-authentication-using-a-windows-ca/vpxclient_2018-05-09_16-27-18/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-09_16-27-18.png" data-orig-size="753,255" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Netscaler Gateway Storefront" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-09_16-27-18.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-09_16-27-18.png?w=676" class="alignnone size-full wp-image-3493" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-09_16-27-18.png?w=676" alt="Netscaler Gateway Storefront"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-09_16-27-18.png 753w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-09_16-27-18.png?w=150&amp;h=51 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-09_16-27-18.png?w=300&amp;h=102 300w" sizes="(max-width: 753px) 100vw, 753px" /></p>
<h4>Exporting the Client Certificate of the NetScaler device in PKCS12 format</h4>
<p>Now your Storefront has the correct settings and your NetScaler is setup correctly. It&#8217;s time to get your Client Certificate in a format that web browsers will accept. We can do this by exporting the Client certificate of your NetScaler in PKCS12 format.</p>
<p>To do this all you need to do is go back into your NetScaler web gui. Click on the <strong>Configuration</strong> tab, then <strong>Traffic Management </strong>on left side. Follow this up by clicking <strong>SSL</strong>, then <strong>Export PKCS#12</strong> under <strong>Tools</strong>.</p>
<p><img loading="lazy" data-attachment-id="3494" data-permalink="https://sysadminguides.wordpress.com/2018/05/21/setup-citrix-netscaler-client-authentication-using-a-windows-ca/firefox_2018-05-09_16-13-04/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-13-04.png" data-orig-size="259,154" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Export PKCS" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-13-04.png?w=259" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-13-04.png?w=259" class="alignnone size-full wp-image-3494" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-13-04.png?w=676" alt="Export PKCS"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-13-04.png 259w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-13-04.png?w=150&amp;h=89 150w" sizes="(max-width: 259px) 100vw, 259px" /></p>
<p>Fill in the correct details by choosing a file name and then pointing the export wizard to your Client Certificate and the key used to create it.</p>
<p>Create an export password so individuals can&#8217;t export this certificate off client workstations and then enter the PEM passphrase you used earlier during the process of creating the Client Certificate.</p>
<p><img loading="lazy" data-attachment-id="3495" data-permalink="https://sysadminguides.wordpress.com/2018/05/21/setup-citrix-netscaler-client-authentication-using-a-windows-ca/firefox_2018-05-09_17-14-46/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-14-46.png" data-orig-size="278,355" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="firefox_2018-05-09_17-14-46" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-14-46.png?w=235" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-14-46.png?w=278" class="alignnone size-full wp-image-3495" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-14-46.png?w=676" alt="firefox_2018-05-09_17-14-46"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-14-46.png 278w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-14-46.png?w=117&amp;h=150 117w" sizes="(max-width: 278px) 100vw, 278px" /></p>
<p>After clicking <strong>OK</strong>, use <strong>WinSCP</strong> again to go into your NetScaler file directory. Find your exported PKCS12 file and then copy it onto your workstation.</p>
<p><img loading="lazy" data-attachment-id="3496" data-permalink="https://sysadminguides.wordpress.com/2018/05/21/setup-citrix-netscaler-client-authentication-using-a-windows-ca/firefox_2018-05-09_17-15-13/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-15-13.png" data-orig-size="155,164" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="PKCS file" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-15-13.png?w=155" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-15-13.png?w=155" class="alignnone size-full wp-image-3496" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-15-13.png?w=676" alt="PKCS file"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-15-13.png 155w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-15-13.png?w=142&amp;h=150 142w" sizes="(max-width: 155px) 100vw, 155px" /></p>
<p><strong>Thats it!</strong> &#8211; If everything is working on the NetScaler and Storefront side of things. All you need to do is install that certificate on a workstation requiring access. Then upon going to your NetScaler Gateway page, they will be prompted to use your installed certificate for the SSL handshake.</p>
<p><img loading="lazy" data-attachment-id="3497" data-permalink="https://sysadminguides.wordpress.com/2018/05/21/setup-citrix-netscaler-client-authentication-using-a-windows-ca/firefox_2018-05-09_17-17-27/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-17-27.png" data-orig-size="429,436" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="NetScaler certificate prompt" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-17-27.png?w=295" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-17-27.png?w=429" class="alignnone size-full wp-image-3497" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-17-27.png?w=676" alt="NetScaler certificate prompt"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-17-27.png 429w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-17-27.png?w=148&amp;h=150 148w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-17-27.png?w=295&amp;h=300 295w" sizes="(max-width: 429px) 100vw, 429px" /></p>
<p>Any connecting workstation <strong><span style="color:#800000;">without</span></strong> your client certificate will receive a similar SSL connection error to the one below.</p>
<p><img loading="lazy" data-attachment-id="3498" data-permalink="https://sysadminguides.wordpress.com/2018/05/21/setup-citrix-netscaler-client-authentication-using-a-windows-ca/chrome_2018-05-09_17-34-23/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/chrome_2018-05-09_17-34-23.png" data-orig-size="1049,571" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="connection error" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/chrome_2018-05-09_17-34-23.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/chrome_2018-05-09_17-34-23.png?w=676" class="alignnone  wp-image-3498" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/chrome_2018-05-09_17-34-23.png?w=643&#038;h=350" alt="connection error" width="643" height="350" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/chrome_2018-05-09_17-34-23.png?w=643&amp;h=350 643w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/chrome_2018-05-09_17-34-23.png?w=150&amp;h=82 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/chrome_2018-05-09_17-34-23.png?w=300&amp;h=163 300w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/chrome_2018-05-09_17-34-23.png?w=768&amp;h=418 768w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/chrome_2018-05-09_17-34-23.png?w=1024&amp;h=557 1024w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/chrome_2018-05-09_17-34-23.png 1049w" sizes="(max-width: 643px) 100vw, 643px" /></p>
<p><strong>Other considerations &#8211;</strong></p>
<p>In some cases Citrix points people to the use of port 4343 for their dummy gateway server, whilst also mentioning it can be any port other than port 443. I would advise against this as you may find it causes remote connections to drop randomly.</p>
<p>Further Reading &#8211; <a href="http://sysadminguides.org/2018/05/01/setup-citrix-netscaler-ssl-without-dns-records-using-a-public-ip-and-a-windows-ca/" target="_blank" rel="noopener">Setup Citrix NetScaler SSL without DNS records, using a Public IP and a Windows CA</a></p>
<hr />
<p>Thanks for reading &#8211; feel free to follow and stay updated <img src="https://s0.wp.com/wp-content/mu-plugins/wpcom-smileys/twemoji/2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <a class="genericon genericon-facebook" href="https://www.facebook.com/sysadminguides/" target="_blank" rel="noopener noreferrer"><span class="screen-reader-text">View sysadminguides’s profile on Facebook </span></a><a class="genericon genericon-twitter" href="https://twitter.com/GuidesSysadmin/" target="_blank" rel="noopener noreferrer"><span class="screen-reader-text">View GuidesSysadmin’s profile on Twitter </span></a><a class="genericon genericon-googleplus" href="https://plus.google.com/u/0/115372466162675927272/" target="_blank" rel="noopener noreferrer"><span class="screen-reader-text">View 115372466162675927272’s profile on Google+</span></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://sysadminguides.wordpress.com/2018/05/21/setup-citrix-netscaler-client-authentication-using-a-windows-ca/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3429</post-id>
		<media:content url="https://1.gravatar.com/avatar/4c21b4a8fb07c2a3833a81482c5b545ec72822b1d80e2f61325bf24ea61bc544?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sysadminguides</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-00-16.png" medium="image">
			<media:title type="html">Create Client Key</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/capture.png" medium="image">
			<media:title type="html">Create CSR Netscaler</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-02-00.png" medium="image">
			<media:title type="html">SSL C</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/winscp-login-session.png" medium="image">
			<media:title type="html">WinSCP login session</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/winscp_2018-05-09_17-02-55.png" medium="image">
			<media:title type="html">WinCSP</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-07-11.png" medium="image">
			<media:title type="html">Basic AD account</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-09-01.png" medium="image">
			<media:title type="html">certsrv</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-01.png?w=584&#038;h=444" medium="image">
			<media:title type="html">Active Directory Certificate Services</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-27.png?w=329&#038;h=131" medium="image">
			<media:title type="html">firefox_2018-04-29_14-09-27</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/capture1.png" medium="image">
			<media:title type="html">CSR Domain Certificate</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-11-541.png?w=336&#038;h=153" medium="image">
			<media:title type="html">BASE 64 encoded</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-11-45.png" medium="image">
			<media:title type="html">NetScaler Install Certificate</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-12-22.png" medium="image">
			<media:title type="html">NetScaler Client Certificartes</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/zfirefox_2018-05-09_17-55-46.png" medium="image">
			<media:title type="html">SSL Paramters</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/cdviewer_2018-05-09_17-41-50.png" medium="image">
			<media:title type="html">Certificate prompt</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/cdviewer_2018-05-09_17-27-00.png" medium="image">
			<media:title type="html">Citrix Socket Error</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-30-17.png" medium="image">
			<media:title type="html">NetScaler Gateway Settings</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-31-31.png" medium="image">
			<media:title type="html">NetScaler Gateway Virtual server</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-30-58.png" medium="image">
			<media:title type="html">firefox_2018-05-09_16-30-58</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-09_16-26-51.png" medium="image">
			<media:title type="html">Storefront Manage NetScaler Gateway</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-09_16-27-06.png" medium="image">
			<media:title type="html">Storefront General Settings</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-09_16-27-18.png" medium="image">
			<media:title type="html">Netscaler Gateway Storefront</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_16-13-04.png" medium="image">
			<media:title type="html">Export PKCS</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-14-46.png" medium="image">
			<media:title type="html">firefox_2018-05-09_17-14-46</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-15-13.png" medium="image">
			<media:title type="html">PKCS file</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-09_17-17-27.png" medium="image">
			<media:title type="html">NetScaler certificate prompt</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/chrome_2018-05-09_17-34-23.png" medium="image">
			<media:title type="html">connection error</media:title>
		</media:content>
	</item>
		<item>
		<title>Fix &#8211; Teredo Problem Windows Network Adapter ( Not showing / Xbox App )</title>
		<link>https://sysadminguides.wordpress.com/2018/05/05/fix-teredo-problem-windows-network-adapter-not-showing-xbox-app/</link>
					<comments>https://sysadminguides.wordpress.com/2018/05/05/fix-teredo-problem-windows-network-adapter-not-showing-xbox-app/#comments</comments>
		
		<dc:creator><![CDATA[Cameron Yates]]></dc:creator>
		<pubDate>Sat, 05 May 2018 22:52:19 +0000</pubDate>
				<category><![CDATA[Computer Misc]]></category>
		<category><![CDATA[Can't connect]]></category>
		<category><![CDATA[Command Prompt]]></category>
		<category><![CDATA[DNS issues]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[network adapter]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Teredo]]></category>
		<category><![CDATA[Teredo Device Manager]]></category>
		<category><![CDATA[Teredo driver]]></category>
		<category><![CDATA[Teredo missing]]></category>
		<category><![CDATA[Teredo problem]]></category>
		<category><![CDATA[Teredo Tunneling]]></category>
		<category><![CDATA[Unable to find Teredo]]></category>
		<category><![CDATA[Video games]]></category>
		<category><![CDATA[Xbox]]></category>
		<category><![CDATA[Xbox App]]></category>
		<guid isPermaLink="false">http://sysadminguides.org/?p=3434</guid>

					<description><![CDATA[In this post we are going to be looking at a common problem people, as well as myself have experienced with one of Windows legacy network adapters called Teredo. Although this is unlike my other posts which are more focused on enterprise IT. From my experience troubleshooting connectivity issues concerning Teredo, I quickly realized that &#8230; <a href="https://sysadminguides.wordpress.com/2018/05/05/fix-teredo-problem-windows-network-adapter-not-showing-xbox-app/" class="more-link">Continue reading <span class="screen-reader-text">Fix &#8211; Teredo Problem Windows Network Adapter ( Not showing / Xbox App&#160;)</span></a>]]></description>
										<content:encoded><![CDATA[<h3>In this post we are going to be looking at a common problem people, as well as myself have experienced with one of Windows legacy network adapters called Teredo.</h3>
<p>Although this is unlike my other posts which are more focused on enterprise IT. From my experience troubleshooting connectivity issues concerning Teredo, I quickly realized that their wasn&#8217;t a lot of helpful information on the internet, especially if you can&#8217;t find the device in Device Manger under Network Adapters.</p>
<p><strong>Problems going to be addressed:</strong></p>
<ul>
<li>Teredo driver is corrupt</li>
<li>Unable to find device or missing Teredo driver in Device Manager</li>
<li>Unable to connect to devices utilizing IPv6</li>
<li>No connectivity in Xbox App</li>
<li>No connectivity in Microsoft PC Games</li>
<li>Teredo driver showing yellow exclamation mark in Device Manager</li>
<li>DNS errors in Microsoft Games</li>
<li>How to fix Teredo Tunneling missing problem or Teredo Tunneling Pseudo-Interface error Code 10.</li>
</ul>
<p style="text-align:center;"><span style="color:#ff9900;">**</span><em>If the device<span style="color:#800000;"> isn&#8217;t showing</span> in Device Manager skip to section 5.</em><span style="color:#ff9900;">**</span></p>
<p> </p>
<h4>1. Firstly we want to disable the Teredo technology using Command Prompt or PowerShell:</h4>
<ol>
<li>Go to<strong> Start</strong> &gt; <strong>All Programs</strong> &gt; <strong>Accessories</strong>.</li>
<li>Right click at <strong>Command Prompt</strong> and select <strong>Run as Administrator</strong></li>
<li>At command prompt window, type the following commands one after the other.</li>
</ol>
<blockquote>
<p style="padding-left:30px;">netsh int teredo set state disabled</p>
<p style="padding-left:30px;">netsh int ipv6 set teredo client</p>
</blockquote>
<p><img loading="lazy" data-attachment-id="3435" data-permalink="https://sysadminguides.wordpress.com/2018/05/05/fix-teredo-problem-windows-network-adapter-not-showing-xbox-app/powershell_2018-05-05_23-24-30/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/powershell_2018-05-05_23-24-30.png" data-orig-size="438,140" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Teredo netsh" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/powershell_2018-05-05_23-24-30.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/powershell_2018-05-05_23-24-30.png?w=438" class="alignnone size-full wp-image-3435" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/powershell_2018-05-05_23-24-30.png?w=676" alt="Teredo netsh"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/powershell_2018-05-05_23-24-30.png 438w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/powershell_2018-05-05_23-24-30.png?w=150&amp;h=48 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/powershell_2018-05-05_23-24-30.png?w=300&amp;h=96 300w" sizes="(max-width: 438px) 100vw, 438px" /></p>
<p style="padding-left:30px;">4. Close the window.</p>
<p> </p>
<h4>2. Check Device Manager to see if Teredo is showing up:</h4>
<ol>
<li>Press <strong>Windows key </strong>+ <strong>R</strong> to open <strong>Run </strong> dialog.</li>
<li>Type <strong>hdwwiz.cpl</strong>, and then press <strong>Enter </strong>to open <strong>Device </strong><strong>Manager</strong>.</li>
<li>Click the view tab and press <strong>Show Hidden Devices</strong></li>
<li>Click on <strong>Network Adapters</strong> from the list.</li>
</ol>
<p> </p>
<h4>3. If the device is showing under Network Adapters &#8211; Uninstall it:</h4>
<p>(If the device <span style="color:#800000;">isn&#8217;t showing</span> skip to section 5.)</p>
<ol>
<li>Right click it and press <strong>Uninstall </strong></li>
</ol>
<p> </p>
<h4>4. Once it&#8217;s been uninstalled. Reinstall it by doing these steps:</h4>
<ol>
<li>Click on <strong>Actions </strong>tab at the top.</li>
<li>Select <strong>Add Legacy Hardware</strong>.</li>
<li>Click on <strong>Next </strong>button.</li>
<li>Make sure that <strong>Search for and install the hardware automatically (Recommended)</strong> option is selected, and then click on <strong>Next </strong>button.</li>
<li>Click on <strong>Next </strong>button again.</li>
<li>Under <strong>Common hardware types </strong>selection, look for <strong>Network Adapters</strong> and click on it.</li>
<li>Click on <strong>Next </strong>button.</li>
<li>Under <strong>Manufacturer </strong>column, select <strong>Microsoft</strong>.</li>
<li>Under <strong>Network Adapter </strong>column, select <strong>Microsoft Teredo Tunneling Adapter</strong></li>
<li>Click on <strong>Next</strong> button.</li>
<li>Click on <strong>Next </strong>button again.</li>
<li>Click on <strong>Finish.</strong></li>
<li>Once it&#8217;s installed restart your Desktop</li>
</ol>
<p> </p>
<h4>5. If the driver isn&#8217;t showing up in Device Manager or the problem has not resolved:</h4>
<ol>
<li>Go to<strong> Start</strong> &gt; <strong>All Programs</strong> &gt; <strong>Accessories</strong>.</li>
<li>Right click at <strong>Command Prompt</strong> (or run PowerShell) and select <strong>Run as Administrator</strong></li>
<li>At command prompt window, type the following commands one after the other.</li>
</ol>
<blockquote>
<p style="padding-left:30px;">netsh int teredo set state disable<br />
netsh int teredo set state type=default<br />
netsh int teredo set state enterpriseclient<br />
netsh int teredo set state servername=teredo.remlab.net</p>
</blockquote>
<p><img loading="lazy" data-attachment-id="3436" data-permalink="https://sysadminguides.wordpress.com/2018/05/05/fix-teredo-problem-windows-network-adapter-not-showing-xbox-app/powershell_2018-05-05_23-42-05/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/powershell_2018-05-05_23-42-05.png" data-orig-size="417,155" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Teredo netsh" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/powershell_2018-05-05_23-42-05.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/powershell_2018-05-05_23-42-05.png?w=417" class="alignnone size-full wp-image-3436" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/powershell_2018-05-05_23-42-05.png?w=676" alt="Teredo netsh"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/powershell_2018-05-05_23-42-05.png 417w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/powershell_2018-05-05_23-42-05.png?w=150&amp;h=56 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/powershell_2018-05-05_23-42-05.png?w=300&amp;h=112 300w" sizes="(max-width: 417px) 100vw, 417px" /></p>
<p style="padding-left:30px;">4. Check to see if the problem has now been resolved.</p>
<p>If you&#8217;re are still having problems, reset the server name to default</p>
<blockquote><p>netsh interface Teredo set state servername=default</p></blockquote>
<h4>Considering my issue revolved around online connectivity on Microsoft video games. I could use the Xbox App to check whether the problem had resolved or not.</h4>
<p>Under &#8211; <strong>Settings</strong> &gt; <strong>Network</strong></p>
<p>Unhappy Teredo <img src="https://s0.wp.com/wp-content/mu-plugins/wpcom-smileys/twemoji/2/72x72/1f626.png" alt="😦" class="wp-smiley" style="height: 1em; max-height: 1em;" /> :</p>
<p><img loading="lazy" data-attachment-id="3437" data-permalink="https://sysadminguides.wordpress.com/2018/05/05/fix-teredo-problem-windows-network-adapter-not-showing-xbox-app/applicationframehost_2018-05-05_22-53-30/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/applicationframehost_2018-05-05_22-53-30.png" data-orig-size="475,598" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Teredo error Xbox" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/applicationframehost_2018-05-05_22-53-30.png?w=238" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/applicationframehost_2018-05-05_22-53-30.png?w=475" class="alignnone  wp-image-3437" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/applicationframehost_2018-05-05_22-53-30.png?w=382&#038;h=481" alt="Teredo error Xbox" width="382" height="481" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/applicationframehost_2018-05-05_22-53-30.png?w=382&amp;h=481 382w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/applicationframehost_2018-05-05_22-53-30.png?w=119&amp;h=150 119w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/applicationframehost_2018-05-05_22-53-30.png?w=238&amp;h=300 238w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/applicationframehost_2018-05-05_22-53-30.png 475w" sizes="(max-width: 382px) 100vw, 382px" /></p>
<p>Happy Teredo <img src="https://s0.wp.com/wp-content/mu-plugins/wpcom-smileys/twemoji/2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /> :</p>
<p><img loading="lazy" data-attachment-id="3438" data-permalink="https://sysadminguides.wordpress.com/2018/05/05/fix-teredo-problem-windows-network-adapter-not-showing-xbox-app/applicationframehost_2018-05-05_23-45-55/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/applicationframehost_2018-05-05_23-45-55.png" data-orig-size="420,512" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Teredo Xbox App problems" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/applicationframehost_2018-05-05_23-45-55.png?w=246" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/applicationframehost_2018-05-05_23-45-55.png?w=420" class="alignnone  wp-image-3438" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/applicationframehost_2018-05-05_23-45-55.png?w=376&#038;h=458" alt="Teredo Xbox App problems" width="376" height="458" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/applicationframehost_2018-05-05_23-45-55.png?w=376&amp;h=458 376w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/applicationframehost_2018-05-05_23-45-55.png?w=123&amp;h=150 123w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/applicationframehost_2018-05-05_23-45-55.png?w=246&amp;h=300 246w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/applicationframehost_2018-05-05_23-45-55.png 420w" sizes="(max-width: 376px) 100vw, 376px" /></p>
<p> </p>
<p> </p>
<hr />
<p>Hopefully by following this guide Teredo is now working probably for you. If you are still having problems feel free to leave a comment and I will get back to you.</p>
<p> </p>
<p> </p>
<p>Thanks for reading &#8211; feel free to follow and stay updated <img src="https://s0.wp.com/wp-content/mu-plugins/wpcom-smileys/twemoji/2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <a class="genericon genericon-facebook" href="https://www.facebook.com/sysadminguides/" target="_blank" rel="noopener noreferrer"><span class="screen-reader-text">View sysadminguides’s profile on Facebook </span></a><a class="genericon genericon-twitter" href="https://twitter.com/GuidesSysadmin/" target="_blank" rel="noopener noreferrer"><span class="screen-reader-text">View GuidesSysadmin’s profile on Twitter </span></a><a class="genericon genericon-googleplus" href="https://plus.google.com/u/0/115372466162675927272/" target="_blank" rel="noopener noreferrer"><span class="screen-reader-text">View 115372466162675927272’s profile on Google+</span></a></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://sysadminguides.wordpress.com/2018/05/05/fix-teredo-problem-windows-network-adapter-not-showing-xbox-app/feed/</wfw:commentRss>
			<slash:comments>8</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3434</post-id>
		<media:content url="https://1.gravatar.com/avatar/4c21b4a8fb07c2a3833a81482c5b545ec72822b1d80e2f61325bf24ea61bc544?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sysadminguides</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/powershell_2018-05-05_23-24-30.png" medium="image">
			<media:title type="html">Teredo netsh</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/powershell_2018-05-05_23-42-05.png" medium="image">
			<media:title type="html">Teredo netsh</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/applicationframehost_2018-05-05_22-53-30.png" medium="image">
			<media:title type="html">Teredo error Xbox</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/applicationframehost_2018-05-05_23-45-55.png" medium="image">
			<media:title type="html">Teredo Xbox App problems</media:title>
		</media:content>
	</item>
		<item>
		<title>Setup Citrix NetScaler SSL without DNS records, using a Public IP and a Windows CA</title>
		<link>https://sysadminguides.wordpress.com/2018/05/01/setup-citrix-netscaler-ssl-without-dns-records-using-a-public-ip-and-a-windows-ca/</link>
					<comments>https://sysadminguides.wordpress.com/2018/05/01/setup-citrix-netscaler-ssl-without-dns-records-using-a-public-ip-and-a-windows-ca/#comments</comments>
		
		<dc:creator><![CDATA[Cameron Yates]]></dc:creator>
		<pubDate>Tue, 01 May 2018 02:22:27 +0000</pubDate>
				<category><![CDATA[Citrix]]></category>
		<category><![CDATA[CA Cert]]></category>
		<category><![CDATA[Certificates]]></category>
		<category><![CDATA[Certs]]></category>
		<category><![CDATA[Citrix NetScaler]]></category>
		<category><![CDATA[Citrix NetScaler SSL]]></category>
		<category><![CDATA[CSR]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[Microsoft Certificates]]></category>
		<category><![CDATA[NetScaler]]></category>
		<category><![CDATA[no DNS records]]></category>
		<category><![CDATA[Public IP]]></category>
		<category><![CDATA[Records]]></category>
		<category><![CDATA[RSA]]></category>
		<category><![CDATA[Self Assigned]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[SSL encryption]]></category>
		<guid isPermaLink="false">http://sysadminguides.org/?p=3386</guid>

					<description><![CDATA[In this post we are going to be setting up SSL in NetScaler using Self Assigned Certificates generated from a Microsoft Certificate Server. In normal production circumstances you would generally use the Certificate Signing Request (CSR)  to generate a domain certificate for signing by a Certificate Authority (CA). However,  in some cases you only really &#8230; <a href="https://sysadminguides.wordpress.com/2018/05/01/setup-citrix-netscaler-ssl-without-dns-records-using-a-public-ip-and-a-windows-ca/" class="more-link">Continue reading <span class="screen-reader-text">Setup Citrix NetScaler SSL without DNS records, using a Public IP and a Windows&#160;CA</span></a>]]></description>
										<content:encoded><![CDATA[<h2>In this post we are going to be setting up SSL in NetScaler using Self Assigned Certificates generated from a Microsoft Certificate Server.</h2>
<p>In normal production circumstances you would generally use the Certificate Signing Request (CSR)  to generate a domain certificate for signing by a Certificate Authority (CA). However,  in some cases y<span class="comment-copy">ou only really need a self-signed cert for your public IP address. </span></p>
<p><span class="comment-copy">Many people refer to these as being less secure and this is not correct. They give less <span style="color:#008000;"><i>trust</i></span> but the security can be even higher than commercial certs since you have full control over the creation process. However, using self-signed certs means finding secure ways to deliver the new root certificate to clients and the private key of the root needs to be secure. </span></p>
<p>Why is SSL important? <span class="Y0NH2b CLPzrc">It creates an <span style="color:#ff9900;"><b>encrypted</b> </span>link between a web server (NetScaler) and a browser. This link ensures that all data passed between the web server and browsers remain private. </span></p>
<p><span class="comment-copy"><span style="color:#993300;">**</span>The keys you generate during this process need to be removed from the NetScaler once the setup is complete, this is especially important for setups where the NetScaler is outside the internal network in a DMZ.<span style="color:#993300;">**</span></span></p>
<h3>Now lets get to it &#8211; Creating the RSA Key</h3>
<p>In the NetScaler GUI go to the <strong>Configuration tab</strong>, in click <strong>Traffic Management</strong>, and then click <strong>SSL</strong>. Click <strong>Server Certificate Wizard</strong> then fill in the field making sure to encrypt the key file with a passphrase.</p>
<p><img loading="lazy" data-attachment-id="3390" data-permalink="https://sysadminguides.wordpress.com/2018/05/01/setup-citrix-netscaler-ssl-without-dns-records-using-a-public-ip-and-a-windows-ca/firefox_2018-04-29_13-49-41/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_13-49-41.png" data-orig-size="379,202" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="SSL Certificate wizard" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_13-49-41.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_13-49-41.png?w=379" class="alignnone  wp-image-3390" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_13-49-41.png?w=293&#038;h=156" alt="SSL Certificate wizard" width="293" height="156" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_13-49-41.png?w=293&amp;h=156 293w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_13-49-41.png?w=150&amp;h=80 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_13-49-41.png?w=300&amp;h=160 300w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_13-49-41.png 379w" sizes="(max-width: 293px) 100vw, 293px" /></p>
<p><img loading="lazy" data-attachment-id="3391" data-permalink="https://sysadminguides.wordpress.com/2018/05/01/setup-citrix-netscaler-ssl-without-dns-records-using-a-public-ip-and-a-windows-ca/firefox_2018-04-29_13-51-41/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_13-51-41.png" data-orig-size="336,521" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Create Key Netscaler" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_13-51-41.png?w=193" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_13-51-41.png?w=336" class="alignnone  wp-image-3391" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_13-51-41.png?w=330&#038;h=511" alt="Create Key Netscaler" width="330" height="511" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_13-51-41.png?w=330&amp;h=512 330w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_13-51-41.png?w=97&amp;h=150 97w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_13-51-41.png?w=193&amp;h=300 193w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_13-51-41.png 336w" sizes="(max-width: 330px) 100vw, 330px" /></p>
<p>After you create the RSA key, create the CSR.</p>
<h3>Creating the Certificate Signing Request</h3>
<p>Now in the same window create the CSR</p>
<p>Use the PEM passphrase you used for your RSA key.</p>
<p><strong>Important:</strong> The Common Name is going to be your public IP address. This is the IP address users connect to gain access to the NetScaler login page.</p>
<p><img loading="lazy" data-attachment-id="3392" data-permalink="https://sysadminguides.wordpress.com/2018/05/01/setup-citrix-netscaler-ssl-without-dns-records-using-a-public-ip-and-a-windows-ca/firefox_2018-04-29_13-56-53/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_13-56-53.png" data-orig-size="295,614" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Net scaler create cerificate signing request" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_13-56-53.png?w=144" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_13-56-53.png?w=295" class="alignnone  wp-image-3392" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_13-56-53.png?w=300&#038;h=624" alt="Net scaler create cerificate signing request" width="300" height="624" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_13-56-53.png 295w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_13-56-53.png?w=72&amp;h=150 72w" sizes="(max-width: 300px) 100vw, 300px" /></p>
<p>After you complete the CSR, the next step in the SSL Certificate Wizard is to create the certificate. <span style="color:#800000;"><strong>Do not</strong></span> do this. Instead, copy the certificate from the <strong>/flash/nsconfig/ssl/ </strong>directory on the NetScaler appliance to a Windows computer. You can use the utility <span style="color:#339966;">WinSCP</span> to transfer the certificate.</p>
<p><img loading="lazy" data-attachment-id="3393" data-permalink="https://sysadminguides.wordpress.com/2018/05/01/setup-citrix-netscaler-ssl-without-dns-records-using-a-public-ip-and-a-windows-ca/winscp_2018-04-29_13-58-51/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/winscp_2018-04-29_13-58-51.png" data-orig-size="626,423" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="WinSCP" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/winscp_2018-04-29_13-58-51.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/winscp_2018-04-29_13-58-51.png?w=626" class="alignnone  wp-image-3393" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/winscp_2018-04-29_13-58-51.png?w=506&#038;h=342" alt="WinSCP" width="506" height="342" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/winscp_2018-04-29_13-58-51.png?w=506&amp;h=342 506w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/winscp_2018-04-29_13-58-51.png?w=150&amp;h=101 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/winscp_2018-04-29_13-58-51.png?w=300&amp;h=203 300w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/winscp_2018-04-29_13-58-51.png 626w" sizes="(max-width: 506px) 100vw, 506px" /></p>
<p><img loading="lazy" data-attachment-id="3395" data-permalink="https://sysadminguides.wordpress.com/2018/05/01/setup-citrix-netscaler-ssl-without-dns-records-using-a-public-ip-and-a-windows-ca/winscp_2018-04-29_13-58-21-2/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/winscp_2018-04-29_13-58-211.png" data-orig-size="506,432" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="WinSCP" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/winscp_2018-04-29_13-58-211.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/winscp_2018-04-29_13-58-211.png?w=506" class="alignnone size-full wp-image-3395" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/winscp_2018-04-29_13-58-211.png?w=676" alt="WinSCP"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/winscp_2018-04-29_13-58-211.png 506w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/winscp_2018-04-29_13-58-211.png?w=150&amp;h=128 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/winscp_2018-04-29_13-58-211.png?w=300&amp;h=256 300w" sizes="(max-width: 506px) 100vw, 506px" /></p>
<p>After you have saved the CSR to your Windows computer, use the Microsoft Active Directory Certificate Services to Request a certificate.</p>
<p>[Optional – you can use SSL to communicate from NetScaler Gateway to your StoreFront and XenApp/XenDesktop farm.</p>
<p>Additionally You can return to this page to Download the CA Certificate (Base 64). This will be needed later.</p>
<h3> Create a certificate by using Microsoft Active Directory Certificate Services</h3>
<p><strong>Important:</strong> For this part you will need the Certification Authority role installed in your environment. In my case I installed it on my Domain Controller.</p>
<p>Navigate to Microsoft Active Directory Certificate Services. http://<span style="color:#800080;">&lt;your CA server&gt;</span>/certsrv.</p>
<p><img loading="lazy" data-attachment-id="3397" data-permalink="https://sysadminguides.wordpress.com/2018/05/01/setup-citrix-netscaler-ssl-without-dns-records-using-a-public-ip-and-a-windows-ca/firefox_2018-04-29_14-09-01/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-01.png" data-orig-size="627,477" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Active Directory Certificate Services" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-01.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-01.png?w=627" class="alignnone  wp-image-3397" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-01.png?w=584&#038;h=444" alt="Active Directory Certificate Services" width="584" height="444" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-01.png?w=584&amp;h=444 584w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-01.png?w=150&amp;h=114 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-01.png?w=300&amp;h=228 300w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-01.png 627w" sizes="(max-width: 584px) 100vw, 584px" /></p>
<p>Click <strong>Request a certificate</strong> then <strong>Advanced Certificate request</strong>.</p>
<p><img loading="lazy" data-attachment-id="3398" data-permalink="https://sysadminguides.wordpress.com/2018/05/01/setup-citrix-netscaler-ssl-without-dns-records-using-a-public-ip-and-a-windows-ca/firefox_2018-04-29_14-09-27/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-27.png" data-orig-size="329,131" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="firefox_2018-04-29_14-09-27" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-27.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-27.png?w=329" class="alignnone  wp-image-3398" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-27.png?w=329&#038;h=131" alt="firefox_2018-04-29_14-09-27" width="329" height="131" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-27.png 329w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-27.png?w=150&amp;h=60 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-27.png?w=300&amp;h=119 300w" sizes="(max-width: 329px) 100vw, 329px" /></p>
<p>Open the CSR saved to your computer using <strong>Notepad</strong>. Copy and paste the contents into the text box under <strong>Saved Request</strong>. In Certificate Template, select <strong>Web Server</strong> and click Submit.</p>
<p><img loading="lazy" data-attachment-id="3399" data-permalink="https://sysadminguides.wordpress.com/2018/05/01/setup-citrix-netscaler-ssl-without-dns-records-using-a-public-ip-and-a-windows-ca/firefox_2018-04-29_14-10-21/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-10-21.png" data-orig-size="468,542" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="CSR Certificate request" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-10-21.png?w=259" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-10-21.png?w=468" class="alignnone size-full wp-image-3399" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-10-21.png?w=676" alt="CSR Certificate request"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-10-21.png 468w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-10-21.png?w=130&amp;h=150 130w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-10-21.png?w=259&amp;h=300 259w" sizes="(max-width: 468px) 100vw, 468px" /></p>
<p>Click the Base 64 encoded radio button then press <strong>Download certificate</strong>.</p>
<p><img loading="lazy" data-attachment-id="3402" data-permalink="https://sysadminguides.wordpress.com/2018/05/01/setup-citrix-netscaler-ssl-without-dns-records-using-a-public-ip-and-a-windows-ca/firefox_2018-04-29_14-11-54/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-11-541.png" data-orig-size="468,213" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="BASE 64 encoded" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-11-541.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-11-541.png?w=468" class="alignnone  wp-image-3402" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-11-541.png?w=336&#038;h=153" alt="BASE 64 encoded" width="336" height="153" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-11-541.png?w=336&amp;h=153 336w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-11-541.png?w=150&amp;h=68 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-11-541.png?w=300&amp;h=137 300w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-11-541.png 468w" sizes="(max-width: 336px) 100vw, 336px" /></p>
<h3>Install the Microsoft-generated certificate</h3>
<p>Return to the NetScaler SSL Server Certificate Wizard, skip step 3, and go to step 4 to install the certificate. Fill in the fields making sure to upload your saved Microsoft certificate (certnew(2) in my case) on your computer under <strong>Certificate File Name</strong> and your RSA key you create earlier under the <strong>Key File Name</strong>.</p>
<p>When the certificate uploads, a prompt appears for the name and password of the Key File that you created earlier. Once everything is filled in click <strong>Create</strong> and then click <strong>Done</strong>.</p>
<p><img loading="lazy" data-attachment-id="3403" data-permalink="https://sysadminguides.wordpress.com/2018/05/01/setup-citrix-netscaler-ssl-without-dns-records-using-a-public-ip-and-a-windows-ca/firefox_2018-04-29_14-18-25/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-18-25.png" data-orig-size="299,369" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Install Certificate NetScaler" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-18-25.png?w=243" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-18-25.png?w=299" class="alignnone size-full wp-image-3403" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-18-25.png?w=676" alt="Install Certificate NetScaler"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-18-25.png 299w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-18-25.png?w=122&amp;h=150 122w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-18-25.png?w=243&amp;h=300 243w" sizes="(max-width: 299px) 100vw, 299px" /></p>
<p><strong>[Optional]</strong> To install a CA certificate on NetScaler Gateway You can use SSL to communicate between NetScaler Gateway, StoreFront, and XenApp/XenDesktop. To do so, install a CA certificate on the appliance.</p>
<p>This procedure is optional but I would highly recommend setting this part up to ensure all communication between your severs are encrypted.</p>
<p>In the NetScaler UI, on the <strong>Configuration tab</strong>, in the <strong>navigation pane</strong>, expand <strong>Traffic Management</strong> &gt; <strong>SSL</strong> &gt;<strong> Certificates</strong> and then click <strong>CA Certificates</strong>. Fill in the field as shown below and then press install.</p>
<p>(Remember you can download the CA certificate from the Microsoft Active Directory Certificate Services webpage &#8211; alternatively you can export it from your CA&#8217;s Certificate area using mmc)</p>
<p><img loading="lazy" data-attachment-id="3404" data-permalink="https://sysadminguides.wordpress.com/2018/05/01/setup-citrix-netscaler-ssl-without-dns-records-using-a-public-ip-and-a-windows-ca/firefox_2018-04-29_14-20-31/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-20-31.png" data-orig-size="311,324" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Net Scaler install CA" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-20-31.png?w=288" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-20-31.png?w=311" class="alignnone size-full wp-image-3404" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-20-31.png?w=676" alt="Net Scaler install CA"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-20-31.png 311w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-20-31.png?w=144&amp;h=150 144w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-20-31.png?w=288&amp;h=300 288w" sizes="(max-width: 311px) 100vw, 311px" /></p>
<h3><strong>Additional Changes &#8211; VPN Virtual Server/Gateway Settings/Storefront/Port Forwarding<br />
</strong></h3>
<p>Now your NetScaler has both the newly created Server Certificate and the CA, you are ready to bind/input your certificates in the other NetScaler settings. For instance your <strong>Virtual Servers</strong> will need the Server/CA certificates and so will your<strong> NetScaler Gateway Settings</strong>.</p>
<p><strong>Virtual Server Settings:</strong></p>
<p><img loading="lazy" data-attachment-id="3407" data-permalink="https://sysadminguides.wordpress.com/2018/05/01/setup-citrix-netscaler-ssl-without-dns-records-using-a-public-ip-and-a-windows-ca/firefox_2018-05-01_02-51-14/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-01_02-51-14.png" data-orig-size="325,402" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="VPN Virtual Server" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-01_02-51-14.png?w=243" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-01_02-51-14.png?w=325" class="alignnone  wp-image-3407" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-01_02-51-14.png?w=288&#038;h=356" alt="VPN Virtual Server" width="288" height="356" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-01_02-51-14.png?w=288&amp;h=356 288w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-01_02-51-14.png?w=121&amp;h=150 121w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-01_02-51-14.png?w=243&amp;h=300 243w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-01_02-51-14.png 325w" sizes="(max-width: 288px) 100vw, 288px" /></p>
<p>Click <strong>Sever Certificate</strong> and then bind your created Server Certificate.</p>
<p>Then click <strong>Close</strong> and Do the same for your CA Certificate.</p>
<p><img loading="lazy" data-attachment-id="3408" data-permalink="https://sysadminguides.wordpress.com/2018/05/01/setup-citrix-netscaler-ssl-without-dns-records-using-a-public-ip-and-a-windows-ca/firefox_2018-05-01_02-51-19/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-01_02-51-19.png" data-orig-size="565,187" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="firefox_2018-05-01_02-51-19" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-01_02-51-19.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-01_02-51-19.png?w=565" class="alignnone  wp-image-3408" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-01_02-51-19.png?w=502&#038;h=166" alt="firefox_2018-05-01_02-51-19" width="502" height="166" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-01_02-51-19.png?w=502&amp;h=166 502w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-01_02-51-19.png?w=150&amp;h=50 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-01_02-51-19.png?w=300&amp;h=99 300w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-01_02-51-19.png 565w" sizes="(max-width: 502px) 100vw, 502px" /></p>
<p><strong>NetScaler Gateway Settings:</strong></p>
<p><img loading="lazy" data-attachment-id="3409" data-permalink="https://sysadminguides.wordpress.com/2018/05/01/setup-citrix-netscaler-ssl-without-dns-records-using-a-public-ip-and-a-windows-ca/firefox_2018-05-01_02-51-33-2/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-01_02-51-331.png" data-orig-size="493,269" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="NetScaler Gateway Settings" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-01_02-51-331.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-01_02-51-331.png?w=493" class="alignnone  wp-image-3409" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-01_02-51-331.png?w=442&#038;h=241" alt="NetScaler Gateway Settings" width="442" height="241" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-01_02-51-331.png?w=442&amp;h=241 442w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-01_02-51-331.png?w=150&amp;h=82 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-01_02-51-331.png?w=300&amp;h=164 300w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-01_02-51-331.png 493w" sizes="(max-width: 442px) 100vw, 442px" /></p>
<p><strong>StoreFront:</strong></p>
<p>On your Storefront server make sure to change your Stores Gateway appliance settings to match the Public IP URL of your NetScaler Gateway.</p>
<p><img loading="lazy" data-attachment-id="3411" data-permalink="https://sysadminguides.wordpress.com/2018/05/01/setup-citrix-netscaler-ssl-without-dns-records-using-a-public-ip-and-a-windows-ca/vpxclient_2018-05-01_03-01-49/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-01_03-01-49.png" data-orig-size="724,394" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="NetScaler Storefront" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-01_03-01-49.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-01_03-01-49.png?w=676" class="alignnone  wp-image-3411" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-01_03-01-49.png?w=666&#038;h=362" alt="NetScaler Storefront" width="666" height="362" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-01_03-01-49.png?w=666&amp;h=362 666w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-01_03-01-49.png?w=150&amp;h=82 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-01_03-01-49.png?w=300&amp;h=163 300w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-01_03-01-49.png 724w" sizes="(max-width: 666px) 100vw, 666px" /></p>
<p><strong>Router &#8211; Port Fowarding</strong></p>
<p>Depending on your setup and what port your NetScaler virtual server is set to, make sure to setup port forwarding to ensure that external connections can reach your NetScaler server.</p>
<h3>Client Computer Setup</h3>
<p>Confirm that your CA Certificate is installed in the Trusted Root Certification Authorities in the Certificates container on the client computer.</p>
<p><img loading="lazy" data-attachment-id="3412" data-permalink="https://sysadminguides.wordpress.com/2018/05/01/setup-citrix-netscaler-ssl-without-dns-records-using-a-public-ip-and-a-windows-ca/mmc_2018-05-01_03-05-43/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/mmc_2018-05-01_03-05-43.png" data-orig-size="584,198" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Certificates CA MMC" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/mmc_2018-05-01_03-05-43.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/mmc_2018-05-01_03-05-43.png?w=584" class="alignnone size-full wp-image-3412" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/mmc_2018-05-01_03-05-43.png?w=676" alt="Certificates CA MMC"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/mmc_2018-05-01_03-05-43.png 584w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/mmc_2018-05-01_03-05-43.png?w=150&amp;h=51 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/mmc_2018-05-01_03-05-43.png?w=300&amp;h=102 300w" sizes="(max-width: 584px) 100vw, 584px" /><br />
<span style="color:#800000;">[If you experience browser problems]</span></p>
<p>In <strong>Internet Explorer</strong>, <strong>turn off certificate revocation checking</strong>. This step is required because your private NetScaler server is unknown on the Internet.</p>
<p>On the Tools menu in <strong>Internet Explorer</strong>, click <strong>Internet Options</strong> &gt; <strong>Advanced</strong>. Check that the publisher&#8217;s certificate revocation is set to <strong>Off</strong>. Check that the server certificate revocation is set to <strong>Off</strong>.</p>
<p>If you use a browser other than Internet Explorer (such as Firefox, or Safari) you might need to import the Trusted Root CA Certificate into the <strong>Certificate Manager</strong>, and <strong>turn off Online Certificate Status Protocol checking</strong>. This is off by default in Chrome.</p>
<hr />
<p>&nbsp;</p>
<p>Thats it! Now you have secure communication between your clients and your NetScaler.</p>
<p><span style="color:#ffcc00;">**</span>If you desire more security, check out my guide on how to setup Client Authentication, whereby the clients need a client certificate to be able to connect to the NetScaler.</p>
<p>Without Client Authentication, unwanted people can still gain access to your NetScaler login page and Storefront if they have stolen user credentials.</p>
<p><a href="https://sysadminguides.org/2018/05/21/setup-citrix-netscaler-client-authentication-using-a-windows-ca/" rel="nofollow">https://sysadminguides.org/2018/05/21/setup-citrix-netscaler-client-authentication-using-a-windows-ca/</a></p>
<p><em> </em></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Thanks for reading &#8211; feel free to follow and stay updated <img src="https://s0.wp.com/wp-content/mu-plugins/wpcom-smileys/twemoji/2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <a class="genericon genericon-facebook" href="https://www.facebook.com/sysadminguides/" target="_blank" rel="noopener noreferrer"><span class="screen-reader-text">View sysadminguides’s profile on Facebook </span></a><a class="genericon genericon-twitter" href="https://twitter.com/GuidesSysadmin/" target="_blank" rel="noopener noreferrer"><span class="screen-reader-text">View GuidesSysadmin’s profile on Twitter </span></a><a class="genericon genericon-googleplus" href="https://plus.google.com/u/0/115372466162675927272/" target="_blank" rel="noopener noreferrer"><span class="screen-reader-text">View 115372466162675927272’s profile on Google+</span></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://sysadminguides.wordpress.com/2018/05/01/setup-citrix-netscaler-ssl-without-dns-records-using-a-public-ip-and-a-windows-ca/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3386</post-id>
		<media:content url="https://1.gravatar.com/avatar/4c21b4a8fb07c2a3833a81482c5b545ec72822b1d80e2f61325bf24ea61bc544?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sysadminguides</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_13-49-41.png" medium="image">
			<media:title type="html">SSL Certificate wizard</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_13-51-41.png" medium="image">
			<media:title type="html">Create Key Netscaler</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_13-56-53.png" medium="image">
			<media:title type="html">Net scaler create cerificate signing request</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/winscp_2018-04-29_13-58-51.png" medium="image">
			<media:title type="html">WinSCP</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/winscp_2018-04-29_13-58-211.png" medium="image">
			<media:title type="html">WinSCP</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-01.png" medium="image">
			<media:title type="html">Active Directory Certificate Services</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-09-27.png" medium="image">
			<media:title type="html">firefox_2018-04-29_14-09-27</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-10-21.png" medium="image">
			<media:title type="html">CSR Certificate request</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-11-541.png" medium="image">
			<media:title type="html">BASE 64 encoded</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-18-25.png" medium="image">
			<media:title type="html">Install Certificate NetScaler</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-04-29_14-20-31.png" medium="image">
			<media:title type="html">Net Scaler install CA</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-01_02-51-14.png" medium="image">
			<media:title type="html">VPN Virtual Server</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-01_02-51-19.png" medium="image">
			<media:title type="html">firefox_2018-05-01_02-51-19</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/firefox_2018-05-01_02-51-331.png" medium="image">
			<media:title type="html">NetScaler Gateway Settings</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/vpxclient_2018-05-01_03-01-49.png" medium="image">
			<media:title type="html">NetScaler Storefront</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/05/mmc_2018-05-01_03-05-43.png" medium="image">
			<media:title type="html">Certificates CA MMC</media:title>
		</media:content>
	</item>
		<item>
		<title>Fix &#8211; Citrix NetScaler Reboot &#8211; License Problems &#8211; System Time Resets / Reverts</title>
		<link>https://sysadminguides.wordpress.com/2018/03/25/fix-citrix-netscaler-rebooting-license-problems-system-time-resets-reverts/</link>
					<comments>https://sysadminguides.wordpress.com/2018/03/25/fix-citrix-netscaler-rebooting-license-problems-system-time-resets-reverts/#comments</comments>
		
		<dc:creator><![CDATA[Cameron Yates]]></dc:creator>
		<pubDate>Sun, 25 Mar 2018 03:13:51 +0000</pubDate>
				<category><![CDATA[Citrix]]></category>
		<category><![CDATA[Citrix NetScaler]]></category>
		<category><![CDATA[License]]></category>
		<category><![CDATA[License problems]]></category>
		<category><![CDATA[Lisence not working]]></category>
		<category><![CDATA[NetScaler]]></category>
		<category><![CDATA[Rebooting]]></category>
		<category><![CDATA[SSL certs]]></category>
		<category><![CDATA[SSL certs removed]]></category>
		<category><![CDATA[system time]]></category>
		<category><![CDATA[system time changes]]></category>
		<category><![CDATA[system time resets]]></category>
		<category><![CDATA[system time reverts]]></category>
		<guid isPermaLink="false">http://sysadminguides.org/?p=3347</guid>

					<description><![CDATA[In this post we are going to look at a problem involving non-retail licenses where the system time changes after a reboot, causing license &#38; SSL cert issues. The underlying problem normally involves one of these license types (partner, demo, internal only, express and developer edition licenses), the reason being is that these licenses are &#8230; <a href="https://sysadminguides.wordpress.com/2018/03/25/fix-citrix-netscaler-rebooting-license-problems-system-time-resets-reverts/" class="more-link">Continue reading <span class="screen-reader-text">Fix &#8211; Citrix NetScaler Reboot &#8211; License Problems &#8211; System Time Resets /&#160;Reverts</span></a>]]></description>
										<content:encoded><![CDATA[<h3>In this post we are going to look at a problem involving non-retail licenses where the system time changes after a reboot, causing license &amp; SSL cert issues.</h3>
<p>The underlying problem normally involves one of these license types (partner, demo, internal only, express and developer edition licenses), the reason being is that these licenses are normally issued with a start and end date. Every time the NetScaler boots it will check the System Time with these dates to verify whether or not your license is still valid.</p>
<p>In my case the evaluation Netscaler ISO I received from Citrix had a default system date of April 2017 (most likely it&#8217;s creation date). This meant that every time I&#8217;d restart the NetScaler rather than doing a warm boot the system time would reset to a date before the license start date, not only would this invalidate the license losing me all the licensed features, my SSL certs would also be removed.</p>
<p>Configuring the system time using shell commands, such as:</p>
<blockquote><p>date +val 1803250328</p></blockquote>
<p>Which sets the time to 03:29 25 March 2018 or configuring the NTP Server to googles public NTP sever time.google.com. Would only work to get the server back to the current server time and re-licensed after a warm reboot.</p>
<p>However, as stated a normal reboot would still reset the system time back to a period not valid under the start/end of date attached to the license and even though the NTP server settings stayed, it only re-synced the system time after the boot-up checks.</p>
<p><strong>As stated by Citrix, this is completely intended &#8211;</strong></p>
<p><a href="https://support.citrix.com/article/CTX122271" rel="nofollow">https://support.citrix.com/article/CTX122271</a></p>
<blockquote><p>When making customizations to a NetScaler or NetScaler Gateway appliance, the customization changes are usually lost when you restart the appliance. This is by design. This is because a NetScaler appliance runs from RAM disk and loads from a flash device.</p></blockquote>
<p><a href="https://support.citrix.com/article/CTX200421" rel="nofollow">https://support.citrix.com/article/CTX200421</a></p>
<blockquote><p>When the license on a NetScaler expires the configuration is altered. Non-licensed features are disabled and certificates greater than 512 bits are removed from the configuration</p></blockquote>
<p><strong>The Fix / Work Around &#8211; Using the nsbefore.sh file.<br />
</strong></p>
<p>The <strong>nsbefore.sh</strong> file runs before the network components or packet engine is initialized.</p>
<p>It is one of the three files that can be utilized to retain the changes and customization in a NetScaler appliance when the NetScaler applicant restarts. (Also applies to VM&#8217;s running the software version)</p>
<p>The other two being: (In this case they are un-needed)</p>
<ul>
<li>The <strong>nsafter.sh</strong> file runs after the network or packet engine is initialized.</li>
<li>The <strong>rc.netscaler</strong> file runs after the ns.conf file is loaded.</li>
</ul>
<p><strong>First we need to get into the file directory of the Citrix NetScaler &#8211;<br />
</strong></p>
<p>One way to achieve this is to use a program called WinSCP to create a session over the SFTP File protocol.</p>
<p>As shown in the image below, create a new session and enter the IP or hostname of your NetScaler, followed by your username and password.</p>
<p>(Yes I know I&#8217;m using the default username/password, don&#8217;t worry this is my demo kit <img src="https://s0.wp.com/wp-content/mu-plugins/wpcom-smileys/twemoji/2/72x72/1f609.png" alt="😉" class="wp-smiley" style="height: 1em; max-height: 1em;" /> )</p>
<p><img loading="lazy" data-attachment-id="3349" data-permalink="https://sysadminguides.wordpress.com/2018/03/25/fix-citrix-netscaler-rebooting-license-problems-system-time-resets-reverts/winscp-login-session/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/winscp-login-session.png" data-orig-size="628,424" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="WinSCP login session" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/winscp-login-session.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/winscp-login-session.png?w=628" class="alignnone  wp-image-3349" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/winscp-login-session.png?w=568&#038;h=384" alt="WinSCP login session" width="568" height="384" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/winscp-login-session.png?w=568&amp;h=383 568w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/winscp-login-session.png?w=150&amp;h=101 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/winscp-login-session.png?w=300&amp;h=203 300w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/winscp-login-session.png 628w" sizes="(max-width: 568px) 100vw, 568px" /></p>
<p>Navigate to /nsconfig/ and <span style="color:#ff0000;">create</span> a file called <strong>nsbefore.sh</strong> (you can do this within the application by right clicking)</p>
<p><img loading="lazy" data-attachment-id="3350" data-permalink="https://sysadminguides.wordpress.com/2018/03/25/fix-citrix-netscaler-rebooting-license-problems-system-time-resets-reverts/nsbefore-sh/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/nsbefore-sh.png" data-orig-size="507,510" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="nsbefore.sh" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/nsbefore-sh.png?w=298" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/nsbefore-sh.png?w=507" class="alignnone  wp-image-3350" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/nsbefore-sh.png?w=425&#038;h=427" alt="nsbefore.sh" width="425" height="427" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/nsbefore-sh.png?w=425&amp;h=428 425w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/nsbefore-sh.png?w=150&amp;h=150 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/nsbefore-sh.png?w=298&amp;h=300 298w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/nsbefore-sh.png 507w" sizes="(max-width: 425px) 100vw, 425px" /></p>
<p>After you have created the file &#8211; double click it and added the contents</p>
<blockquote><p>date +val 1803250215</p></blockquote>
<p>This command will make sure that before any licenses checks are initiated during boot-up the system time will be set to 03:29 25 March 2018.</p>
<p>If you want to set the time to something different (apologies if the article has aged by the time you are reading it) following the format below, change the numbers to suit your needs.</p>
<blockquote><p>date +val YYMMDDHHMM<br />
<strong>Where:</strong><br />
YY = Year &#8211; MM = Month &#8211; DD = Day &#8211; HH = Hour &#8211; MM = Minutes</p></blockquote>
<p>As long as it&#8217;s within the start &amp; end date of your license, it will do. If setup, your NTP settings will sync it to current time after the reboot has occurred.</p>
<p><img loading="lazy" data-attachment-id="3351" data-permalink="https://sysadminguides.wordpress.com/2018/03/25/fix-citrix-netscaler-rebooting-license-problems-system-time-resets-reverts/system-date-change/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/system-date-change.png" data-orig-size="540,175" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="system date change" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/system-date-change.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/system-date-change.png?w=540" class="alignnone size-full wp-image-3351" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/system-date-change.png?w=676" alt="system date change"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/system-date-change.png 540w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/system-date-change.png?w=150&amp;h=49 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/system-date-change.png?w=300&amp;h=97 300w" sizes="(max-width: 540px) 100vw, 540px" /></p>
<p><strong>Once you have saved the file you are all set &#8211;</strong> Now when you restart your NetScaler one of the first operations preformed will be the modification of the system time to one that doesn&#8217;t invalidate your license during the proceeding license checks.</p>
<p>In theory this could also be used to avoid your license ever expiring, however if the current time is past your end of date for that license, you will have to keep your preset system time; making sure to avoid syncing the NetScaler with an NTP server. (Not ideal and may cause problems)</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Thanks for reading &#8211; feel free to follow and stay updated <img src="https://s0.wp.com/wp-content/mu-plugins/wpcom-smileys/twemoji/2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <a class="genericon genericon-facebook" href="https://www.facebook.com/sysadminguides/" target="_blank" rel="noopener noreferrer"><span class="screen-reader-text">View sysadminguides’s profile on Facebook </span></a><a class="genericon genericon-twitter" href="https://twitter.com/GuidesSysadmin/" target="_blank" rel="noopener noreferrer"><span class="screen-reader-text">View GuidesSysadmin’s profile on Twitter </span></a><a class="genericon genericon-googleplus" href="https://plus.google.com/u/0/115372466162675927272/" target="_blank" rel="noopener noreferrer"><span class="screen-reader-text">View 115372466162675927272’s profile on Google+</span></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://sysadminguides.wordpress.com/2018/03/25/fix-citrix-netscaler-rebooting-license-problems-system-time-resets-reverts/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3347</post-id>
		<media:content url="https://1.gravatar.com/avatar/4c21b4a8fb07c2a3833a81482c5b545ec72822b1d80e2f61325bf24ea61bc544?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sysadminguides</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/winscp-login-session.png" medium="image">
			<media:title type="html">WinSCP login session</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/nsbefore-sh.png" medium="image">
			<media:title type="html">nsbefore.sh</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/system-date-change.png" medium="image">
			<media:title type="html">system date change</media:title>
		</media:content>
	</item>
		<item>
		<title>Automatic Steam / ARK Server Updates &#038; Start Up using PowerShell</title>
		<link>https://sysadminguides.wordpress.com/2018/03/20/automatic-steam-ark-server-updates-start-up-using-powershell/</link>
					<comments>https://sysadminguides.wordpress.com/2018/03/20/automatic-steam-ark-server-updates-start-up-using-powershell/#comments</comments>
		
		<dc:creator><![CDATA[Cameron Yates]]></dc:creator>
		<pubDate>Tue, 20 Mar 2018 11:06:27 +0000</pubDate>
				<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Ark Automatic updates]]></category>
		<category><![CDATA[Ark Server]]></category>
		<category><![CDATA[automatic game server updates]]></category>
		<category><![CDATA[powershell script]]></category>
		<category><![CDATA[Steam automatic server updates]]></category>
		<category><![CDATA[Steam server]]></category>
		<category><![CDATA[SteamCMD]]></category>
		<category><![CDATA[updates]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">http://sysadminguides.org/?p=3313</guid>

					<description><![CDATA[In this post we are going to look at automating a Steam server&#8217;s maintenance using STEAMcmd and Powershell. The game servers highlighted in the below article will be a collection of Ark game servers. Slightly different than the usual enterprise IT content one would be familiar with on this blog. However, as of right now &#8230; <a href="https://sysadminguides.wordpress.com/2018/03/20/automatic-steam-ark-server-updates-start-up-using-powershell/" class="more-link">Continue reading <span class="screen-reader-text">Automatic Steam / ARK Server Updates &#38; Start Up using&#160;PowerShell</span></a>]]></description>
										<content:encoded><![CDATA[<h3>In this post we are going to look at automating a Steam server&#8217;s maintenance using STEAMcmd and Powershell. The game servers highlighted in the below article will be a collection of Ark game servers.</h3>
<p>Slightly different than the usual enterprise IT content one would be familiar with on this blog. However, as of right now I have been running multiple ARK Steam servers for around a year with very minimal downtime. I attribute this long period of time to the fact that the maintenance is all automated using STEAMcmd in combination with PowerShell, thus resulting in very little attention from myself (months apart).</p>
<p>I figure if it&#8217;s working well for me, it could also work well for someone else who may be looking to automate their Steam server maintenance without the hassle of configuring ASM (ARK server software) or using some other form of third party software.</p>
<p>Before we get started, please bare in mind this will be focusing on the ARK game server, however if your Steam server uses STEAMCmd for installation, configuration and start-up, this process can be tweaked for the same functionality.</p>
<p><strong>Firstly &#8211;</strong></p>
<p>On your server/desktop create a folder on your C: drive, call it anything you want. In my case I called it &#8216;Startup&#8217; &#8211; this is going to be the location for your future start-up scripts / batch files.</p>
<p><img loading="lazy" data-attachment-id="3317" data-permalink="https://sysadminguides.wordpress.com/2018/03/20/automatic-steam-ark-server-updates-start-up-using-powershell/start-up/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/start-up.png" data-orig-size="797,213" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Start-up" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/start-up.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/start-up.png?w=676" class="alignnone  wp-image-3317" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/start-up.png?w=609&#038;h=163" alt="Start-up folder" width="609" height="163" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/start-up.png?w=609&amp;h=163 609w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/start-up.png?w=150&amp;h=40 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/start-up.png?w=300&amp;h=80 300w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/start-up.png?w=768&amp;h=205 768w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/start-up.png 797w" sizes="(max-width: 609px) 100vw, 609px" /></p>
<p>After creating the folder locate the SteamCMD folder in your game server (Ark Server) files. In my case the filepath is <span style="color:#800080;">&#8216;C:\ArkServer\Engine\Binaries\ThirdParty\SteamCMD\Win64&#8217;</span></p>
<p><strong>Once located create a txt file in the folder location &#8211; </strong>(I named the file &#8216;ark1&#8217;) and put the following contents inside of it.</p>
<blockquote><p>@ShutdownOnFailedCommand 1<br />
@NoPromptForPassword 1<br />
logon anonymous<br />
force_install_dir C:\ArkServer<br />
app_update 376030 validate<br />
quit</p></blockquote>
<p><span style="color:#ff0000;">**</span>Make sure to change the install directory (force_install_dir) to the file location of your gaming server<br />
<span style="color:#ff0000;">**</span>Also make sure the app_update number is the correct number for your particular gaming server, 376030 is Arks dedicated installation/update number.</p>
<p><img loading="lazy" data-attachment-id="3319" data-permalink="https://sysadminguides.wordpress.com/2018/03/20/automatic-steam-ark-server-updates-start-up-using-powershell/ark-1/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/ark-1.png" data-orig-size="588,325" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Ark text file" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/ark-1.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/ark-1.png?w=588" class="alignnone  wp-image-3319" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/ark-1.png?w=523&#038;h=289" alt="Ark text file" width="523" height="289" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/ark-1.png?w=523&amp;h=289 523w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/ark-1.png?w=150&amp;h=83 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/ark-1.png?w=300&amp;h=166 300w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/ark-1.png 588w" sizes="(max-width: 523px) 100vw, 523px" /></p>
<p>In short this text file contains the SteamCMD commands required to initiate a server update check, and if found the server update itself.</p>
<p><strong>Next step involves creating a Batch file in your &#8216;Start up&#8217; folder</strong> &#8211; I named the batch file &#8216;UpdateServer.bat&#8217; &#8211; This batch file will be used by the soon to be created PowerShell script to force SteamCMD to run using the commands we laid out in the &#8216;ark1&#8217; txt file.</p>
<p>The contents of the batch file should be &#8211;</p>
<blockquote><p>steamcmd +runscript ark1.txt<br />
exit</p></blockquote>
<p><span style="color:#ff0000;">**</span> To save the contents of a new page in notepad as a batch file you need to make sure &#8216;All Files&#8217; is selected on the &#8216;Saves as types drop down&#8217; and &#8216;.bat&#8217; is used at the end of the file name&#8217;</p>
<p>As shown in the image below &#8211;</p>
<p><img loading="lazy" data-attachment-id="3322" data-permalink="https://sysadminguides.wordpress.com/2018/03/20/automatic-steam-ark-server-updates-start-up-using-powershell/bat-file/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/bat-file.png" data-orig-size="1250,589" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Batch file" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/bat-file.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/bat-file.png?w=676" class="alignnone size-full wp-image-3322" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/bat-file.png?w=676" alt="Batch file"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/bat-file.png 1250w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/bat-file.png?w=150&amp;h=71 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/bat-file.png?w=300&amp;h=141 300w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/bat-file.png?w=768&amp;h=362 768w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/bat-file.png?w=1024&amp;h=483 1024w" sizes="(max-width: 1250px) 100vw, 1250px" /></p>
<p><strong>After that you are going to want to put your server start-up batch files inside this folder location &#8211; </strong>as shown in the image above my game servers are Abber, Rag, Rag-PVP, TheCenter and TheIsland.</p>
<p>Just for clarification, an example of the contents of one of these server start-up batch files is &#8211;</p>
<blockquote><p>start ShooterGameServer.exe Aberration_P?SessionName=PVE-NoWipes-Gath6x/Bre6x/Tam3x/Exp10x/S+/Stacking[Clustered]?Port=50025?AltSaveDirectoryName=AbberSaved?<br />
QueryPort=50026?MaxPlayers=100?RCONEnabled=True?RCONPort=32335?<br />
ServerAdminPassword=Helloboss?OverrideOfficialDifficulty=5.0 -clusterid=Arkserver1 -automanagedmods -AutoDestroyStructures -OverrideOfficialDifficulty=5.0 -ForceRespawnDinos</p></blockquote>
<p><strong>Now you have moved your server startup files into the &#8216;Start-up&#8217; folder location</strong> &#8211; you can proceed onto the second to last step of creating the PowerShell script using Windows PowerShell ISE.  &#8211; I named the script &#8216;ServerScheduledRestart.ps1&#8217;</p>
<p>The contents should include some thing similar to the contents of mine shown below &#8211;<!-- HTML generated using hilite.me --></p>
<div style="background:#f8f8f8;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;">
<pre style="margin:0;line-height:125%;"><span style="color:#19177c;">$ErrorActionPreference</span> = <span style="color:#ba2121;">'SilentlyContinue'</span> <span style="color:#408080;font-style:italic;">#If an error occurs continue the script</span>

<span style="color:#19177c;">$runpathUpdate</span> = <span style="color:#ba2121;">"C:\Startup\UpdateServer"</span> 
<span style="color:#19177c;">$runpathRag</span> = <span style="color:#ba2121;">"C:\Startup\Rag"</span> 
<span style="color:#19177c;">$runpathAbber</span> = <span style="color:#ba2121;">"C:\Startup\Abber"</span> 
<span style="color:#19177c;">$runpathTheIsland</span> = <span style="color:#ba2121;">"C:\Startup\TheIsland"</span> 

<span style="color:#19177c;">$ProcessName1</span> = <span style="color:#ba2121;">"ShooterGame"</span> <span style="color:#408080;font-style:italic;">#server process (arks process)</span>
<span style="color:#19177c;">$ProcessName2</span> = <span style="color:#ba2121;">"ShooterGameServer"</span> <span style="color:#408080;font-style:italic;">#server process (arks process)</span>
<span style="color:#19177c;">$Process1</span> = <span style="color:#008000;">Get-process</span> <span style="color:#19177c;">$ProcessName1</span> -ErrorAction SilentlyContinue
<span style="color:#19177c;">$Process2</span> = <span style="color:#008000;">Get-process</span> <span style="color:#19177c;">$ProcessName2</span> -ErrorAction SilentlyContinue


<span style="color:#008000;">Start-Process</span> -FilePath <span style="color:#19177c;">$runpathUpdate</span> <span style="color:#408080;font-style:italic;">#Runs server update batch file</span>

<span style="color:#008000;">Start-Sleep</span> -s 700 <span style="color:#408080;font-style:italic;">#Waits 700 seconds before continuing, as to give SteamCMD time to check/update the server files</span>

<span style="color:#408080;font-style:italic;">#Ends all the ARK Server processes</span>
<span style="color:#008000;font-weight:bold;">While</span> (<span style="color:#19177c;">$Process1</span>.ProcessName <span style="color:#666666;">-and</span> <span style="color:#19177c;">$Process2</span>.ProcessName <span style="color:#666666;">-ne</span> <span style="color:#19177c;">$Null</span>){
<span style="color:#19177c;">$Process1</span> | <span style="color:#008000;">Stop-Process</span> -Force
<span style="color:#19177c;">$Process2</span> | <span style="color:#008000;">Stop-Process</span> -Force
}
echo <span style="color:#ba2121;">"Services are now stopped - Starting batch files"</span>

<span style="color:#008000;">Start-Sleep</span> -s 10

<span style="color:#008000;">Start-Process</span> -FilePath <span style="color:#19177c;">$runpathAbber</span> <span style="color:#408080;font-style:italic;">#Runs the Abberations server start-up batch file</span>

<span style="color:#008000;">Start-Sleep</span> -s 300

<span style="color:#008000;">Start-Process</span> -FilePath <span style="color:#19177c;">$runpathRag</span> <span style="color:#408080;font-style:italic;">#Runs the Ragnorak server start-up batch file</span>

<span style="color:#008000;">Start-Sleep</span> -s 350

<span style="color:#008000;">Start-Process</span> -FilePath <span style="color:#19177c;">$runpathTheIsland</span> <span style="color:#408080;font-style:italic;">#Runs TheIsland server start-up batch file</span>

<span style="color:#008000;">Start-Sleep</span> -s 30
</pre>
</div>
<p>&nbsp;</p>
<p>In case you&#8217;re unfamiliar with PowerShell ISE &#8211; please see the image below, this is what your script should look like inside the program, once copied and tweaked you can go to File on the top left and save the ps1 to your &#8216;Startup&#8217; folder.</p>
<p><img loading="lazy" data-attachment-id="3674" data-permalink="https://sysadminguides.wordpress.com/2018/03/20/automatic-steam-ark-server-updates-start-up-using-powershell/powershell/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/powershell.png" data-orig-size="932,773" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Steam Server" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/powershell.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/powershell.png?w=676" class="alignnone  wp-image-3674" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/powershell.png?w=731&#038;h=606" alt="Steam Server" width="731" height="606" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/powershell.png?w=731&amp;h=606 731w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/powershell.png?w=150&amp;h=124 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/powershell.png?w=300&amp;h=249 300w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/powershell.png?w=768&amp;h=637 768w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/powershell.png 932w" sizes="(max-width: 731px) 100vw, 731px" /></p>
<p><strong>Once your script is created and in the right location &#8211;</strong> it&#8217;s time to move onto the final step, which involves setting up a scheduled task to run the &#8216;ServerScheduledRestart.ps1&#8217; PowerShell script every night or early morning.</p>
<p>Firstly navigate to &#8216;Task Scheduler&#8217; in your Windows OS</p>
<p><img loading="lazy" data-attachment-id="3329" data-permalink="https://sysadminguides.wordpress.com/2018/03/20/automatic-steam-ark-server-updates-start-up-using-powershell/task-logo/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-logo.png" data-orig-size="207,68" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Task Scheduler" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-logo.png?w=207" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-logo.png?w=207" class="alignnone size-full wp-image-3329" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-logo.png?w=676" alt="Task Scheduler"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-logo.png 207w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-logo.png?w=150&amp;h=49 150w" sizes="(max-width: 207px) 100vw, 207px" /></p>
<p>Then click on &#8216;Create a Basic Task&#8217; on the top right. From here just go through the easy wizard.</p>
<p>Give the scheduled task a name &#8211;</p>
<p><img loading="lazy" data-attachment-id="3330" data-permalink="https://sysadminguides.wordpress.com/2018/03/20/automatic-steam-ark-server-updates-start-up-using-powershell/new-task/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/new-task.png" data-orig-size="708,494" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="New task" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/new-task.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/new-task.png?w=676" class="alignnone  wp-image-3330" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/new-task.png?w=551&#038;h=384" alt="New task" width="551" height="384" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/new-task.png?w=551&amp;h=384 551w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/new-task.png?w=150&amp;h=105 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/new-task.png?w=300&amp;h=209 300w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/new-task.png 708w" sizes="(max-width: 551px) 100vw, 551px" /></p>
<p>Then select the start date and time &#8211;</p>
<p><img loading="lazy" data-attachment-id="3331" data-permalink="https://sysadminguides.wordpress.com/2018/03/20/automatic-steam-ark-server-updates-start-up-using-powershell/task-time/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-time.png" data-orig-size="709,495" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Task Time" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-time.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-time.png?w=676" class="alignnone  wp-image-3331" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-time.png?w=555&#038;h=388" alt="Task Time" width="555" height="388" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-time.png?w=555&amp;h=387 555w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-time.png?w=150&amp;h=105 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-time.png?w=300&amp;h=209 300w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-time.png 709w" sizes="(max-width: 555px) 100vw, 555px" /></p>
<p>Next select the &#8216;start a program&#8217; radio button, followed by inputting the following text, including the filepath of your PowerShell script &#8211;</p>
<p><img loading="lazy" data-attachment-id="3332" data-permalink="https://sysadminguides.wordpress.com/2018/03/20/automatic-steam-ark-server-updates-start-up-using-powershell/task-start-a-program-file-ps1/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-start-a-program-file-ps1.png" data-orig-size="710,495" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Task start a program file ps1" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-start-a-program-file-ps1.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-start-a-program-file-ps1.png?w=676" class="alignnone  wp-image-3332" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-start-a-program-file-ps1.png?w=557&#038;h=388" alt="Task start a program file ps1" width="557" height="388" srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-start-a-program-file-ps1.png?w=557&amp;h=388 557w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-start-a-program-file-ps1.png?w=150&amp;h=105 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-start-a-program-file-ps1.png?w=300&amp;h=209 300w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-start-a-program-file-ps1.png 710w" sizes="(max-width: 557px) 100vw, 557px" /></p>
<p>After that click Next and Finish.</p>
<p>If done successfully you should see your scheduled task with the following actions as shown in the image below &#8211;<br />
<img loading="lazy" data-attachment-id="3334" data-permalink="https://sysadminguides.wordpress.com/2018/03/20/automatic-steam-ark-server-updates-start-up-using-powershell/task-completed/" data-orig-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-completed.png" data-orig-size="765,280" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Task completed" data-image-description="" data-image-caption="" data-medium-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-completed.png?w=300" data-large-file="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-completed.png?w=676" class="alignnone size-full wp-image-3334" src="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-completed.png?w=676" alt="Task completed"   srcset="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-completed.png 765w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-completed.png?w=150&amp;h=55 150w, https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-completed.png?w=300&amp;h=110 300w" sizes="(max-width: 765px) 100vw, 765px" /></p>
<hr />
<p>Thats it! All the steps are now completed. Your Steam server(s) should now update and restart everyday at the time you chose for the foreseeable future.</p>
<p>Concerning ARK servers, to make sure your mods auto-update on start-up, add &#8216;<span style="color:#800080;">-automanagedmods</span>&#8216; to your start-up batch file.</p>
<p>Thanks for reading &#8211; feel free to follow and stay updated <img src="https://s0.wp.com/wp-content/mu-plugins/wpcom-smileys/twemoji/2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <a class="genericon genericon-facebook" href="https://www.facebook.com/sysadminguides/" target="_blank" rel="noopener noreferrer"><span class="screen-reader-text">View sysadminguides’s profile on Facebook </span></a><a class="genericon genericon-twitter" href="https://twitter.com/GuidesSysadmin/" target="_blank" rel="noopener noreferrer"><span class="screen-reader-text">View GuidesSysadmin’s profile on Twitter </span></a><a class="genericon genericon-googleplus" href="https://plus.google.com/u/0/115372466162675927272/" target="_blank" rel="noopener noreferrer"><span class="screen-reader-text">View 115372466162675927272’s profile on Google+</span></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://sysadminguides.wordpress.com/2018/03/20/automatic-steam-ark-server-updates-start-up-using-powershell/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3313</post-id>
		<media:content url="https://1.gravatar.com/avatar/4c21b4a8fb07c2a3833a81482c5b545ec72822b1d80e2f61325bf24ea61bc544?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sysadminguides</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/start-up.png" medium="image">
			<media:title type="html">Start-up folder</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/ark-1.png" medium="image">
			<media:title type="html">Ark text file</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/bat-file.png" medium="image">
			<media:title type="html">Batch file</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/powershell.png" medium="image">
			<media:title type="html">Steam Server</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-logo.png" medium="image">
			<media:title type="html">Task Scheduler</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/new-task.png" medium="image">
			<media:title type="html">New task</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-time.png" medium="image">
			<media:title type="html">Task Time</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-start-a-program-file-ps1.png" medium="image">
			<media:title type="html">Task start a program file ps1</media:title>
		</media:content>

		<media:content url="https://sysadminguides.wordpress.com/wp-content/uploads/2018/03/task-completed.png" medium="image">
			<media:title type="html">Task completed</media:title>
		</media:content>
	</item>
	</channel>
</rss>
