Re: script to unmap and remap network drives
- From: "Pegasus \(MVP\)" <I.can@xxxxxxxxxx>
- Date: Fri, 25 Jul 2008 20:46:29 +0200
"Phil McNeill" <philmcneill@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:%239WL59n7IHA.1196@xxxxxxxxxxxxxxxxxxxxxxx
Any suggestions on how I could script changing persistent drive mappings
on several hundred user profiles to change the server name they point to?
We're migrating shares from one server to another (a new DFS namespace
actually), and we have a lot of users who have manually mapped drives for
themselves (on top of the ones we map for them with their login scripts).
I need a way to parse the Windows registry and grab all the values for
each drive mapping's "RemotePath" value in HKEY_CURRENT_USER\Network,
unmap anything that points to the old server (e.g. "net use g: /d") and
then remap that same driveletter to the same sharename with a new
servername.
Too much to ask?
Thanks for any tips.
Windows Server 2003 domain with a mix of XP and W2K clients.
Having persistent drive mappings in a domain environment is not
a good idea, as you see yourself right now. This would be a good
time to put your drive mappings into a centralised netlogon file. At
the same time you should turn off persisten connections.
.
- Follow-Ups:
- Re: script to unmap and remap network drives
- From: Al Dunbar
- Re: script to unmap and remap network drives
- References:
- script to unmap and remap network drives
- From: Phil McNeill
- script to unmap and remap network drives
- Prev by Date: Re: NTBackup log files - HOWTO rename them
- Next by Date: Re: FTP Transfer
- Previous by thread: script to unmap and remap network drives
- Next by thread: Re: script to unmap and remap network drives
- Index(es):
Relevant Pages
|