Browse by Tags

Tagged Content List
  • Blog Post: WMI cheat sheet for PS users

    Hi, We got multiple requests to publish the cheat sheet for CIM Cmdlets that was distributed in Tech Ed NA this year. Responding to popular demand, this document is attached as PDF . This is a great resource put together by WMI team for people who want to get started with CIM cmdlets. Standard...
  • Blog Post: Managing Hardware devices from PowerShell

    Steve did a very cool blog post last month about managing hardware that implements standard DMTF profiles (examples: Intel AMT , Broadcom TruManage ) http://blogs.msdn.com/b/wmi/archive/2012/08/08/standards-based-hardware-management-using-powershell.aspx He has also published a PowerShell module...
  • Blog Post: Introduction to CIM Cmdlets

    PowerShell 3.0 shipping with Windows server 2012 and Windows 8 brings a new set of Cmdlets to manage any server or device that complies with CIM and WS-Man standards defined by DMTF. In this blog post we will explore these new Cmdlets and how can they help IT Pros in managing a datacenter. The list of...
  • Blog Post: Improved WMI experience in PowerShell 3.0

    There is a famous quote often attributed to Jeffrey Snover, “IT Pros love and hate WMI. They love it because there is so much great stuff there. They hate it because it is complex to use”. Not to our surprise, most of the IT Pros and developers we talked to agree with this. This is going...
  • Blog Post: Rename-Drive : Renaming Drives with PowerShell & WMI

    Shane Burton from Compellent just asked me to help him rename a drive with PowerShell. It's possible to rename drives using a couple of different WMI classes, Win32_Volume , and Win32_LogicalDisk . You change the drive by setting a property name on the WMI Object (Label in Win32_Volume, and VolumeName...
  • Blog Post: Get-USB – Using WMI Association Classes in PowerShell

    Last Thursday, we had our first meeting of PowerShell Script Club on the Microsoft Campus. Script Clubs are really cool. They're kind of like a hands on lab with no set topic or teacher. You bring an idea for a script, and ask your fellow PowerShell users about help getting the script written. ...
  • Blog Post: 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() with “0” argument(s): “You cannot call a method...
  • Blog Post: 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...
  • Blog Post: 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 to turn it into a script you can use. It...
  • Blog Post: 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:"' $disk = [WMI] $ld Cannot convert...
  • Blog Post: 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 Hunting a headache. For years, when I used WMI I almost...
  • Blog Post: Displaying USB Devices using WMI

    Over on MyItForum.com , I came upon a VBScript in a forum to find all the PNP entities associated with a USBController. I rewrote it in PowerShell and was pretty happy with the results so I thought I would share them. The first thing you need to understand is that the WMI class WIN32_USBControllerDevice...
  • Blog Post: Automating Dell Battery Replacement Discovery

    MOW has done it again. Checkout his blog entry which shows how to leverage Windows PowerShell to automate determining which of the Dell laptops in your enterprise need to have their batteries replaced. http://mow001.blogspot.com/2006/08/powershell-has-my-dell-dangerous.html Totally cool. Jeffrey...
  • Blog Post: Encoding Operations Knowledge

    One of the primary goals of Windows PowerShell is to encode operations knowledge. Consider the example of finding out what domain role a computer plays. If you look at the WMI class WIN32_COMPUTERSYSTEM, you'll see that it tells you this information: PS> Get-WMiObject Win32_computerSystem |fl dom...
  • Blog Post: Revisiting: Listing all the COM automation PROGIDs

    In the blog entry Listing all the COM automation PROGIDs http://blogs.msdn.com/powershell/archive/2006/06/29/650913.aspx . I showed how you could use the registry to get all the progids that you can use for COM automation. Here is a way to do the same thing via WMI (which allows you to do it to remote...
  • Blog Post: Use of Wildcards in PowerShell Formating

    MMS in San Diego was a great conference! I met lots of customers that asked lots of great questions. I was demonstrating PowerShell's WMI support when a customer asked about controlling the output. The problem was that PowerShell was showing all the WMI System properties as well as the Object properties...
Page 1 of 1 (16 items)