Straight forward script for WMI information gathering (local or remote)
Be carefull using the -remote Commands with username and password parameter, everything is logged in Powershellv5 so everyone on your system can view the Credentials.
-
Invoke-WMI-Information -local $true
-
Invoke-WMI-Information -remote $true -Computername Domain\SomeComputername
-
Invoke-WMI-Information -remote $true -Computername Domain\SomeComputername -Username Domain\User -Password password