<?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>gMSA &#8211; Carl Webster</title>
	<atom:link href="https://www.carlwebster.com/tag/gmsa/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 12:06:20 +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>Provisioning Services 7 and Server 2012 Group Managed Service Account</title>
		<link>https://www.carlwebster.com/provisioning-services-7-and-server-2012-group-managed-service-account/</link>
					<comments>https://www.carlwebster.com/provisioning-services-7-and-server-2012-group-managed-service-account/#comments</comments>
		
		<dc:creator><![CDATA[Carl Webster]]></dc:creator>
		<pubDate>Sat, 29 Jun 2013 22:39:53 +0000</pubDate>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[PVS]]></category>
		<category><![CDATA[Server 2012]]></category>
		<category><![CDATA[gMSA]]></category>
		<category><![CDATA[group managed service account]]></category>
		<category><![CDATA[provisioning services 7]]></category>
		<category><![CDATA[pvs7]]></category>
		<category><![CDATA[server 2012]]></category>
		<guid isPermaLink="false">https://www.carlwebster.com/?p=5830</guid>

					<description><![CDATA[Citrix released Provisioning Services version 7 (PVS7) with support for running on Microsoft Windows Server 2012.  Server 2012 has a really nice new feature called Group Managed Service  Accounts (gMSA). &#8230;]]></description>
										<content:encoded><![CDATA[<p>Citrix released Provisioning Services version 7 (PVS7) with support for running on Microsoft Windows Server 2012.  Server 2012 has a really nice new feature called Group Managed Service  Accounts (gMSA).  Even though Citrix had to test installing PVS7 on Server 2012, I found that Citrix never tested using gMSA for the Stream or SOAP services.  This article is my attempt to see if PVS7 will allow a gMSA for the Stream and SOAP services.</p>
<p><span id="more-5830"></span></p>
<p>I have absolutely no idea if PVS7 running on Server 2012 will work with a gMSA or not.  Citrix says it <i>should</i> work, but the articles I have read from Microsoft make it seem like the application must be written to support and work with gMSA.  You will find out at the same time I do whether this experiment will work.</p>
<p>To get more information on gMSA, please read <a title="Windows Server 2012: Group Managed Service Accounts" href="http://blogs.technet.com/b/askpfeplat/archive/2012/12/17/windows-server-2012-group-managed-service-accounts.aspx" target="_blank" rel="noopener">this TechNet article</a>.</p>
<p>There are three requirements to use a gMSA:</p>
<ol>
<li>At least one Windows Server 2012 Domain Controller.</li>
<li>A Windows Server 2012 or Windows 8 computer with the ActiveDirectory PowerShell module to create/manage the gMSA.</li>
<li>A Windows Server 2012 or Windows 8 domain member to run/use the gMSA.</li>
</ol>
<p>I installed a Server 2012 Domain Controller into my lab environment, using it to create and manage the gMSA.</p>
<p><b>Step 1: Create the Key Distribution Services (KDS) Root Key</b></p>
<p>The KDS Root Key is used by the KDS service on the domain controller to generate passwords.  On my Server 2012 Domain Controller, I will run from an elevated PowerShell session:</p>
<p>Add-KDSRootKey –EffectiveImmediately</p>
<figure id="attachment_49462" aria-describedby="caption-attachment-49462" style="width: 597px" class="wp-caption alignnone"><a href="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure001.png"><img fetchpriority="high" decoding="async" class="size-full wp-image-49462" src="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure001.png" alt="Figure 1" width="597" height="252" srcset="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure001.png 597w, https://www.carlwebster.com/wp-content/uploads/2013/06/Figure001-530x224.png 530w" sizes="(max-width: 597px) 100vw, 597px" /></a><figcaption id="caption-attachment-49462" class="wp-caption-text">Figure 1</figcaption></figure>
<p>The TechNet article says the key can take up to 10 hours to replicate and take effect.  Since I only have one Server 2012 domain controller and two domain controllers in my lab, I am not worried about the replication time.  By the way, it took almost one hour in my lab before the key was usable!</p>
<p><b>Step 2: Create and configure the gMSA</b></p>
<p>I am going to create a Security Group containing my two PVS7 servers.  This security group will contain the computer accounts allowed to use the gMSA.</p>
<figure id="attachment_49464" aria-describedby="caption-attachment-49464" style="width: 451px" class="wp-caption alignnone"><a href="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure002.png"><img decoding="async" class="size-full wp-image-49464" src="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure002.png" alt="Figure 2" width="451" height="385" srcset="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure002.png 451w, https://www.carlwebster.com/wp-content/uploads/2013/06/Figure002-351x300.png 351w" sizes="(max-width: 451px) 100vw, 451px" /></a><figcaption id="caption-attachment-49464" class="wp-caption-text">Figure 2</figcaption></figure>
<figure id="attachment_49465" aria-describedby="caption-attachment-49465" style="width: 471px" class="wp-caption alignnone"><a href="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure003.png"><img decoding="async" class="size-full wp-image-49465" src="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure003.png" alt="Figure 3" width="471" height="258" /></a><figcaption id="caption-attachment-49465" class="wp-caption-text">Figure 3</figcaption></figure>
<figure id="attachment_49466" aria-describedby="caption-attachment-49466" style="width: 414px" class="wp-caption alignnone"><a href="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure004.png"><img loading="lazy" decoding="async" class="size-full wp-image-49466" src="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure004.png" alt="Figure 4" width="414" height="462" srcset="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure004.png 414w, https://www.carlwebster.com/wp-content/uploads/2013/06/Figure004-269x300.png 269w" sizes="auto, (max-width: 414px) 100vw, 414px" /></a><figcaption id="caption-attachment-49466" class="wp-caption-text">Figure 4</figcaption></figure>
<p>&nbsp;</p>
<p>Next, my two PVS7 servers need to be restarted to know they were added to the security group.</p>
<p>From the elevated PowerShell session on my Server 2012 domain controller, I run:</p>
<p>New-ADServiceAccount –Name PVS7StreamSOAP –DNSHostName PVS7StreamSOAP.websterslab.com –PrincipalsAllowedToRetrieveManagedPassword “PVS7gMSAGroup”</p>
<p><b>Note:</b> The <i>Name</i> is a NetBIOS name that must not be more than 15 characters.</p>
<figure id="attachment_49467" aria-describedby="caption-attachment-49467" style="width: 877px" class="wp-caption alignnone"><a href="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure005.png"><img loading="lazy" decoding="async" class="size-full wp-image-49467" src="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure005.png" alt="Figure 5" width="877" height="139" srcset="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure005.png 877w, https://www.carlwebster.com/wp-content/uploads/2013/06/Figure005-530x84.png 530w, https://www.carlwebster.com/wp-content/uploads/2013/06/Figure005-768x122.png 768w, https://www.carlwebster.com/wp-content/uploads/2013/06/Figure005-600x95.png 600w" sizes="auto, (max-width: 877px) 100vw, 877px" /></a><figcaption id="caption-attachment-49467" class="wp-caption-text">Figure 5</figcaption></figure>
<p>The gMSA now appears in the <i>Managed Service Accounts</i> OU in Active Directory Users and Computers.</p>
<figure id="attachment_49468" aria-describedby="caption-attachment-49468" style="width: 730px" class="wp-caption alignnone"><a href="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure006-1.png"><img loading="lazy" decoding="async" class="size-full wp-image-49468" src="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure006-1.png" alt="Figure 6" width="730" height="276" srcset="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure006-1.png 730w, https://www.carlwebster.com/wp-content/uploads/2013/06/Figure006-1-530x200.png 530w, https://www.carlwebster.com/wp-content/uploads/2013/06/Figure006-1-600x227.png 600w" sizes="auto, (max-width: 730px) 100vw, 730px" /></a><figcaption id="caption-attachment-49468" class="wp-caption-text">Figure 6</figcaption></figure>
<p><b>Step3: Configure the gMSA on the PVS7 host</b></p>
<p><b>Note:</b> The following requires the <i>Active Directory module for Windows PowerShell</i> to be installed on the PVS7 host.  It can be uninstalled after the test is successful.</p>
<p>From an elevated PowerShell session on the PVS7 server, I will run the following two cmdlets:</p>
<pre class="brush: powershell; title: ; notranslate">

Install-AdServiceAccount PVS7StreamSOAP

Test-AdServiceAccount PVS7StreamSOAP

</pre>
<figure id="attachment_49469" aria-describedby="caption-attachment-49469" style="width: 604px" class="wp-caption alignnone"><a href="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure007.png"><img loading="lazy" decoding="async" class="size-full wp-image-49469" src="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure007.png" alt="Figure 7" width="604" height="168" srcset="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure007.png 604w, https://www.carlwebster.com/wp-content/uploads/2013/06/Figure007-530x147.png 530w, https://www.carlwebster.com/wp-content/uploads/2013/06/Figure007-600x167.png 600w" sizes="auto, (max-width: 604px) 100vw, 604px" /></a><figcaption id="caption-attachment-49469" class="wp-caption-text">Figure 7</figcaption></figure>
<p>The Test-AdServiceAccount should return True.  If it returns False, a verbose error message should be included.</p>
<p>Now for the time of truth.  Is this going to work in PVS7 or not.  Start the Provisioning Services Configuration Wizard and go to the <i>User account</i> screen.  The TechNet article says the trick is to use a “$” after the gMSA and leave the password blank.</p>
<figure id="attachment_49470" aria-describedby="caption-attachment-49470" style="width: 513px" class="wp-caption alignnone"><a href="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure008.png"><img loading="lazy" decoding="async" class="size-full wp-image-49470" src="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure008.png" alt="Figure 8" width="513" height="399" srcset="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure008.png 513w, https://www.carlwebster.com/wp-content/uploads/2013/06/Figure008-386x300.png 386w" sizes="auto, (max-width: 513px) 100vw, 513px" /></a><figcaption id="caption-attachment-49470" class="wp-caption-text">Figure 8</figcaption></figure>
<p>Let’s see what happens when I click <i>Next</i>?????</p>
<p>What do you know, it let me continue, but we are not done yet.</p>
<figure id="attachment_49471" aria-describedby="caption-attachment-49471" style="width: 513px" class="wp-caption alignnone"><a href="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure009.png"><img loading="lazy" decoding="async" class="size-full wp-image-49471" src="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure009.png" alt="Figure 9" width="513" height="399" srcset="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure009.png 513w, https://www.carlwebster.com/wp-content/uploads/2013/06/Figure009-386x300.png 386w" sizes="auto, (max-width: 513px) 100vw, 513px" /></a><figcaption id="caption-attachment-49471" class="wp-caption-text">Figure 9</figcaption></figure>
<p>DOH!!!  I guess PVS7 will NOT work with Server 2012’s Group Managed service Accounts after all!  Total Bummer.</p>
<figure id="attachment_49472" aria-describedby="caption-attachment-49472" style="width: 496px" class="wp-caption alignnone"><a href="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure010.png"><img loading="lazy" decoding="async" class="size-full wp-image-49472" src="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure010.png" alt="Figure 10" width="496" height="185" /></a><figcaption id="caption-attachment-49472" class="wp-caption-text">Figure 10</figcaption></figure>
<figure id="attachment_49473" aria-describedby="caption-attachment-49473" style="width: 496px" class="wp-caption alignnone"><a href="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure011.png"><img loading="lazy" decoding="async" class="size-full wp-image-49473" src="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure011.png" alt="Figure 11" width="496" height="185" /></a><figcaption id="caption-attachment-49473" class="wp-caption-text">Figure 11</figcaption></figure>
<figure id="attachment_49474" aria-describedby="caption-attachment-49474" style="width: 496px" class="wp-caption alignnone"><a href="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure012.png"><img loading="lazy" decoding="async" class="size-full wp-image-49474" src="https://www.carlwebster.com/wp-content/uploads/2013/06/Figure012.png" alt="Figure 12" width="496" height="185" /></a><figcaption id="caption-attachment-49474" class="wp-caption-text">Figure 12</figcaption></figure>
<p>Citrix should fix this pronto.  Actually, this should have been in PVS7 from the initial design for Server 2012 support.  gMSA offers several features that would be very useful in a PVS implementation.  Too bad Citrix doesn’t support gMSA at this time.  I hope this gets fixed fast.</p>
<p>Thanks</p>
<p>Webster</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.carlwebster.com/provisioning-services-7-and-server-2012-group-managed-service-account/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">5830</post-id>	</item>
	</channel>
</rss>
