Skip to content

Instantly share code, notes, and snippets.

@vexx32
Created November 13, 2018 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vexx32/f1cb914d9dd49747ce95bf73a286c4cb to your computer and use it in GitHub Desktop.
Save vexx32/f1cb914d9dd49747ce95bf73a286c4cb to your computer and use it in GitHub Desktop.
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