3️⃣WMI
Import Set-RemoteWMI
. ./Set-RemoteWMI.ps1On a local machine
Set-RemoteWMI -Username <username> -VerboseOn a remote machine without explicit credentials
Set-RemoteWMI -Username <username> -Computername <computername> -namespace ‘root\cimv2’ -VerboseOn a remote machine with explicit credentials
Only root/cimv and nested namespaces
Set-RemoteWMI -Username <username> -Computername <computername> -Credential Administrator -namespace ‘root\cimv2’ -VerboseOn remote machine remove permissions
Set-RemoteWMI -Username <username> -Computername <computername> -namespace ‘root\cimv2’ -Remove -VerboseCheck WMI permissions
Get-wmiobject -Class win32_operatingsystem -ComputerName <computername>Last updated
Was this helpful?