admin管理员组

文章数量:1400109

Would like to know how the reason and a different reason code can be added to the event log preferably using powershell?

Powershell script used: Restart-Computer -ComputerName (Read-Host "Entercomputername") -Credential (Get-Credential) -Force

Output: The process C:\windows\system32\wbem\wmiprvse.exe (computername) has initiated the restart of computer <computername> on behalf of <username> for the following reason: No title for this reason could be found

Reason Code: 0x80070015

Shutdown Type: restart

Comment:

本文标签: windowsHow to add reason and reason code to event log using powershell or any other wayStack Overflow