0
1
I often have to replicate the mapping of drives of one machine to another. While I know how to easily output the data for the CURRENT user I have not found a way of doing this for others who are not currently logged on which for various reasons I need to be able to do.
I've tried in vain finding the data in the registry (once again I can find the mapped drives of the CURRENT user in HKCU\NETWORK but not for other users) and my searches on the internet haven't been too useful either so any help would be greatly appreciated!
1
Those "weird id things" are Security Identifiers (SIDs). Using
– Richard – 2011-10-06T09:17:56.283psgetsid
(form Sysinternal's PSTools) you can translate to/from user/group names. SIDs remain fixed when groups and users are renamed, hence references don't need to be updated.Now you go getting all technical :-) So your saying they are not going to change so Alen could import into them easily. . . In Admin access will all the users show up in all situations? In Win7 I am not seeing my alternate user? – Psycogeek – 2011-10-06T09:31:14.963
SIDs are fixed. The set under HKEY_ALL_USERS is the set of users with local profiles (so that can change). Not sure what you mean by "in admin access [...]". Neither what you mean by alternate user. – Richard – 2011-10-06T09:34:06.587
I looked in the HKUSERS but did not find the NETWORK sub folder in them. Maybe I was forgetful enough not to check if the account had mapped drives to begin with so I'll let y'all know tomorrow when I can test it out. Also, thanks for pointing out psgetsid, I already use psexec and find it tremendously helpful. – Smitty – 2011-10-06T09:37:34.430
if I enter the registry as admin, should I be able to see all users in all situations. My alternate user, my own second account, my backup account. I think i shoud jump back to xp, and look closer. – Psycogeek – 2011-10-06T09:44:22.160
Tried it today guys and no luck, anything else to try perhaps? – Smitty – 2011-10-07T05:23:24.150
Out of hundreds of IT type people who showed how to do this, most of them used the Scripting method at log-in/startup. I saw only one that added it direct to the registry itself. by loading user hives and edited them. Being XP I would try and edit the registry, and use the Export-Alter-Import. I would have to see it there, then alter. If that does not work, that leaves changing your question to how to Script the addition of Network mapped drives at user log-in. – Psycogeek – 2011-10-07T06:19:05.537