Below a simple, but effective PowerShell script that finds and disables all Oracle EPM Windows Services. Only works on EPM 11.1.2.2.0 and up.
$Services = Get-Service | where {$_.DisplayName -like "Oracle*" } Foreach ( $service in $Services ) { try { Write-Host ( 'Setting "' + $service .DisplayName + '" to manual startup: ' ) -NoNewline Set-Service -Name $service .Name -StartupType Manual write-host "done." } Catch { write-host "failed." } } |
Nice! I use the following script for 11.1.2.4:
ReplyDeletegwmi win32_service -filter "name LIKE 'OracleProcess%' OR name LIKE 'HYS9%'" | foreach {
$service = $_
Write-Host "Changing $service.Name to set Start Type to Manual..."
Get-Service $service.Name | Set-Service -StartupType Manual
}
By the way your script examples don't show up correctly on my work laptop - I am guessing because Google Drive is blocked. Can you please include plain version of the scripts, when the Javascript doesn't load?
This is a very good post for EPM infrastructure engineers, though!
Nice one! Thanks for sharing! Most likely java is blocked which is used to syntax highlight my scripts. Please find the code below:
ReplyDelete--- Start Code ---
$Services = Get-Service | where {$_.DisplayName -like "Oracle*"}
Foreach ($service in $Services)
{
try
{
Write-Host ('Setting "' + $service.DisplayName + '" to manual startup: ' ) -NoNewline
Set-Service -Name $service.Name -StartupType Manual
write-host "done."
}
Catch
{
write-host "failed."
}
}
--- End Code ---