Source: Windows Script Host, Type: Failure Audit, Event ID: 1000,
Text: Attempt to execute Windows Script Host while it is disabled..
The Service is running under a local user-account with local admin-rights and logon as service rights
The Error only happens with NT4.0 (Service Pack 4 or 5), with Windows 2k or XP everything works fine.
Does anyone knows what "WSH disabled" means, or any other ideas what I can try?
thanks and eegards,
Frank
Solution:
srvany calls a *.bat file with following content:
:again
wscript c:\script.vbs
IF NOT "%ERRORLEVEL%"=="0" GOTO again
So wscript is called till there is no error anymore. To save resources write "sleep 2000" after the line ":again "
> Found the solution:
> It seems that wscript is not completely loaded during startup, but srvany-Service starts already.
Hi
Yes, this "Attempt to execute Windows Script Host while it is disabled" during the startup of NT4 is also reported
here for people using vbscript logon scripts. I think this problem was introduced by WSH 5.6 or one of it's updates.
--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter