Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » WMI   (RSS)

Some WMI instances can have their first method call fail and get-member not work in PowerShell V1

Due to a problem retrieving the available methods in V1 that we have worked around for the upcoming version of PowerShell, you might experience that the first method call to a WMI object fails with a message that mentions: Exception calling GetType()
Posted by PowerShellTeam | 2 Comments
Filed under: ,

Windows, PowerShell and WMI - Unveiling Microsoft's Best Kept Secret

I mentioned that one of my favorite TechEd 2008 talks was Ben Pearce's talk, "Windows, PowerShell and WMI - Unveiling Microsoft's Best Kept Secret". Attached is Ben's presentation. You can get his demos at the following locations: http://blogs.technet.com/benp/archive/2008/06/12/tech-ed-2008-demo-1-administering-windows.aspx
Posted by PowerShellTeam | 1 Comments
Filed under:

Attachment(s): SVR387_Pearce.pptx

Get-OSSku.ps1

Nitin Bhat the WMI PM recently pointed HERE to answer the question, how do know what OS SKU a machine is running? You can run the expression $((gwmi win32_operatingsystem).OperatingSystemSKU) to the the value and then look it up on that table. I decided
Posted by PowerShellTeam | 3 Comments
Filed under:

Attachment(s): Get-OSSKU.ps1

WMI Object Identifiers and Keys

Recently one of MVPs, Darren Mar-Elia (Group Policy Guru from SDMSoftware [which as a set of FREE PowerShell GP cmdlets HERE ]) was working with our WMI type accelerators and got the following error: $ld = '\\sdmlaptop1\root\cimv2:Win32_LogicalDisk.Caption="C:"'
Posted by PowerShellTeam | 11 Comments
Filed under:

Get-WmiHelp & Search-WmiHelp

Both PowerShell and Windows Management Instrumentation (WMI) are pretty incredible technologies that can do a lot of amazing things, but we're all human, and keeping an encyclopedic mental reference of all of these amazing things would give Good Will
Posted by PowerShellTeam | 11 Comments
Filed under:

Attachment(s): Add-WmiHelpFunctions.ps1
 
Page view tracker