I have given my RunAs account proper permissions to create and modify home drives, I can test all this by logging into the server with my RunAS account and running my script - so I know I have the script and permissions set properly. However, as my JEA is configured presently using a virtual account, when it runs the same script, the account cannot modify the share ACL because it is created as a local system account.
It appears to me that I need to use a GMSA to be able to modify the network share, the user's home drive. According to JEA Security Considerations, Group managed service accounts (gMSAs) are useful when a member server needs to have access to network resources in the JEA session.
I don't know how to set this up in my JEA configuration. I have successfully created my GMSA account and allowed servers, but I don't understand
how to use this account within JEA
how do I test it all
I've created my JEA configuration using examples in:
Just Enough Administration (JEA) - Part 1: Overview
Just Enough Administration (JEA) - Part 2: An example
Using this method and my RunAs account, I can test by entering the session using a command such as:
Enter-PSSession -ComputerName <targetcomputer> -ConfigurationName JEA_DNS_OperatorSession -Credential $credential
If I were to use my GMSA account, how can I Enter-PSSession? The Get-Credential cmdlt prompts for username & password. A GMSA account has an automated, system generated password.