Welcome to MSDN Blogs
Sign in
|
Join
|
Help
Windows PowerShell
Blog of Windows PowerShell team. Improving the world one-liner at a time.
This Blog
About
Syndication
RSS 2.0
Atom 1.0
Search
Go
Tags
ApartmentState
CMDLET
CMDLET:FORMAT
CMDLET:UTILITY
Custom Snapin
DOCUMENTATION
DOTNET
ENVIRONMENT
ERROR
FAQ
FORMATEXTENSION
Get-Command
Get-Help
Get-Random
Help file
HelpFile
Impersonation
installation
INTERNAL
LANGUAGE
LANGUAGE:CONTROL
PARSER
PHILOSOPHY
Proxy
PsSnapin
Release/Download
Remoting
ScriptCmdlet
SDK
SECURITY
SHELL
TOOL
TYPE:COM
TYPE:WMI
TYPE:XML
TYPEEXTENSION
uninstallation
Archives
May 2008 (7)
April 2008 (18)
March 2008 (18)
February 2008 (12)
January 2008 (13)
December 2007 (4)
November 2007 (26)
October 2007 (6)
September 2007 (8)
August 2007 (11)
July 2007 (5)
June 2007 (27)
May 2007 (33)
April 2007 (11)
March 2007 (28)
February 2007 (16)
January 2007 (34)
December 2006 (25)
November 2006 (26)
October 2006 (10)
September 2006 (17)
August 2006 (16)
July 2006 (20)
June 2006 (22)
May 2006 (11)
April 2006 (62)
June 2006 - Posts
Thursday, June 29, 2006 5:42 PM
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:
FAQ
,
TYPE:COM
Monday, June 26, 2006 1:52 PM
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:
FAQ
Monday, June 26, 2006 1:35 PM
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:
FAQ
Monday, June 26, 2006 4:13 AM
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:
FAQ
,
TYPE:WMI
Saturday, June 24, 2006 8:00 PM
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
Posted by
PowerShellTeam
|
7 Comments
Filed under:
TYPEEXTENSION
,
PHILOSOPHY
Saturday, June 24, 2006 5:19 PM
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:
FAQ
,
PHILOSOPHY
Saturday, June 24, 2006 12:58 AM
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
Posted by
PowerShellTeam
|
4 Comments
Saturday, June 24, 2006 12:52 AM
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:
ENVIRONMENT
Saturday, June 24, 2006 12:28 AM
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
Posted by
PowerShellTeam
|
10 Comments
Filed under:
FAQ
,
TYPEEXTENSION
,
DOCUMENTATION
Friday, June 23, 2006 4:51 PM
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:
DOCUMENTATION
Friday, June 23, 2006 1:40 PM
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
Posted by
PowerShellTeam
|
2 Comments
Friday, June 23, 2006 5:02 AM
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:
FAQ
,
INTERNAL
,
PHILOSOPHY
Wednesday, June 21, 2006 5:25 PM
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
Posted by
PowerShellTeam
|
2 Comments
Filed under:
FAQ
,
CMDLET:FORMAT
,
INTERNAL
,
PHILOSOPHY
Wednesday, June 21, 2006 6:12 AM
$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:
FAQ
,
ERROR
,
PHILOSOPHY
Wednesday, June 21, 2006 5:55 AM
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
Posted by
PowerShellTeam
|
0 Comments
Tuesday, June 20, 2006 1:00 AM
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
Posted by
PowerShellTeam
|
2 Comments
Friday, June 16, 2006 7:41 PM
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:
FAQ
,
DOTNET
Thursday, June 15, 2006 10:10 PM
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:
TYPE:COM
Attachment(s):
start-session.ps1
Thursday, June 15, 2006 12:38 AM
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
Posted by
PowerShellTeam
|
2 Comments
Thursday, June 15, 2006 12:26 AM
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
Posted by
PowerShellTeam
|
0 Comments
Friday, June 09, 2006 10:41 PM
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:
TOOL
Wednesday, June 07, 2006 12:56 AM
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:
TOOL