<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.ledhed.net/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.ledhed.net/index.php?action=history&amp;feed=atom&amp;title=RunAs_Group_Managed_Service_Account_%28gMSA%29</id>
		<title>RunAs Group Managed Service Account (gMSA) - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.ledhed.net/index.php?action=history&amp;feed=atom&amp;title=RunAs_Group_Managed_Service_Account_%28gMSA%29"/>
		<link rel="alternate" type="text/html" href="https://wiki.ledhed.net/index.php?title=RunAs_Group_Managed_Service_Account_(gMSA)&amp;action=history"/>
		<updated>2026-04-30T16:02:54Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.2</generator>

	<entry>
		<id>//wiki.ledhed.net/index.php?title=RunAs_Group_Managed_Service_Account_(gMSA)&amp;diff=3414&amp;oldid=prev</id>
		<title>Ledhed: Created page with &quot;== Overview == MS Created Group Managed Service Accounts (gMSAs) to address the weaknesses of traditional service accounts. gMSAs automatically rotate their passwords just lik...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.ledhed.net/index.php?title=RunAs_Group_Managed_Service_Account_(gMSA)&amp;diff=3414&amp;oldid=prev"/>
				<updated>2018-01-23T01:09:16Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Overview == MS Created Group Managed Service Accounts (gMSAs) to address the weaknesses of traditional service accounts. gMSAs automatically rotate their passwords just lik...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Overview ==&lt;br /&gt;
MS Created Group Managed Service Accounts (gMSAs) to address the weaknesses of traditional service accounts. gMSAs automatically rotate their passwords just like AD Computer Objects.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Challenge ==&lt;br /&gt;
Sometimes you need to login as a particular service account so you can install Certificates, set Proxy setting, or install applications. With a gMSA you never know the password of the account so you can't login.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Solution ==&lt;br /&gt;
PSExec to the rescue.  Using PsExec64.exe (v2.2+) you can run an application as a gMSA.&amp;lt;br&amp;gt;&lt;br /&gt;
 PSExec64.exe -i -u DOMAIN\gMSA-Account$ -p ~ cmd.exe&lt;br /&gt;
-i = Interactive (so you can run GUI apps like MMC.exe)&lt;br /&gt;
-p = Password&lt;br /&gt;
~ is a stand-in for no-password (you can omnit this and just press enter at the Password: prompt).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Resources ==&lt;br /&gt;
https://oyvindnilsen.com/run-process-as-managed-service-account/&lt;br /&gt;
&lt;br /&gt;
https://serverfault.com/questions/736651/run-command-with-a-managed-service-account&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Windows]]&lt;/div&gt;</summary>
		<author><name>Ledhed</name></author>	</entry>

	</feed>