Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想通过 powershell 以不同的用户身份获取事件日志。我查找了几乎所有的在线资源,但无法找到通过 powershell 获取另一个用户的事件日志的方法。
Get-EventLogs 不支持使用替代凭据,但支持Get-WinEvent。
Get-WinEvent
$credential = Get-Credential Get-WinEvent -Credential $credential