Solved

problems with Logon scripts on GPOs

Posted on 2006-11-28
4
285 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

Suggested Solutions

Title # Comments Views Activity
AD Migration / Upgrade 4 54
Windows 2003 new patches 11 72
setup share and NTFS permissions. 12 78
Memory Leak in Windows 2012, Non-Paged pool 8.5GB 25 126
by Batuhan Cetin Within the dynamic life of an IT administrator, we hold many information in our minds like user names, passwords, IDs, phone numbers, incomes, service tags, bills and the order from our wives to buy milk when coming back to home.…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

803 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