Learning PowerShell in a Month of Lunches, Second edition – Chapter 14 Using Windows Management Instrumentation

by May 8, 2017

Copyright on book is 2013, so that is four years for things to have changed . . .    Which I figure why not much is matching up between the text and my VIRTUAL Windows Server 2012 R2 Standard running inside a VMWare Workstation 12 Pro (registered) on a Windows 7 SP1 laptop.

On Page 170 is figure 14.1 that shows the folders listed under the Security tab of the WMI Control (Local) Properties as opened by RIGHT-clicking WMI Control (Local), then LEFT-clicking Properties in the MMC.

In my WMI Control (Local) Properties window, under the Security tab, there is NO SecurityCenter2 so the PS command "PS C:> get-ciminstance -namespace rootsecuritycenter2 -classname antispywareproduct of course just returns an error "Invalid namespace".

On page 173, when I issue the gcm command, there are NO CIM commands returned . . .

And I am running PS version 5.1.14409.1005, Desktop Edition.

So am I maybe wasting my time even reading this book?

Thank you,

David JR