Solved

problems with Logon scripts on GPOs

Posted on 2006-11-28
4
282 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
  • 2
4 Comments
 
LVL 83

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now