Showing tag results for WMI

Nov 25, 2013
Post comments count0
Post likes count0

PowerTip: Use PowerShell to Find Key of WMI Class

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell to find the key of a WMI class. How can I use Windows PowerShell to discover the property that has the key qualifier for a WMI class?   Use Get-CimClass and iterate through the properties:$class = Get-CimClass -ClassName Win32_Processforeach ($property in $class.CimClassProperties) { $pr...

Windows PowerShellPowerTipWMI
Nov 12, 2013
Post comments count0
Post likes count0

Combine Automation Tasks by Using PowerShell Objects

Doctor Scripto
Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell objects to combine output from multiple WMI classes. Microsoft Scripting Guy, Ed Wilson, is here. I registered for Windows PowerShell Saturday #007, which will be held in Charlotte, NC. I am going to be presenting one or two talks (now I am scheduled for two talks, bu...

Scripting Guy!Windows PowerShellscripting techniques
Nov 4, 2013
Post comments count0
Post likes count0

The Admin’s First Steps: Capacity Planning Part 1

Doctor Scripto
Doctor Scripto

Summary: Richard Siddaway talks about using Windows PowerShell to collect data for capacity planning.  Hey, Scripting Guy! I’ve just starting learning Windows PowerShell and I understand how to use it as a scripting language and shell. I’ve been told to start performing capacity planning for my servers and was wondering how I can u...

Scripting Guy!Windows PowerShellscripting techniques
Oct 27, 2013
Post comments count0
Post likes count0

PowerTip: Use CIM Cmdlets to Find WMI Classes

Doctor Scripto
Doctor Scripto

Summary: Use the CIM cmdlets in Windows PowerShell to find associated WMI classes. How can I find the associated classes for a WMI object? Use the Windows PowerShell 3.0 CIM cmdlets.First get the WMI object for which you want find the associated classes:$group = Get-CimInstance -ClassName Win32_Group  -Filter "Name = 'Administra...

Windows PowerShellscripting techniquesPowerTip
Oct 10, 2013
Post comments count0
Post likes count0

PowerTip: Change Output Object Property Names with PowerShell

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell to change output object property names.  How can I use Windows PowerShell to change the property names of my output objects?  The easiest way to achieve this to use Select-Object and a calculated field: Get-WmiObject -Class win32_OperatingSystem -ComputerName webr201 | select @{N='ComputerName'; E...

Windows PowerShellscripting techniquesPowerTip