PowerShell Team

Automating the world one-liner at a time…

Colorized capture of console screen in HTML and RTF.

In the previous post we demonstrated how we can use console host API to capture screen buffer contents as text. But what if we want some colors. Would not it be nice to publish colorized copy of console in HTML or insert it as part of Microsoft Word document. For this to work we need to add some modifications to original script. Colors of each...

Finding a URL For File Transfer Cmdlets

I just posted a blog about our new File Transfer Cmdlets in which I artfully dodged a difficult question:  How do you get the URL to do the file transfer?  Sometimes you are going to have it but other times you’ll go to a website and it can be bloody impossible to find the URL that you need to download.  That was the case with...

Transferring (Large) Files Using BITs

Have you had a file copy fail?  Does that drive you crazy or what?  How about when it is a REALLY big file and it takes a couple of hours and JUUUUUST before it finishes something happens to interrupt the transfer and you have to start all over again.  Does that make you want to shove a sharpened #2 pencil up your nose or what? ...

Test-PSCmdlet

Everyone needs to get good with Advanced Functions – this is the easiest path to the best semantics for everyone.  In previous posts we’ve shown how you can add a few simple attributes and get a TON of stuff for free.  There is a LOT more to advanced functions.  You can go VERY VERY far with advanced functions.  I can...

Capture console screen

Seeing nicely formatted console examples in a previous post has inspired me to write a script that captures the console screen buffer directly from the Windows PowerShell console host. With this script you can make console "screen shots" to demonstrate some of your favorite Windows PowerShell concepts, and then post them to your...

PowerShell as Inventory Tool

Check out Don Jones’ TechNet article Windows Powershell Best Inventory Tool Ever!  He as a streaming video demo at that location as well.  Cool stuff.  I really enjoy the way Don explains things.  It is well worth a view and worth recommending to your friends that are learning PowerShell. Cheers! Jeffrey Snover [MSFT...

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 ...

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 ...

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 ...