access denied to wscript at login but runs after login 
Author Message
 access denied to wscript at login but runs after login

Hello, I cannot run wscript.exe during the login proccess.  But it runs fine
once i'm already logged in.  The logon.bat file only has two commands

wscript
pause

after wscript i get an "Access to the specified device, path or filename is
denied"

the file exists, and even if i use an absolute path to it,
c:\windows\wscript.exe i still get the same error.  What's more confusing is
that cscript runs fine during login.  I can't see how there would be
anything wrong with permissions since it's win98 and doesn't really have
file permissions.  the only other thing i can think of is that a system
policy is affecting it somehow... but the user policies aren't applied until
after logging in... and even if i login as an administrator which has full
priveledges in the config.pol file i still get the error.  If i rename the
file to script.exe and try c:\script.exe i still get the access denied
error.  Also, it works fine on one of the computers on the lan...wscript.exe
runs during the login process...  but on all the others i get an acess
denied.  I cannot find what the difference between the computers is that
allows it to run on one and not the other.  I looked through the registry a
bit and didn't find anything that seemed to be the problem... i have a
feeling the problem is in the registry somewhere though.  Any help would be
appreciated

thanks

eric



Sat, 10 Jan 2004 22:03:23 GMT  
 access denied to wscript at login but runs after login
Hi,

Try cscript instead.

Regards,

Serge M. Chegorian, MCSE


Quote:
> Hello, I cannot run wscript.exe during the login proccess.  But it runs
fine
> once i'm already logged in.  The logon.bat file only has two commands

> wscript
> pause

> after wscript i get an "Access to the specified device, path or filename
is
> denied"

> the file exists, and even if i use an absolute path to it,
> c:\windows\wscript.exe i still get the same error.  What's more confusing
is
> that cscript runs fine during login.  I can't see how there would be
> anything wrong with permissions since it's win98 and doesn't really have
> file permissions.  the only other thing i can think of is that a system
> policy is affecting it somehow... but the user policies aren't applied
until
> after logging in... and even if i login as an administrator which has full
> priveledges in the config.pol file i still get the error.  If i rename the
> file to script.exe and try c:\script.exe i still get the access denied
> error.  Also, it works fine on one of the computers on the
lan...wscript.exe
> runs during the login process...  but on all the others i get an acess
> denied.  I cannot find what the difference between the computers is that
> allows it to run on one and not the other.  I looked through the registry
a
> bit and didn't find anything that seemed to be the problem... i have a
> feeling the problem is in the registry somewhere though.  Any help would
be
> appreciated

> thanks

> eric



Sun, 11 Jan 2004 07:27:52 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. NH: Need to have user login with their NT login

2. login.bat -> login.vbs help required

3. Converting a login.bat to login.wsh

4. Custom WSH login *before* Client32 login?

5. VB6: WScript Run method yields Permission Denied in Win2k

6. login script wont run

7. "run as" in login script

8. Login script for running assoc command in Win98

9. vb login script not running sbsclnt.exe - MS Small Business Server

10. FYI: Win2k Login Script Not Running

11. Running cscript from GPO Login Policy

12. Login script not running right

 

 
Powered by phpBB® Forum Software