Powershell : same input command, but different outputs depending on remote / local execution
- 阅读更多 关于 Powershell : same input command, but different outputs depending on remote / local execution
问题 I have to check if a driver is installed on a virtual machine. I need to output a drivers list using Powershell (msinfo32.exe -> Software Components, System Drivers). The (impersonated) user account I want to check is "test". When I run my command locally with "test" using Remote Desktop, it works fine, I get all drivers : PS C:\Users\test> Get-WmiObject win32_systemdriver So I can check if the concerned driver is running : PS C:\Users\test> Get-WmiObject win32_systemdriver | Where-Object{$_