Solved

problems with Logon scripts on GPOs

Posted on 2006-11-28
4
287 Views
Last Modified: 2010-04-18
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

0
Comment
Question by:diegomirner
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 84

Expert Comment

by:oBdA
ID: 18028503
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).
0
 

Author Comment

by:diegomirner
ID: 18028774
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
0
 
LVL 1

Accepted Solution

by:
himkal earned 250 total points
ID: 18030362


why you are using double slash

use net use p:\data0\pepe
0
 

Author Comment

by:diegomirner
ID: 18037133
it works perfect , thanks a lot

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Preface Having the need * to contact many different companies with different infrastructures * do remote maintenance in their network required us to implement a more flexible routing solution. As RAS, PPTP, L2TP and VPN Client connections are no…
Scenerio: You have a server running Server 2003 and have applied a retail pack of Terminal Server Licenses.  You want to change servers or your server has crashed and you need to reapply the Terminal Server Licenses. When you enter the 16-digit lic…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question