Window 2000 Machine Startup\Shutdown Script

º

ºa¤Ö@¤½¥q

I have added a batch file to Machine Startup Script and Machine Shutdown
Script using Group Policy Console

However, I discovered that both script not run either pc startup or
shutdown, why?

the script for startup is to mount network drive

and the script for shutdown is to umount network drive

Thanks
 
K

Ken B

Is the computer account directly located in the OU to which you've applied
this GPO? Also, does the "Everyone" group have access to the network share?
If not, the computer may not be able to see it, and therefore will not map
it.

Ken
 
º

ºa¤Ö@¤½¥q

Sorry...What means of OU?
I have specified the username and password in the batch file

the script for startup like as follow

Net use P: \\ShareServer\DriverName password /user:username

And the script for shutdown
Net user P: \delete
 
M

Mark Heitbrink [MVP]

Hi,

ºa¤Ö@¤½¥q said:
Sorry...What means of OU?

Organisational Unit.
I have specified the username and password in the batch file
the script for startup like as follow
Net use P: \\ShareServer\DriverName password /user:username

net use doesn´t work in a computer environment. It needs
a user context. So you can´t map the networkdrive with
a computerstartup script. You have to use a User login script.

Mark
 
?

??@??

Hi Mark,

It works now~~

Really thanks for your help

And I would like to know how can I know the script is machine environment or
user environment or for both?

Thanks
 
M

Mark Heitbrink [MVP]

Hi,

??@?? said:
It works now~~
Really thanks for your help
And I would like to know how can I know the script is machine environment or
user environment or for both?

It depends on the commands you are using, so you just have
to try and error it out ...

e.g. a copy command with UNC pathes work with both, but a copy
with mapped drives only work in a user context.

Mark
 
?

??@??

o~~~ really thanks ar Mark~~
^.^
Mark Heitbrink said:
Hi,



It depends on the commands you are using, so you just have
to try and error it out ...

e.g. a copy command with UNC pathes work with both, but a copy
with mapped drives only work in a user context.

Mark
--
Mark Heitbrink - MVP Windows Server
Homepage: www.gruppenrichtlinien.de
W2K FAQ : http://w2k-faq.ebend.de
PM: Vorname@Homepage, Versende-Adresse wird nicht abgerufen.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top