-
-
Save vexx32/f1cb914d9dd49747ce95bf73a286c4cb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param( | |
[Parameter(Position = 0, Mandatory, ValueFromPipeline)] | |
[Alias('Server')] | |
[string[]] | |
$ComputerName | |
) | |
begin { | |
$url1 = "https:/me.me.com/Vapp/5.0/api/OSI?assetName=" | |
$url2 = "/OSI.DiscoveryDetails/OSI.SoftwareInstance/SoftwareInstance.Middleware/Middleware.Contact?contactType=PRIMARYRESOLVER/OSI.SoftwareInstance?ColumnSelect=username;,OSI.DiscoveryDetails?ColumnSelect=olaKeonDomain,SoftwareInstance.Middleware?ColumnSelect=installPath,Middleware.Contact?ColumnSelect=qname,OSI?ColumnSelect=environment&format=json" | |
} | |
process { | |
foreach($Server in $ComputerName) { | |
$QueryUrl = $url1 + $Server + $url2 | |
Start-Process -FilePath "iexplore.exe" -ArgumentList $QueryUrl | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment