<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>snap-in &#8211; Carl Webster</title>
	<atom:link href="https://www.carlwebster.com/tag/snap-in/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.carlwebster.com</link>
	<description>The Accidental Citrix Admin - The site for those who find themselves supporting Citrix involuntarily or accidentally</description>
	<lastBuildDate>Mon, 06 Sep 2021 11:53:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
<site xmlns="com-wordpress:feed-additions:1">42228915</site>	<item>
		<title>Error in the Provisioning Services 7.0 PowerShell Programmer Guide for Windows 8 and Server 2012</title>
		<link>https://www.carlwebster.com/error-in-the-provisioning-services-7-0-powershell-programmer-guide-for-windows-8-and-server-2012/</link>
		
		<dc:creator><![CDATA[Carl Webster]]></dc:creator>
		<pubDate>Sat, 29 Jun 2013 15:36:44 +0000</pubDate>
				<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[PVS]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[pvs7]]></category>
		<category><![CDATA[snap-in]]></category>
		<guid isPermaLink="false">https://www.carlwebster.com/?p=5820</guid>

					<description><![CDATA[In updating the PVS documentation script to add support for PVS7, I ran into an issue with getting the McliPSSnapin.dll registered.  This brief article explains how to resolve this issue.&#8230;]]></description>
										<content:encoded><![CDATA[<p>In updating the PVS documentation script to add support for PVS7, I ran into an issue with getting the McliPSSnapin.dll registered.  This brief article explains how to resolve this issue.</p>
<p><span id="more-5820"></span></p>
<p>The Provisioning Services 7.0 PowerShell Programmer Guide is available <a title="Provisioning Services 7.0 PowerShell Programmer Guide " href="http://support.citrix.com/article/CTX138045" target="_blank" rel="noopener">here</a>.</p>
<p>On page 7, the instructions to install the PowerShell Snap-in are not correct for Windows 8 or Server 2012.</p>
<p>The original instructions work for Server 2003, Server 2008, Server 2008 R2, Windows XP, and Windows 7.</p>
<blockquote><p><b>Installation of PowerShell Snap-In</b></p>
<p>The PowerShell snap-in (McliPSSnapIn.dll) can be installed using the Provisioning Server Console install.</p>
<p>If it later needs to be registered in PowerShell, this can be manually done by running one of the following commands at the DOS command prompt:</p>
<p><span style="text-decoration: underline;">F</span><span style="text-decoration: underline;">or 32-bit</span></p>
<p><b><i>%</i></b><b><i>s</i></b><b><i>ystemroot%\Microsoft.NET\Framework\v2.0.50727\installutil.exe McliPSSnapIn.dll</i></b></p>
<p><span style="text-decoration: underline;">For 64-bit</span></p>
<p><b><i>%</i></b><b><i>s</i></b><b><i>ystemroot%\Microsoft.NET\Framework64\v2.0.50727\installutil.exe McliPSSnapIn.dll</i></b></p></blockquote>
<p>The correct instructions for Windows 8 and Server 2012 are:</p>
<p>For 32-bit</p>
<p><b><i>%</i></b><b><i>s</i></b><b><i>ystemroot%\Microsoft.NET\Framework\v4.0.30319\installutil.exe McliPSSnapIn.dll</i></b></p>
<p>For 64-bit</p>
<p><b><i>%</i></b><b><i>s</i></b><b><i>ystemroot%\Microsoft.NET\Framework64\v4.0.30319\installutil.exe McliPSSnapIn.dll</i></b></p>
<p>If you attempt to run the original command, you get:</p>
<figure id="attachment_49455" aria-describedby="caption-attachment-49455" style="width: 677px" class="wp-caption alignnone"><a href="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure1.png"><img fetchpriority="high" decoding="async" class="size-full wp-image-49455" src="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure1.png" alt="Figure 1" width="677" height="343" srcset="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure1.png 677w, https://www.carlwebster.com/wp-content/uploads/2013/06/Figure1-530x269.png 530w, https://www.carlwebster.com/wp-content/uploads/2013/06/Figure1-600x304.png 600w" sizes="(max-width: 677px) 100vw, 677px" /></a><figcaption id="caption-attachment-49455" class="wp-caption-text">Figure 1</figcaption></figure>
<p>That is because there is nothing in the v2.0.50727 folder.</p>
<figure id="attachment_49457" aria-describedby="caption-attachment-49457" style="width: 677px" class="wp-caption alignnone"><a href="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure2.png"><img decoding="async" class="size-full wp-image-49457" src="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure2.png" alt="Figure 2" width="677" height="343" srcset="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure2.png 677w, https://www.carlwebster.com/wp-content/uploads/2013/06/Figure2-530x269.png 530w, https://www.carlwebster.com/wp-content/uploads/2013/06/Figure2-600x304.png 600w" sizes="(max-width: 677px) 100vw, 677px" /></a><figcaption id="caption-attachment-49457" class="wp-caption-text">Figure 2</figcaption></figure>
<p>The InstallUtil.exe utility is in the v4.0.30319 folder.</p>
<figure id="attachment_49458" aria-describedby="caption-attachment-49458" style="width: 677px" class="wp-caption alignnone"><a href="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure3.png"><img decoding="async" class="size-full wp-image-49458" src="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure3.png" alt="Figure 3" width="677" height="343" srcset="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure3.png 677w, https://www.carlwebster.com/wp-content/uploads/2013/06/Figure3-530x269.png 530w, https://www.carlwebster.com/wp-content/uploads/2013/06/Figure3-600x304.png 600w" sizes="(max-width: 677px) 100vw, 677px" /></a><figcaption id="caption-attachment-49458" class="wp-caption-text">Figure 3</figcaption></figure>
<p>I am testing with 32-bit Windows 8, so I needed to run:</p>
<p><b><i>%</i></b><b><i>s</i></b><b><i>ystemroot%\Microsoft.NET\Framework\v4.0.30319\installutil.exe McliPSSnapIn.dll</i></b></p>
<figure id="attachment_49459" aria-describedby="caption-attachment-49459" style="width: 677px" class="wp-caption alignnone"><a href="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure4.png"><img loading="lazy" decoding="async" class="size-full wp-image-49459" src="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure4.png" alt="Figure 4" width="677" height="691" srcset="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure4.png 677w, https://www.carlwebster.com/wp-content/uploads/2013/06/Figure4-294x300.png 294w, https://www.carlwebster.com/wp-content/uploads/2013/06/Figure4-600x612.png 600w" sizes="auto, (max-width: 677px) 100vw, 677px" /></a><figcaption id="caption-attachment-49459" class="wp-caption-text">Figure 4</figcaption></figure>
<p>Now I can configure a remote connection to my PVS7 server and run an MCLI PowerShell command.</p>
<figure id="attachment_49460" aria-describedby="caption-attachment-49460" style="width: 677px" class="wp-caption alignnone"><a href="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure5.png"><img loading="lazy" decoding="async" class="size-full wp-image-49460" src="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure5.png" alt="Figure 5" width="677" height="343" srcset="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure5.png 677w, https://www.carlwebster.com/wp-content/uploads/2013/06/Figure5-530x269.png 530w, https://www.carlwebster.com/wp-content/uploads/2013/06/Figure5-600x304.png 600w" sizes="auto, (max-width: 677px) 100vw, 677px" /></a><figcaption id="caption-attachment-49460" class="wp-caption-text">Figure 5</figcaption></figure>
<p>I hope Citrix will correct the PVS7 PowerShell Programmer Guide.</p>
<p>Thanks</p>
<p>Webster</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">5820</post-id>	</item>
	</channel>
</rss>
