Re: script to unmap and remap network drives

Tech-Archive recommends: Speed Up your PC by fixing your registry




"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.


.



Relevant Pages

  • Re: script to unmap and remap network drives
    ... We're migrating shares from one server to another (a new DFS namespace ... time to put your drive mappings into a centralised netlogon file. ... It seems to me that he is mapping non-persistently in his logon scripts, ... consolidated root and what that does to EXISTING persistent drive mappings). ...
    (microsoft.public.windows.server.scripting)
  • Re: Question re: Active Directory & User Profiles
    ... > Or more specifically, user profiles. ... That server is the Domain Controller. ... > workstations are joined to the domain. ... Microsoft MVP - Windows Server Directory Services ...
    (microsoft.public.windows.server.active_directory)
  • RE: from 2000 to 2003 but not upgrade
    ... Before you take any action to the new server, rename the 2k domain first, ... use the migration process to migrate user accounts etc. ... Meanwhile, you mentioned that you want to keep the original user profiles, ...
    (microsoft.public.windows.server.migration)
  • Re: Strange Issues Moving from ISA 2000 to New Domain
    ... Leave DHCP unconfigured until the old server ... On each workstation use the File and Setting Transfer Wizard (perferably ... off of the XP CD) and save the User Profiles to a safe place. ... Install ISA on a separate duel-homed server. ...
    (microsoft.public.isa.configuration)
  • Re: DNS Change Outlook/Client User Profiles and Data
    ... data access issue will it recognize the existing user profiles and not ... prior client PCs can access their Outlook Contact,Calendars or Old/ ... On the old server install the DNS was HOMEISN.ISN.local on the New one ... which had the account change. ...
    (microsoft.public.windows.server.sbs)