Administrator Guide
• SMA server
• SMA database.
2 The script performs a basic health check on components it must access to change passwords. Specically, the script veries that all
VMs, related services, and SQL Server instances are running.
3 If step 2 is successful, the script resets the passwords described at the start of this section.
If required VMs or services are not running, the script prompts you with the following warning:
Some virtual machines or services are not running. Do you want to continue?
It is recommended that you type N, and then press Enter to stop the script. It is preferable that you do not continue because more
failures can occur during the password reset process.
If step 2 fails, the script displays a list of required VMs and services and their states, for troubleshooting purposes.
Viewing MCPasswordReset script logs
To help troubleshoot issues with the MCPasswordReset script, view the log les after you run the script.
Viewing the log les using File Explorer
To get the log les using File Explorer, do the following:
1 On the Console VM, open File Explorer, and then open the folder C:\Program Files\Microsoft Cloud Solutions\PasswordReset.
2 A new folder with the following name convention is created each time you run the script: PasswordReset_
YYYY-MM-DD_HH-MM-
SS
. Open this folder, and then open the le named PasswordReset.log to nd a summary of script tasks.
3 The script’s supporting runbook logs are also stored in the date- and time-stamped folder, for easier troubleshooting if individual
runbook failures occur.
Viewing the log les from SMA
Alternatively, you can get password reset script log les from SMA:
1 Log on to the VM that is running SMA (<Prex>APA01) with any account that is a member of the <
Prex
>-Ops-Admins group.
NOTE
: You can also run the commands from the Console VM. However, if you do this, you must replace
localhost
in
each of the following steps with the host name of the SMA VM.
2 In a Windows PowerShell console that is running with elevated user rights (Run as Administrator), run the Get-SmaJob cmdlet to nd
the job ID and the number of errors.
Get-SmaJob –RunbookName PasswordReset-Log –WebServiceEndpoint 'https://localhost'
3 Copy the job ID from the results of the Get-SmaJob command, and use it in the following commands.
4 Run the following commands to get the job output, specifying the job ID value that you obtained in step 3.
Get-SmaJobOutput –JobId JobId –Stream Error –WebServiceEndpoint 'https://localhost'
| %{ $_ } | sort StreamTime > Error.txt
Get-SmaJobOutput –JobId JobId –Stream Any –WebServiceEndpoint 'https://localhost'
| %{ $_ } | sort StreamTime > Any.txt
Security
121