Welcome to MSDN Blogs Sign in | Join | Help

June 2006 - Posts

Listing all the COM automation PROGIDs

<edited 7/2/2006 to add categories and PSMDTAGs> Windows PowerShell allows you to program against COM automation. The typical way to do this is : $x = new-ojbect -ComObject <PROGID> The question then is, how do I know what progids I can use.
Posted by PowerShellTeam | 3 Comments
Filed under: ,

Finding the static methods of a class

There are 2 ways to find the static methods of a class: 1) SDK documentation. 2) The Cmdlet: Get-Member
Posted by PowerShellTeam | 5 Comments
Filed under:

Windows PowerShell One Liner: Name to IP Address

<Edited 7/2/2006 to add tags and category> Wei Wu provided a nice one liner in response to a query in our NewsGroup: Microsoft.Public.Windows.PowerShell about how to resolve a hostname into an IP Address: PS> [ System.Net.Dns]::GetHostAddresses("
Posted by PowerShellTeam | 5 Comments
Filed under:

Improved Support for WMI

<Edited 7/2/2006 to add tags and categories> We have recently completed work on improved support for WMI including: Improved Adapters for WMI objects and classes Most notably the ability to easily invoke methods on both Direct language support for
Posted by PowerShellTeam | 13 Comments
Filed under: ,

BaseName for FileInfo objects

<Edited to add categories> In our active, responsive, and useful newsgroup Microsoft.Public.Windows.PowerShell (SELL SELL SELL :-) ), MVP Alex Angelopoulos recented posted the following: Although file extension changing is a common technique in

Managing Active Directory with Windows PowerShell

MOW is now posting the details of his Managing Active Directory with Windows PowerShell demo that he performed at my TechEd talk. This is worthwhile for everyone to review. For the people at the talk, we covered a huge amount of data in a very short time
Posted by PowerShellTeam | 11 Comments
Filed under: ,

Windows PowerShell One-Liner: List all the subdirectories in the current directory

dir | where {$_.PsIsContainer} Alternatively you could: dir |where {$_.mode -match "d"} Jeffrey Snover Windows PowerShell Architect

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
Posted by PowerShellTeam | 1 Comments
Filed under:

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

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
Posted by PowerShellTeam | 6 Comments
Filed under:

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

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
Posted by PowerShellTeam | 10 Comments
Filed under: , ,

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

$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
Posted by PowerShellTeam | 3 Comments
Filed under: , ,

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

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

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.
Posted by PowerShellTeam | 3 Comments
Filed under: ,

TECHED: Start-Session Script

Before my TechEd sessions, I ran a Windows PowerShell script which used animated figures to inform the users how long it would be until the session would start. It threw out some wisecracks along the way to keep things light and maintain their attention.
Posted by PowerShellTeam | 0 Comments
Filed under:

Attachment(s): start-session.ps1

TechEd Superstars: MOW, Jones, and Hanselman

Boy did I have a great time at TechEd! On Sunday, I got to finally meet Mark Van Orsouw (MOW of http://mow001.blogspot.com/ fame) and we both ran into Scott Hanselman ( of http://www.hanselman.com/blog/ fame). It was a blast to spend a couple hours sharing

Tom's Hardware Windows PowerShell article

Check out Scott Fulton's latest article about my Windows PowerShell talk at TechEd. You can also see pictures of the only tie worn at TechEd Boston! :-) http://www.tgdaily.com/2006/06/14/teched2006_powershell_may_underlie_admin_guis/ For those of you

Windows PowerShell at TechEd

I'll be presenting 2 talks at TechEd in Boston: MGT306 - Windows PowerShell: Solving Mgmt Problems 6/12 from 9-10:15 MGT308 - Windows PowerShell: Next Generation Command Line Scripting 6/13 10:15-11:30 I've given both these talks before but these are
Posted by PowerShellTeam | 0 Comments
Filed under:

PowerShellIDE

Check out the amazing PowerShellIDE at http://PowerShell.com . Many of you probably already know Dr Tobias Weltner from his product SystemScripter http://www.scriptinternals.com . The PowerShell team has been talking to Tobias on and off for years now
Posted by PowerShellTeam | 10 Comments
Filed under:
 
Page view tracker