Try this one out from Kevin Holman https://kevinholman.com/2017/07/27/document-your-scom-runas-account-and-profiles-script/ Tony
How to get list of service accounts used in SCOM2019?
Hello Guys,
Today my manager asked me to change the password of all service accounts configured in SCOM 2019 prod in our environment. Two years ago, we switched from the service account to gMSA accounts where the password isn't required.
I suspect that the service account list he shared with me was used in our old SCOM 2016 environment and is obsolete.
So, I wanted to cross-check all the service accounts / gMSA accounts that have been configured in our organization. So, is there any tool or PS script available where I can get a list of accounts used?
Kindly suggest.
Thanks in advance,
2 answers
Sort by: Most helpful
-
-
Marius Ene 335 Reputation points
2024-01-31T23:40:46.2766667+00:00 Hi @Nishant Potdar ,
When you create a new SCOM environment you need to specify some service accounts to be used. Usually these accounts are:
- Management Server Action Account
- System Center Configuration service & SystemCenter Data Access service
- Check the services.msc and look for System Center Data Access Service. See the Log on tab.
- Data Reader account
- Data Writer account
For number 1, 3 and 4 see below:
I don't think you need a script for getting this information but the script recommended by @anthony strother should display accounts used for 1,3 and 4 but not for 2.
Marius ENE (https://mariusene.com/ )