PowerShell Team
Automating the world one-liner at a time…
Latest posts
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 local script club. One of the questions I helped answer involved using a WMI association class, which is a class in WMI that links two other classes together. Association classes are pretty common, and pretty useful, once you get the hang of them. One association class is Wi...
Beta of Windows Server 2008 R2 is now Available
Want a couple hundred new cmdlets? Download the beta version of Windows Server 2008 R2 and check out all the cmdlets that we've been dying to talk about but have not been able to. Also, take a look at what is missing and complain early, often and loudly. And of course -don't forget to blog about what you find. Download details HERE. Cheers! Jeffrey Snover [MSFT] Windows Management Partner Architect Visit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShell Visit the Windows PowerShell ScriptCenter at: http://www.microsoft.com/technet/sc...
Multiple Shell Reference Guide
Sylvain Galineau just sent me a pointer to a cool site which has reference information for multiple shells: CMD, PS, BASH, ORACLE, and SQLSERVER. It's not complete but it is a nice reference point. Enjoy it HERE. Thanks Sylvain! Jeffrey Snover [MSFT] Windows Management Partner Architect Visit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShell Visit the Windows PowerShell ScriptCenter at: http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx
Managing Remote Desktop services (aka Terminal services) using Windows PowerShell
Hello everyone, We are pleased to announce that the Beta release of Windows server 2008 R2 supports managing Remote Desktop services using PowerShell. You can now configure and manage all RDS role services and components using PowerShell. For example, below are few management tasks that you can now do with PowerShell 1. View and edit configuration settings of Remote Desktop server 2. Publish RemoteApp applications 3. Configure License Server 4. Create and con...
Case Insensitivity
This VIDEO explains the real reason why PowerShell is case-insensitive. (just joking - the video is deadly funny!). Jeffrey Snover [MSFT] Windows Management Partner Architect Visit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShell Visit the Windows PowerShell ScriptCenter at: http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx
Manage winrm settings with wsman provider
PowerShell remoting is built on top of Windows Remote Management (WinRM), which is Microsoft’s implementation of WS-Management protocol. You can use winrm.cmd command line tool to query and manage winrm settings. PowerShell V2 CTP3 contains a wsman provider for you to manage winrm settings with the standard *-Item cmdlets . Let’s try it out: PS C:\> cd wsman:PS WSMan:\> dir WSManConfig: Microsoft.WSMan.Management\WSMan::WSManComputerName  ...
Checkout Out-WPF
Joel (Jaykul) Bennett has a cool post HERE where he is experimenting with some GUI scripting toolkits and a utility Out-WPF. You can also checkout a Screencast of Out-WPF working HERE. It is very cool and very short so give it a look-see. Scripting GUIs with PowerShell is going to be a REALLY BIG DEAL going forward. Jeffrey Snover [MSFT] Windows Management Partner Architect Visit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShell Visit the Windows PowerShell ScriptCenter at: http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx
Invoking Methods Using Variables
You can have a lot of fun with PowerShell. Makes sense right - we're busting our butts off and we get to define it so why wouldn't we make it fun? Your busting your butts off at your job as well so why shouldn't your tools be fun? Right? In particular, our late binding of names allows you to do some really cool, really powerful stuff. Here is an example: PS> $d=Get-Date PS> foreach ($p in "Day","hour","minute") {"$p : " + $d.$p } Day : 5 hour : 8 minute : 53 This allows you to write some very fun c...
Scott Herold – Getting Started With PowerShell and PowerGUI in your Virtual Infrastructure
Scott Herold has published the first of a three part series called Getting Started With PowerShell and PowerGUI in your Virtual Infrastructure. I believe that MOST admins should spend time getting PowerGUI in focus and especially those admins that are intimidated by the command line interface. Scott only has part 1 of his series available and while it applies to Virtual Infrastructure (VMWare), the points Scott makes are generic so I encourage everyone that isn’t already a PowerGUI user to go give it a read. When you are done then go to PowerGUI.Org, download the latest version and give it...