PowerShell for Windows Admins:

CIM


June 29, 2015  12:06 PM

CIM filters

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
CIM, Powershell, WMI

I was looking up Win32_SystemDriver on the MSDN site and noticed there was some PowerShell example code Get-WmiObject -Class Win32_SystemDriver | Where-Object -FilterScript {$_.State -eq "Running"} | Where-Object -FilterScript {$_.StartMode -eq "Manual"} | Format-Table -Property...

June 16, 2015  2:01 PM

Service startup type

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
CIM, Powershell

Get-Service has been part of PowerShell since version 1. One thing it doesn’t do though is display the service startup type: £> Get-Service | select -f 1 | fl * Name                : 7f11b722 RequiredServices    : {} CanPauseAndContinue :...


May 7, 2015  3:35 AM

PowerShell DSC for Linux

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
CIM, Powershell

PowerShell DSC for Linux has moved out of CTP and v1 is available for download from http://www.microsoft.com/en-us/download/details.aspx?id=46919 You...


April 28, 2015  1:05 PM

Blocksize missing?

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
CIM, Disk architecture

I recently had a question asking why the Bloacksize property on Win32_LogicalDisk is empty but is populated on Win32_Volume. The thing is to remember the underlying thing that these 2 CIM classes represent. A logical disk is a subdivision of an extended partition. An extended partition can...


April 28, 2015  3:16 AM

OMI/CIM/WMI dictionary

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
CIM, Powershell, WMI

Don Jones provides a very good summary of the similarities and differences between WMI, CIM and OMI http://powershell.org/wp/2015/04/24/management-information-the-omicimwmimidmtf-dictionary/ Recommended reading if you’re using these technologies


April 6, 2015  5:39 AM

Query vs Filter

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
CIM, Powershell, WMI

I’ve tended to advocate using the –Filter parameter rather than the –Query parameter with the CIM (and WMI) cmdlets but a recent post on the Windows Management Infrastructure blog has me questioning that decision. Using Measure-Command I tried various pairs of commands – such...


February 18, 2015  1:31 PM

Copy a file with WMI

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
CIM, Powershell, WMI

A question came up on the forum about copying files with CIM (WMI). I normally use Copy-Item rather than CIM as its easier. The questioner was using CIM_LogicalFile when I’ve normally used CIM_DataFile so I decided to take a look at the class. In reality the two classes are very similar and...


February 5, 2015  9:57 AM

Scripting Guy CDXML series finished

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
CIM, Powershell, WMI

My CDXML series on the Scripting Guy blog finished today.  The 4 articles are:

    0 Comments     RSS Feed     Email a friend


February 2, 2015  11:41 AM

Scripting Guy CDXML series

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
CIM, Powershell

Today starts a four part series I’ve written for the Scripting Guy blog on using CDXML to create a module to work with the registry.  Don’t know what CDXML is – you will when you’ve read the series The first post is at

    0 Comments     RSS Feed     Email a friend


January 30, 2015  10:07 AM

Testing for a hotfix

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
CIM, Powershell, WMI

KB3000850 – the November roll up for Windows 2012 R2 contains some very useful updates. I’ve installed it on some machines in my lab but not all. The update is huge so I’m installing it manually rather than through WSUS. I need to test a remote machine to determine if the update  is...


Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: