Hi, Mark Manty Premier Field Engineer for Microsoft with anexample program to change Agents default Health Service Action Account. Themajority of your agents should be set to “Local System Action Account” with theexception of your Management Servers.
This example program allows you to change the default actionaccount associated with a given agent in bulk fashion. If you set your defaultaction account incorrectly and already deployed thousands of agents you willgreatly appreciate the tool. Changing this account in the SCOM console is amanual and slow process for large number of agents.
I ran this in a test environment and it does not have to runon a RMS or MS to work. It must meet the below requirements in order to runsuccessfully:
See example below where my agents are set to my SCOMActionaccount. I would like to change those to “Local System Action Account” with theexception being my Management servers.
Download the ZIP file ChangeDefaultActionAccount.zip and extract RunasAccountProfile.exe to a folder of your choice.
Open an administrative command prompt running under an account that has SCOM administrative privileges.
Change to the directory where you extracted RunasAccountProfile.exe.
Run program by typing “RunasAccountProfile.exe” and press enter.
Change SCOMRMS to your RMS server name and press “Connect” button.
Select the servers you want to modify Default Action account for.
Note: you can right click select all or deselect all. Also, you can use the exclude Management servers to exclude them from selection. Ifyou manually select them they will update the selected Management servers accounts.
After selecting the new action account and the servers to update, select Update to update accounts.
“Complete” message will display when it is done updating.
Note the output window displays results of the update.
Validate that the accounts were updated.
This program can save a lot of your time updating agents should a large number of agents require changing.
This example is provided “AS IS” with no warranty expressedor implied. Run at your own risk.
The opinions and views expressed in thisblog are those of the author and do not necessarily state or reflect those ofMicrosoft.