# PSTip Query MSDN from PowerShell

Note: This tip requires PowerShell 2.0 or above.

To get more information about any object, class or attribute the MSDN library is often a good resource. Using Start-Process we can accelerate this process:

Start-Process -FilePath "http://social.msdn.microsoft.com/Search/en-US?query=Excel.Application"

To automate this further, we can wrap this in a function.

Function Search-Msdn {
        [System.Globalization.Cultureinfo]$Culture = 'en-US'

	foreach ($Query in $SearchQuery) {
    	Start-Process -FilePath "http://social.msdn.microsoft.com/Search/$($Culture.Name)?query=$Query"

Whenever you require more information on an object, object property or .Net class, this function will open the MSDN site displaying the search results for the query that has been entered. The full version of this function will be maintained in the Technet Script Gallery:


Share on: