PowerShell Team

Automating the world one-liner at a time…

Use DSC to manage WMI namespace security

Almost 6 years ago, I wrote some PowerShell scripts in a multi-part series explaining WMI namespace security and also how to manage them using PowerShell. If you're not familiar with WMI namespace security, I recommend reading the blog posts above or even as a refresher. I received some feedback fairly recently about some issues and this ...

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 disclaimer :-). Cheat sheet is just for a ...

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 on TechNet script center to help IT Pros. This ...

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 new Cmdlets is given in the table below...

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 to change with Windows “8”. We ...

Rename-Drive : Renaming Drives with PowerShell & WMI

.CmdletName { font-size:large } .CmdletSynopsis { font-size:medium } .CmdletDescription { font-size:medium } .CmdletParameters { font-size:medium } th { font-size: medium; font-style: italic } table { border: 1 } Shane Burton from Compellent just asked me to help him rename a drive ...
Comments are closed.0 0
WMI

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.  Leave a comment if you’d like to set up a ...
Comments are closed.0 0
WMI

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 http...
Comments are closed.0 0
WMI

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 is rock-simple but it saves you the typing ...
Comments are closed.0 0
WMI

Feedback usabilla icon