Articles from 2013

PowerShell.org Articles published in 2013.

Richard Siddaway

CIM cmdlets and remote access

When you used the WMI cmdlets Get-WmiObject -Class Win32_logicalDisk -ComputerName RSLAPTOP01 You were using DCOM to access the remote machine. Even if you accessed the local machine you were using DCOM. This changes in PowerShell v3 when using the CIM cmdlets. If you don"™t use a computername …

Richard Siddaway

Filtering

I"™ve been grading the scripts in the warm up events for the Scripting Games and noticed a lot of people doing this: Get-WmiObject -Class Win32_LogicalDisk | where {$_.DriveType -eq 3} Ok now it works but there are a couple of things wrong with this approach. Firstly, you are ignoring the built …