A
ajkessel
My network group policy overwrites my local "My Documents" mapping.
When I leave the network, "my documents" remains mapped to a network
drive which no longer exists. I'd like to write a batch file to reset
the "My Documents" location, but have had no luck so far.
This question has come up in newsgroups before, see, e.g., <http://
groups.google.com/group/microsoft.public.windowsxp.customize/
browse_frm/thread/491a3e316df31e3f/e3f07c4d79d89970?lnk=st&q=%22my
+documents%22+batch+file&rnum=5#e3f07c4d79d89970> and <http://
groups.google.com/group/microsoft.public.windowsxp.general/browse_frm/
thread/85b7fda9bcc5ecc4/49c8fc88390ed754?lnk=st&q=map+%22my+documents
%22+batch+file&rnum=4#49c8fc88390ed754>, but there are no satisfactory
solutions.
My first attempt was to search through the registry for every key with
the "my documents" path, set that to the desired destination, and
export those registry entries and re-load them with a batch file when
I want to reset "my documents." No luck--either you need to reboot to
have the registry change take effect, or perhaps the group policy is
overriding the registry setting. Maybe there is some way to get the OS
to "reload" the my documents setting from the registry -- but I don't
know what that is.
I also tried this solution <http://www.novell.com/coolsolutions/tools/
14324.html> which adds a local group policy, but changing the shell
personal folder there does not appear to have any effect.
Any suggestions?
When I leave the network, "my documents" remains mapped to a network
drive which no longer exists. I'd like to write a batch file to reset
the "My Documents" location, but have had no luck so far.
This question has come up in newsgroups before, see, e.g., <http://
groups.google.com/group/microsoft.public.windowsxp.customize/
browse_frm/thread/491a3e316df31e3f/e3f07c4d79d89970?lnk=st&q=%22my
+documents%22+batch+file&rnum=5#e3f07c4d79d89970> and <http://
groups.google.com/group/microsoft.public.windowsxp.general/browse_frm/
thread/85b7fda9bcc5ecc4/49c8fc88390ed754?lnk=st&q=map+%22my+documents
%22+batch+file&rnum=4#49c8fc88390ed754>, but there are no satisfactory
solutions.
My first attempt was to search through the registry for every key with
the "my documents" path, set that to the desired destination, and
export those registry entries and re-load them with a batch file when
I want to reset "my documents." No luck--either you need to reboot to
have the registry change take effect, or perhaps the group policy is
overriding the registry setting. Maybe there is some way to get the OS
to "reload" the my documents setting from the registry -- but I don't
know what that is.
I also tried this solution <http://www.novell.com/coolsolutions/tools/
14324.html> which adds a local group policy, but changing the shell
personal folder there does not appear to have any effect.
Any suggestions?