Link to home
Start Free TrialLog in
Avatar of diegomirner
diegomirnerFlag for Switzerland

asked on

problems with Logon scripts on GPOs

HI Experts,

Actually im running windows 2003 server with GPOs to MAP shares directory to users, for example here one of the scripts :

net use p: \\data0\test

it work fine , but if I want to change to a different path like

net use p: \\data0\pepe

it doesn’t change it on the user , I have to logon the user , disconnect the share , and then in the next logon it will apply the change.

Can you help to find way it doesn’t apply the changes automatically?

Thanks

Avatar of oBdA
oBdA

Simply disconnect the drive before you map the new one:

if exist P: net use P: /delete
net use p: \\data0\pepe

You can circumvent (most of) these problems if you map the drives non-persistently:

net use /persistent:no
net use P: \\data0\pepe

will map P immediately, even if the script yesterday looked like

net use /persistent:no
net use P: \\data0\test

/persistent:no will prevent the mapped drives from being automatically recreated on logon (the same function as the "Reconnect at logon" checkbox if you map in Explorer).
Avatar of diegomirner

ASKER

HI Alimu,

Thanks for your help again , i tray it like this

if exist P: net use P: /delete
net use p: \\data0\pepe

but it didnt work , any other sugestion ?
thanks
ASKER CERTIFIED SOLUTION
Avatar of himkal
himkal

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
it works perfect , thanks a lot