PowerShell Team
Automating the world one-liner at a time…
Latest posts
Push-Noun
We looked at a lot of CLI models when designing PowerShell. One of them was netsh. One of the things I had a love/hate relationship with was netsh's use of context. In netsh, you can set context via navigation and then you don't need to provide that context on the command line. For instance you navigate into the FIREWALL and then you perform a set of operations and you don't need to say that you are working on the firewall because it picks it up from the context. I thought I would experiment with this a little this morning. I don't know if this is useful or not but it shows a couple...
PowerShell V1 and V2 Running On WS08 Server Core
Yup- that's right. Check it out at superstar Karl Prosser's blog HERE. He even has a video of it working. The blog is somewhat of a tease in that he is going to wait till tomorrow to tell us how he did it. I'm constantly amazed by what the community can do if you give them the right tools! Thanks Karl! Jeffrey Snover [MSFT]Windows Management Partner ArchitectVisit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShellVisit the Windows PowerShell ScriptCenter at: http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx
When Will PowerShell V2 Ship?
By far, the most frequently asked question at TechEd 2008 was, "When will PowerShell V2 Ship?". We are expressly prohibited from answering that question and I know that that can be frustrating. I can say this: We are now feature complete with V2. History has shown that when we reach this stage of development, it takes us a year, plus or minus a quarter, before it is generally available. Let me be quick to add that past performance is NOT an guarantee of future performance. At the end of the day, we have an extensive quality process and the community lets us know when it is ready...
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://blogs.technet.com/benp/archive/2008/06/12/tech-ed-2008-demo-2-administering-servers-in-bulk.aspx http://blogs.technet.com/benp/archive/2008/06/12/tech-ed-2008-demo-3-how-do-i-know-which-classes-to-use.aspx http://blogs.technet.com/benp/archive/2008/06/12/tech-ed-2008-demo-...
Explaining Objects To Non-Programmers
One of my favorite TechEd 2008 talks was Ben Pearce's talk, "Windows, PowerShell and WMI - Unveiling Microsoft's Best Kept Secret". It was a great talk all up but the one thing I walked away saying, "I've got to steal that", was Ben's explaining of Objects. Anyone that has every tried to explain PowerShell to friends or co-workers will inevitably come across a look of fear and panic when you mention the word "Object". I've seen it hundreds of times. I explain how objects actually simplify the problem but after seeing Ben's talk, I realized that the problem might be that some people don't even kn...
Working With Web Services (Post CTP2 V2 Feature)
Let me start by first apologizing for sharing some information that you are not going to be able to go out and try right away. During one of the interactive Q&A sessions at TechEd, people asked about working with Web Services. I referred to a feature that we were working on and then Hal Rottenberg asked me to blog about some of the details. I'm not sure that this is a good idea because while we have it coded up and in the nightly builds, that is not a guarantee that it will make it into the next version (we often have to cut features in order to create bandwidth to increase the quality of ot...
Block Comments in V2
Smith Catar was looking at my Tech Ed demos and noticed that I used block comments. These are not in the CTP that you have so I guess I sorta let this one leak out. Yes - V2 will have BLOCK COMMENTS!!! Block comments start with "<# and end with "#>". e.g. <# This isablock comment#> Happy happy. Block comments - you asked for them, you'll get them. Jeffrey Snover [MSFT]Windows Management Partner ArchitectVisit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShellVisit the Windows PowerShell ScriptCenter at: http://www.microsof...
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 and there's some value in that. I've included it below and attached it as well. Jeffrey Snover [MSFT]Windows Management Partner ArchitectVisit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShellVisit the Windows PowerShell ScriptCente...
Best of Tech Ed: Breakthrough Product of the year => PowerGUI
The Best of Tech Ed 2008 were awarded and PowerGUI won Breakthrouth Product of the Year. WOW what an honor and acknowledgement of great work! Congratulations to Dmitry, Kirk and the rest of that team! You guys have brought a lot of great visibility to Quest Software. Your bosses should be fetching you cups of coffee and getting you bigger offices :-) If you aren't already running PowerGUI - what are you waiting for? Jeffrey Snover [MSFT]Windows Management Partner ArchitectVisit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShellVisit the Windo...