New
#1
Run login command as Administrator
I used to have a network drive mapped to U:, but I have moved it to the local machine.
Some programs (one in particular: iTunes) don't do well if you move their file paths around, plus it would be nice if all the machines on the network could have the same setup. So now I want to have a virtual u: mapped to a location on C:\.
I could use NET USE. However, 1) this means I now have to maintain share permissions as well as local permissions (although this is not a big deal) and 2) I am not sure if this is a waste of resources- is the system now routing all this traffic through the network layer when it doesn't have to?
So I want to use "subst". The problem on Vista/W7 is that this is a per-user command, and it will not show up in the explorer unless it has been run twice- as both the current user and as Administrator.
So the question becomes: How do you run the command (either in a batch file or through some registry entry) as an Administrator at User login?
(Note: I am currently using NET USE with a localhost address. If someone has a better solution to this, please post. But it would also be nice to know how to run the admin command for any and all users at login).