Search Engine: Elastic

Article ID: 130047, created on Dec 22, 2016, last review on Dec 22, 2016

  • Applies to:
  • Operations Automation 7.0
  • Operations Automation 6.0

When a Windows-based Plesk configuration is added in Odin Automation, to prevent conflicts between Windows Updater and Plesk installer the following scripts should be added to the Plesk configuration:

Note: These scripts also switch Plesk locale to DE.

Pre-upgrade script:

net stop wuauserv
C:\Windows\system32\reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v AUOptions /t REG_DWORD /d 2 /f >> \reg.log 2>&1
net start wuauserv ||  echo "pre-install script finished"

Post-installation script:

"C:\Program Files (x86)\Parallels\Plesk\bin\init_conf" -u -city '---'

"C:\Program Files (x86)\Parallels\Plesk\bin\server_pref" -sd -locale de-DE

FOR /F "tokens=*" %%i IN ('"C:\Program Files (x86)\Parallels\Plesk\bin\locales" -l ^| findstr -v de-DE') DO (

    IF NOT %%i == "de-DE" (
        "C:\Program Files (x86)\Parallels\Plesk\bin\locales" --disable %%i
    )
)

"C:\Program Files (x86)\Parallels\Plesk\bin\locales" --enable en-US
"C:\Program Files (x86)\Parallels\Plesk\bin\locales" --set-default de-DE
"C:\Program Files (x86)\Parallels\Plesk\bin\admin" -u -locale de-DE
"C:\Program Files (x86)\Parallels\Plesk\bin\plesk.exe" db "update clients set locale='de-DE' where id = 1"
"C:\Program Files (x86)\Parallels\Plesk\bin\plesk.exe" db "update smb_users set locale='de-DE' where id =1"

net stop wuauserv
C:\Windows\system32\reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v AUOptions /t REG_DWORD /d 4 /f >> \reg.log 2>&1
net start wuauserv || gpupdate /force ||  echo "post-install script finished"

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07 0871c0b47b3b86ae3b1af4c2942cd0ce 1941880841f714e458ae4dc3d9f3062d 956c448bddc7e1f3585373687602379f 6f1456866eed87488c0f02b298a741c0

Email subscription for changes to this article
Save as PDF