Skip to content

Instantly share code, notes, and snippets.

@pinecones-sx
Created November 16, 2015 17:41
Show Gist options
  • Save pinecones-sx/9dfaa58a79ee5986147d to your computer and use it in GitHub Desktop.
Save pinecones-sx/9dfaa58a79ee5986147d to your computer and use it in GitHub Desktop.
Pass an object into function, function starts a browser session with what MIGHT be the proper reference for the object type.
function Global:Get-ObjectTypeInfo{
param($objType)
$objTypeAsString=@()
if($objType -isnot [type]) {
If ($objType -is [string]) {$objTypeAsString=$objType}
Else{$objTypeAsString=($objType.GetType()).FullName}
}
Else{$objTypeAsString=$objType.FullName}
Start "https://msdn.microsoft.com/library/$objTypeAsString"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment