最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

windows - How to add reason and reason code to event log using powershell or any other way? - Stack Overflow

programmeradmin4浏览0评论

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:

发布评论

评论列表(0)

  1. 暂无评论