PowerShell Team

PowerShell Team, PowerShell

PowerShell is a task-based command-line shell and scripting language built on .NET. PowerShell helps system administrators and power-users rapidly automate tasks that manage operating systems (Linux, macOS, and Windows) and processes.

Post by this author

Cleaning up obsolete Windows PowerShell Aliases

Over the course of time, I've written a number of functions & cmdlets and then created aliases for those.  Many of those where Ad Hoc and I've since thrown them away but I still have the aliases sticking around.  Here is a quick and easy way to determine the validity of your aliases gal |%{if (!(gcm $_.Definition -ea ...

Leveraging Windows PowerShell Type Extensions to get documentation

After just a little use of Windows PowerShell, you quickly learn that you need to pipe objects in the GET-MEMBER utility to understand the capabilities of that object.  Get-Member reflects against the object and shows you all of its methods and properties (more as well but that will be a different blog).  Get-Member is getting that ...

Windows PowerShell documentation

I have recently noticed that a number of people have missed the fact that we have a Windows PowerShell Documenation Download (for RC1) at: http://www.microsoft.com/downloads/details.aspx?FamilyId=2B0BBFCD-0797-4083-A817-5E6A054A85C9&displaylang=en Everyone should download this document and give it a read.  I think you'll be pleasantly...

Exchange PowerShell Scripting Contest

You are one line of code away from fame and riches ... eeerrrr ... make that fame and a trip to New York.  The Exchange team is holding a scirpting contest.  Produce the coolest one line Windows PowerShell script and you can win a trip to New York to attend the Exchange 2007 launch.  Check out the details at http://www.microsoft...

Flexible pipelining with ScriptBlock Parameters

PSMDTAG:FAQ: How can I pipeline data to a parameter which does not accept pipeline input?PSMDTAG:FAQ: What are ScriptBlock Parameters? One of the foundation concepts of Windows PowerShell is pipelining objects instead of text.  What happens is that when an upstream command generates an object, the PowerShell engine examines the data ...

More – How does PowerShell formatting really work?

<Edited 7/2/2006 with tags and categories>PSMDTAG:FAQ: Why doesn't output expand when I expand the width of the console?PSMDTAG:FAQ: Why doesn't output expand when I use -noElements on GROUP? Consider the example: PS> gps |group company Count Name             &...

$ERRORVIEW="CATEGORYVIEW"

<Edited 7/2/2006 with tags and categories>PSMDTAG:FAQ: What is $ErrorView?PSMDTAG:FAQ: How do I get error details? Have you tried out $ErrorView="CategoryView" yet?  Remember -  errors are just objects.  Given that they are objects, we render a subset of their properties to the console.  We provide 2 views: ...

Windows PowerShell Podcasts with Don Jones available at www.ScriptingAnswers.com

ScriptingAnswers.com has a number of scripting related podcasts at: http://feeds.feedburner.com/ScriptinganswerscomAudioNetwork I had the pleasure of discussing PowerShell with Don Jones during 2 of these.  BTW - if you are not already clued into this website, it is worth an explore.  There is lots of good scripting materials here. ...

Windows PowerShell: Analyst briefing with RedMonk

I recently had the pleasure to do an analyst briefing with Michael Cote' of RedMonk.  I really enjoyed it because until recently Michael was working at BMC so we had a number of shared contacts and he had a deep understanding of mgmt issues so I could have a really technically dense conversation with him.  What was humorous was that ...

Using Format Control Strings.

PSMDTAG:FAQ: How do I display large numbers with commas?PSMDTAG:FAQ: How do I use .NET formatting strings? As scripters, we often spend tons of times trying to get our data formated just the right way.  Often this is an error-prone, frustrating experience.  Windows PowerShell leverages .NET objects to make this task a ton simpler.&...