set-service with a managed service account
Hello, I want to set a service to run via a managed service account but I am having issues with building the PSCredential. A gMSA has a blank password so when I try to build the PSCredential object with '' as the password it throws an error. What is the
correct way to build a PSCredential object for a managed service account?
Thank you,
-Geoff
September 1st, 2015 10:08am
We don't supply credentials to managed service accounts.
September 1st, 2015 1:29pm
Hello, I understand that but then how can you call new-service with a MSA since it requires a PSCredential object?
Thank you,
-Geoff
September 1st, 2015 2:25pm
Don't use a credential object.
Use SC to set account.
September 1st, 2015 2:27pm
September 1st, 2015 2:32pm
Please ignore this thread, just realized that the -Credential is to run the command as a different account. I'll run it with a non MSA account.
September 1st, 2015 2:40pm