-Q- Posted August 7, 2007 Share Posted August 7, 2007 Gents,I've gor a problem with my RIS installation. When my client is installed, the local administrator logs on for 1 time. In this session I want to installed my default applications by using a VB-script. But when the logon completes XP asks me to "OK" the vb-script. Is there a way to kick off the vb-script without any questions?-Q- Link to comment Share on other sites More sharing options...
boredazfcuk Posted August 21, 2007 Share Posted August 21, 2007 myscript.vbs will run another .vbs script without the prompt.myscript.vbs:Dim WSHShell, WshEnvSet WSHShell = CreateObject("WScript.Shell")Set WSHEnv = WSHShell.Environment("PROCESS")WSHEnv("SEE_MASK_NOZONECHECKS") = 1WSHShell.Run "\\MYDOMAIN\NETLOGON\scripts\login\calledvbs.vbs",1,TrueWSHEnv.Remove("SEE_MASK_NOZONECHECKS")call it from a batch file...@echo offsetlocal extensionsenablecscript \\server\netlogon\scripts\login\myscript.vbs //nologoexityou'll need to modify those files to suit your needs. Link to comment Share on other sites More sharing options...
Henkes Posted August 28, 2007 Share Posted August 28, 2007 How do you call the vbscript, by just using the vbscript.vbs?or do you use a batch file which contains:call cscript somescript.vbs //nologoexit Link to comment Share on other sites More sharing options...
meeuws Posted August 29, 2007 Share Posted August 29, 2007 I always set the command shell as defaulf handler in for script via the 'cscript //H:cscript' command. In fact thats the first command in my own ris install script. Link to comment Share on other sites More sharing options...
boredazfcuk Posted September 4, 2007 Share Posted September 4, 2007 How do you call the vbscript, by just using the vbscript.vbs?or do you use a batch file which contains:call cscript somescript.vbs //nologoexityescall cscript somescript.vbs //nologothis way i don't get prompted to run somescript.vbssomescript.vbs removes the zone checks that bring up the 'ok' prompt.then it calls a bunch of other scripts that need wscript to run... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now