need help on login scripts

  • Thread starter Thread starter klnyc
  • Start date Start date
K

klnyc

Hi guys.
I have a win2k DC and few win2k wstn. Im trying to write alittle scripts
so it maps out few drives, but it seem its nothing working at all.
I went to the GPO and went to the edit option and browse for that login
script that I saved and still I cant get mapped.
 
net use f: /delete /yes
net use z: /delete /yes
net use o: /delete /yes

net use f: \\servername\c /yes
net use z: \\servername\silverplume /yes
net use o: \\servername\images /yes

i did that in a batch file. then just added it to the group policy on the domain controler.

also put quotes around shares that have a space in the name.
 
James Carney said:
net use f: /delete /yes
net use z: /delete /yes
net use o: /delete /yes

net use f: \\servername\c /yes
net use z: \\servername\silverplume /yes
net use o: \\servername\images /yes

i did that in a batch file. then just added it to the group policy on the domain controler.

also put quotes around shares that have a space in the name.

Whats the slash Yes are for?
You put this login.bat into the sysvol/scripts folder, no?
 
you can put the batch file anywhere you want it to go. i usually put it on a network share.

then go into active directory.
go to the container that contains the accounts that you wish to modify.
right click on the container, and go to the group policy tab.
etiher add a new policy or edit.
goto user configuration in the group pol snap in.
and add your batch file to the logon area.

the slash yes i believe makes it persistent.
i also always delete the network share in the begining so that i can take control of any
network drives in the begining
that someone might be using.
 
James Carney said:
you can put the batch file anywhere you want it to go. i usually put it on a network share.

then go into active directory.
go to the container that contains the accounts that you wish to modify.
right click on the container, and go to the group policy tab.
etiher add a new policy or edit.
goto user configuration in the group pol snap in.
and add your batch file to the logon area.

the slash yes i believe makes it persistent.
i also always delete the network share in the begining so that i can take control of any
network drives in the begining
that someone might be using.

JC,

I did all of that and still dont excuting.
 
and you just want to map drives?

thje users' active directory accounts are in the profile you are runnign policy on?

have you confirmed the bat file works by running it manually?
 
james carney said:
and you just want to map drives?

thje users' active directory accounts are in the profile you are runnign policy on?

have you confirmed the bat file works by running it manually?

Ok, I got it!!...
 
Back
Top