PowerShell Team

Automating the world one-liner at a time…

Did you know? #3

Did you know that you can put constraints on variables using the same attributes as cmdlet parameters?Unfortunately we had to postpone the language support for this but you can still do it using new-object.MSH > $a = "foo"MSH > $varA = get-variable aMSH > $varAName           &...

Did you know? #1

Did you know that you can access the content of a provider using the variable syntax? For instance, you can get and set the contents of a file just by doing the following:MSH > ${c:\temp\foo.txt} = "bar"MSH > ${c:\temp\foo.txt}barMSH > Note, the default encoding is used when setting the content in the filesystem in this way. Any ...

Did you know? #2

Did you know that you can make a variable automatically propagate to new scopes by using the AllScope option? Normally when you enter a new scope variables are not copied from the parent scope. Instead we do a lookup for the variable when requested. Anytime the variable is written to it happens in the local scope. This means that it is ...

Introduction to MshObject

If you’ve ever worked with the Monad APIs then you’ve no doubt seen a type called System.Management.Automation.MshObject.  I’m not going to go into all the details of what it is because that would take me more time than I have right now and there are people who can explain better than I.  Suffice it to say that it’s a ...

Windows PowerShell (Monad) Has Arrived

I just got out of Bob Muglia's keynote speech where he formally announced Windows PowerShell (previously known as Monad).  The key things he announced are: Superstar Vivek Sharma demonstrated the Exchange 2007 Admin experience. First he showed their new MMC 3.0 managed code snap-in - it totally rocks! (you'll be amazed by what you can ...

PowerShell Training Available Through Microsoft

A number of you have asked when Microsoft would be providing training for Powershell.   Apparently the answer is “NOW”.  I just came across this 3 day instructor led training class, Course 6434 “Automating Windows Server 2008 Administration with Windows PowerShell”.  I don’t know anything about the course so if ...