Is Oracle WebLogic10 Installed?
We have a handful of boxes running WebLogic10 so it's not part of the base image. Here's a quick way to determine if it's installed.
$reg = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey('LocalMachine', $myComputer);
$subKey= "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Oracle WebLogic" -replace '\\', '\\';
if (!($reg.OpenSubKey($subkey))) {
Write-Warning ("${myComputer}: WebLogic10 not installed");
$pass = $false;
}
Comments
Anonymous
July 06, 2011
why the -replace '', ''; don't think thats necessary with powershell is it?Anonymous
July 07, 2011
The comment has been removed