Is there a registry setting that can enable/disable the script host?
I have an app written in VB6 that uses the Script Shell object to run
some things. On some of my apps they have scripting turned off. I'd
like to turn it on via code so that I can use the scripting object.

Thanks.

Re: Enable/Disable Scripting Host through code by Michael

Michael
Fri Jan 16 22:46:13 CST 2004

Mike Dwyer wrote:
> Is there a registry setting that can enable/disable the script host?
> I have an app written in VB6 that uses the Script Shell object to run
> some things. On some of my apps they have scripting turned off. I'd
> like to turn it on via code so that I can use the scripting object.


As of WSH 5.6 ...

HKEY_LOCAL_MACHINE
\SOFTWARE
\Microsoft
\Windows Script Host
\Settings

named value: Enabled [REG_SZ]

"1" = enabled
"0" = disabled

--
Michael Harris
Microsoft.MVP.Scripting

Windows 2000 Scripting Guide
Microsoft® Windows®2000 Scripting Guide
http://www.microsoft.com/technet/scriptcenter/scrguide/sagsas_overview.asp

TechNet Script Center Sample Scripts
http://www.microsoft.com/downloads/release.asp?ReleaseID=38942

WSH 5.6 documentation download
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en


Re: Enable/Disable Scripting Host through code by bdtmike

bdtmike
Sat Jan 17 22:41:13 CST 2004

"Michael Harris \(MVP\)" <<mikhar at="mvps.org" />> wrote in message news:<#l7H$SL3DHA.2056@TK2MSFTNGP10.phx.gbl>...
> Mike Dwyer wrote:
> > Is there a registry setting that can enable/disable the script host?
> > I have an app written in VB6 that uses the Script Shell object to run
> > some things. On some of my apps they have scripting turned off. I'd
> > like to turn it on via code so that I can use the scripting object.
>
>
> As of WSH 5.6 ...
>
> HKEY_LOCAL_MACHINE
> \SOFTWARE
> \Microsoft
> \Windows Script Host
> \Settings
>
> named value: Enabled [REG_SZ]
>
> "1" = enabled
> "0" = disabled
>
> --
> Michael Harris
> Microsoft.MVP.Scripting
>
> Windows 2000 Scripting Guide
> Microsoft® Windows®2000 Scripting Guide
> http://www.microsoft.com/technet/scriptcenter/scrguide/sagsas_overview.asp
>
Bingo! That did it. Thanks a lot.