Tech Support > Microsoft Windows > Security & Administration > Mapped Drive
Mapped Drive
Posted by on December 29th, 2005


How can I map a drive to a share via the registry. In the past one could add
it to the HKCU\Software\Microsoft\Windows
NT\CurrentVersion\Network\Persistent Connections
registry setting to achive this. This setting seems to nothing on XP. Is
there another key now?
I know how to do this via a script / GPO, but would rather use the registry.
Thnaks BUC


Posted by Steven L Umbach on December 29th, 2005


Offhand I don't know but what I would do is to use something like Regshot to
take a snapshot of your registry before and after you create a share to see
what changes in the registry. Regshot is free. --- Steve

http://www.snapfiles.com/get/regshot.html --- Regshot

<bucrepus> wrote in message news:%23hmaftBDGHA.3992@TK2MSFTNGP12.phx.gbl...
> How can I map a drive to a share via the registry. In the past one could
> add
> it to the HKCU\Software\Microsoft\Windows
> NT\CurrentVersion\Network\Persistent Connections
> registry setting to achive this. This setting seems to nothing on XP. Is
> there another key now?
> I know how to do this via a script / GPO, but would rather use the
> registry.
> Thnaks BUC
>
>



Posted by Ian on December 29th, 2005


I take it you're aware of the NET USE command and its syntax? This will do
most such things from a batch-file without resorting to registry-modification.

For a more elegant approach there is AutoIt (http://autoitscript.com) - the
DriveMapAdd command does the same thing, and with this you can build an
executable that will (re)connect shares.





Similar Posts