# 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:


About the author: Jaap Brasser

Jaap is a Senior System Engineer in the Financial Services industry. He focuses on Microsoft and related technologies and has a passion for PowerShell. In his spare time he maintains his Blog, Twitter feed, @Jaap_Brasser, and contributes on the Official Scripting Guys Forum and Windows PowerShell TechNet forums

Related Posts