February 2019
Intermediate to advanced
626 pages
15h 51m
English
CIM sessions are created using the New-CimSession command. The following example creates a CIM session using the current system as the computer name using WSMan as the protocol:
PS> New-CimSession -ComputerName $env:COMPUTERNAMEId : 1Name : CimSession1InstanceId : bc03b547-1051-4af1-a41d-4d16b0ec0402ComputerName : PSTESTProtocol : WSMAN
If the computer name parameter is omitted, the protocol will be set to DCOM:
PS> New-CimSessionId : 2Name : CimSession2InstanceId : 804595f4-0144-4590-990a-92b2f22f894fComputerName : localhostProtocol : DCOM
New-CimSession can be used to configure operation timeout settings and whether or not an initial network test should be performed.
The protocol used by New-CimSession can be changed using ...
Read now
Unlock full access