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: