PowerShell Team

Automating the world one-liner at a time…

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

Finding the static methods of a class

<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 ...
Comments are closed.0 0
FAQ

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

Improved Support for WMI

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

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

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

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

Feedback usabilla icon