Solved

problems with Logon scripts on GPOs

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

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

I have never ceased to be amazed how many problems you can encounter on a fresh install of a Windows operating system.  This is certainly case in point& Unable to complete ANY MSI installation.  This means Windows Updates are failing and I can't …
I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

746 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

9 Experts available now in Live!

Get 1:1 Help Now