Gets the CIM instances of a class from a CIM server
Functions: | |
Type: | |
Toolsets: |
Get-CimInstance -CimSession $s -ClassName Win32_Process
Usecase
$s
using New-CimSession
CimCmdlets
Get-CimInstance -ClassName Win32_Process | % { [PSCustomObject]@{Name=$_.Name; User=$(Invoke-CimMethod -InputObject $_ -MethodName GetOwner).User } }
Usecase
$s
using New-CimSession
CimCmdlets
Get-CimInstance -Filter 'Name="TermService"' -ClassName Win32_Service -CimSession $s
Usecase
$s
using New-CimSession
CimCmdlets