Showing results for CTP3 - PowerShell Team

Mar 10, 2009
0
0

How to Create an Object in PowerShell

PowerShell Team
PowerShell Team

Today someone in Xbox Live Operations (the folks that keep xBox Live alive and well) pinged me with a simple question about PowerShell with a complicated answer: “How do I create a class in PowerShell?” There’s two scenarios I find where people want classes.  The first (and most common) is familiarity: the person wants to ma...

CTP3HowTo
Feb 5, 2009
0
0

Diff between Windows PowerShell versions

PowerShell Team
PowerShell Team

PowerShell MVP Oisín Grehan has done a really good job in getting the diff between PowerShell releases. V1 and CTP3 http://www.nivot.org/2009/02/04/DifferencesBetweenPowerShell10RTMAndPowershell20CTP3Win7Beta.aspx CTP2 and CTP3 http://www.nivot.org/2008/12/23/PowerShell20CTP3HasArrived.aspx Thanks a lot Oisín. Osama Sajid [MSFT]  

CTP3
Jan 28, 2009
0
0

Getting Alternate Streams (Verbose, Progress, Debug) with the PowerShell API

PowerShell Team
PowerShell Team

Dozens of people could write dozens of books on all of the cool stuff we improved in V2 of PowerShell.  One of the nice little things we did was give a more understandable API than Pipeline (which is the class you can use to invoke code from C# in V1).  This API is called the PowerShell API, and one of the improvements it makes is the abi...

CTP3
Jan 19, 2009
0
0

Debugging PowerShell Script Using the ISE Editor

PowerShell Team
PowerShell Team

Hi writers and consumers of buggy scripts.This post explains the basics of the Graphical Debugger in the ISE. There’s a lot of good stuff, with some tips and tricks.The debugger support got the cmdlets and user interface.  The cmdlets include  Enable/Disable/Get/Set/Remove-PsBreakpoint and Get-PsCallStack.The general feel is to place brea...

CTP3PowerShell V2PowerShell ISE
Jan 16, 2009
0
0

How To Make Your Own Module Repository

PowerShell Team
PowerShell Team

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

CTP3Modules
Jan 13, 2009
0
0

Interactive remoting in CTP3

PowerShell Team
PowerShell Team

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

CTP3Remoting
Jan 11, 2009
0
0

Copy console screen to system clipboard

PowerShell Team
PowerShell Team

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

CTP3consoleClipboard
Jan 11, 2009
0
0

Finding a URL For File Transfer Cmdlets

PowerShell Team
PowerShell Team

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

CTP3PowerShell V2Jeffrey Snover
Jan 11, 2009
0
0

Transferring (Large) Files Using BITs

PowerShell Team
PowerShell Team

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? I got...

CTP3PowerShell V2Jeffrey Snover
Jan 10, 2009
0
0

Test-PSCmdlet

PowerShell Team
PowerShell Team

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’t think of...

CTP3PowerShell V2Jeffrey Snover