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:
版权声明:本文标题:windows - How to add reason and reason code to event log using powershell or any other way? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744182483a2594131.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论