Showing results for June 2006 - PowerShell Team

Jun 29, 2006
0
0

Listing all the COM automation PROGIDs

PowerShell Team
PowerShell Team

<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.  Here are there 3 answers I'm lucky enough to be in category 3 so I'll share a...

FAQTYPE:COM
Jun 26, 2006
0
1

Finding the static methods of a class

PowerShell Team
PowerShell Team

<Edited 7/2/2006 to add categories and tags> In the previous entry, it showed how you could use the static method GetHostAddresses of the [System.Net.Dns] class to resolve a hostname.  This begs the question, how do you find the static methods of a class.  There are 2 answers to this: 1) SDK documentation.  (remember the trick ...

FAQ
Jun 26, 2006
0
0

Windows PowerShell One Liner: Name to IP Address

PowerShell Team
PowerShell Team

<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("www.msn.com") IPAddressToString : 207.68.173.76Address       &...

FAQ
Jun 25, 2006
0
0

Improved Support for WMI

PowerShell Team
PowerShell Team

<Edited 7/2/2006 to add tags and categories>We have recently completed work on improved support for WMI including: Everyone that uses WMI owes a debt of gratitude to Greg Ramsey.  Greg did an MMS session and lab focused on Scripting SMS using VBscript and Windows PowerShell.  Jim Truher and I joined Greg to host a Birds of a...

FAQTYPE:WMI
Jun 24, 2006
0
0

BaseName for FileInfo objects

PowerShell Team
PowerShell Team

<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 administrative tasks, the System.IO.FileInfo class does not provide a direct Basename ...

PHILOSOPHYTYPEEXTENSION
Jun 24, 2006
0
0

Managing Active Directory with Windows PowerShell

PowerShell Team
PowerShell Team

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 so it would be worth while to walk through the details.  For everyone ...

FAQPHILOSOPHY
Jun 23, 2006
0
0

Cleaning up obsolete Windows PowerShell Aliases

PowerShell Team
PowerShell Team

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

ENVIRONMENT
Jun 23, 2006
0
0

Leveraging Windows PowerShell Type Extensions to get documentation

PowerShell Team
PowerShell Team

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

FAQDOCUMENTATIONTYPEEXTENSION
Jun 23, 2006
0
0

Windows PowerShell documentation

PowerShell Team
PowerShell Team

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

DOCUMENTATION

Feedback