PowerShell Team

Automating the world one-liner at a time…

Group Policy Cmdlets in Windows 7

Lilia Gutnik has posted a blog entry HERE showing an example of the Windows 7 Group Policy cmdlets.  Check it out.   Experiment!  Enjoy!  Engage! Jeffrey Snover [MSFT] Windows Management Partner Architect Visit the Windows PowerShell Team blog at:    http://blogs.msdn.com/PowerShell Visit the ...

How To Make Your Own Module Repository

Andy Schneider (from Get-PowerShell.com) recently asked me how he could make sure that everyone at Avanade could get a consistent set of modules.  I run into a somewhat similar problem here at Microsoft, where I want to take scripts I've built to work with internal applications and make them easy for people to use, even if they're not ...

Please Join Me for a Power Scripting Podcast Tonight @ 9PM EST (6PM PST)

I’m going to be doing a PowerScripting Podcast tonight @ 9PM EST.  There’s a live chat room where you can ask questions and pick the brains of a tester / avid scripter on the PowerShell team. It should be fun.  I hope to see your questions there. http://powerscripting.wordpress.com/2009/01/14/tomorrow-on-powerscripting-live-...

Windows 7 Troubleshooting

Windows 7 has a cool new extensible troubleshooting framework which is entirely based on PowerShell scripts.  Rafael Rivera has written a very good step-by-step guide for how to author a Win7 Troubleshooting Pack HERE. Check it out. Experiment!  Enjoy!  Engage! Jeffrey Snover [MSFT] Windows Management Partner Architect ...

Podcast Discussing WSMAN 1/14/2008

Tomorrow evening I'll be doing the Mind Of Root podcast with Steve Murawski to discuss WSMAN.  WSMAN is the new standard management protocol to talk to all sorts of heterogeneous devices and is the protocol that PowerShell Remoting is based upon.  As a general rule, management protocols take forever to become relevant but I believe ...

Interactive remoting in CTP3

Today let's talk about one of the cool new features of Windows PowerShell V2 - Interactive Remoting. Let’s start with an example: As you can see Enter-PSSession starts interactive remoting session and Exit-PSSession takes you out of it. The aliases for these commands are etsn and exsn. You can also use exit keyword instead of Exit-...

How to copy colorized script from PowerShell ISE

UPDATED Feb-03-2009: Lee Holmes has posted an updated version of the script which does a much better job of HTML copy-pasting. It can also produce line numbers and has a number of other improvements.   In the previous article we demonstrated how to use Console-Copy script to make a colorized copy of console screen and place it in the ...

Please Give Us Feedback

With the release of Win7/WS08R2 beta, we are officially in the end game of PowerShell V2.  This is the phase were we can only respond to customer feedback and we rely upon customer feedback to tell us whether and when we are ready to ship.  In other words - now is when we need to hear from you the most. ...

V2 Blog Entries

In a recent comment Peter asked if we could mark blog entries that relate to v2.  We are already doing that with TAGs.  If you look at the bottom of an entry, it will say FILED UNDER and then a set of tags.  We are marking blog entries with things like:  CTP3 and PowerShell V2. Experiment!  Enjoy!  Engage! ...

Copy console screen to system clipboard

In the previous example we learned how to create a colorized copy of console in HTML and RTF format. However, the output of these scripts cannot be readily used for pasting into web or word processing applications. To insert it into your article in MS Word format, you need several steps: generate RTF string, save it to an RTF file, then open ...