Disabling/Enabling wsh

Disabling/Enabling wsh

Here are instructions for disabling wsh. This is particularly used by DBAs to run RDA (Remote Diagnostic Agent) to gather Oracle and Oracle-related diagnostics.

· Run regedit
· Go to HKEY_LOCAL_MACHINESoftwareMicrosoftWindows Script HostSettingsEnabled (the Microsoft doc says to create it if its not there)
· Set the value to 0

That’s it. You get the message:

Windows Script Host access is disabled on this machine. Contact your administrator for details.

If you try to use it.

If it needs to be re-enabled, then you set the value to 1 – me and Andy often need to use it on the database servers to get diags for Oracle, but we should disable it each time after use.

The MS reference is:

Ms ref

Advertisements