Verifying password reset operation on a Windows Server virtual machine
Checking that the agent is installed
Make sure that the agent is installed and running as the
If the agent is installed and running, it will show up on the list as
Status Name DisplayName ------ ---- ----------- Running yc-guest-agent yc-guest-agent
If the agent is installed but is not running, it will show up on the list as
Stopped. To run the agent, use the command below:
Afterwards, check again that the agent is running.
If the agent is not installed, it will not show up. Follow the instructions to install it.
Verifying agent updates
Make sure that the agent update is configured and running properly:PowerShell
Make sure that the agent update job is running:
Get-ScheduledTask "yc-guest-agent-updater" -OutVariable Task
TaskPath TaskName State -------- -------- ----- \ yc-guest-agent-updater Ready
yc-guest-agent-updaterjob must have the
Get information about the most recent job run.
$Task | Get-ScheduledTaskInfo
LastRunTime : 3/15/2023 2:39:39 PM LastTaskResult : 2147946720 NextRunTime : 3/20/2023 6:36:36 AM 12:10:10 AM NumberOfMissedRuns : 0 TaskName : yc-guest-agent-updater TaskPath : \ PSComputerName :
If the most recent update was successful, the value in the `LastTaskResult` field will be `0`.
Retrieving agent logs
You can retrieve password reset agent logs on serial port 4 (COM4) or directly from the agent in PowerShell.
To get logs:
- Select the folder the VM belongs to.
- Select Compute Cloud.
- Click on the line with the VM you need.
- Go to the Serial port tab.
- Select COM4 as your port.
- To use the CTRL + F keyboard shortcut to search, enable Raw mode in the upper-right corner.
The folder specified in the CLI profile is used by default. You can specify a different folder using the
Run the following command:
yc compute instance get-serial-port-output <VM name> --port 4 > output.txt
The logs will be saved to a file named
Stop the agent:
Restart the agent with the required logging level as specified in the
--log-levelparameter. For example:
& "C:\Program Files\Yandex.Cloud\Guest Agent\guest-agent.exe" start --log-level debug