A new utility has been added to pass the username and password while executing the PowerShell script using the execute action command from SOI side.
Please follow the below steps:
1. Add all the jars which is attached with zip at the below location.
CA\SOI\tools\lib
2. Add RunProcess.bat file at the below location
CA\SOI\tools
3. Open and edit RunProcess.bat file and provide the SCOM user and encrypted password.
4. Encrypt the password using the below command
- Open a command line and locate the encryption utility in the following folder:
<SOI_HOME>\Tools\EncryptSAMCreds.bat
Run the following command:
EncryptSAMCreds.bat password_to_encrypt
Copy and paste the encrypted password in the RunProcess.bat file password with -p option.
4. Configure Execute action command from SOI escalation action and provide the below command and save.
<SOI_Install_DIR>\CA\SOI\tools\RunProcess.bat "powershell.exe -f c:\SCOM_REST_wopwd.ps1 mdrelementid ticketid"
5. Execute the action from SOI console.
Note :- You need to provide SCOM admin user credential.