HOWTO: Map network drive remotely


This Howto shows necessary commands for mounting a network drive with administrator rights (works in Windows XP \ SP1 \ SP2)


1. Create a new Admin User (type from the command line):

   - "Net user" + username + "" + password + "/ add" (for example: "net user hack pass321 / add") - create the user "hack" with the password "pass321"
"net localgroup" + group_name + "" + username + "/ add" (for example: "net localgroup administrators hack / add") - the user "hack" becomes the administrator

2. Create a file tmp.inf:

   - Create a file "C: \ windows \ security \ templates \ tmp.inf", which should contain:
[version]
signature = "$ CHICAGO $"
DriverVer = 07/01 / 2001,5.1.2600.0
[Profile Description]
% SCEProfileDescription%
[Registry Values]
MACHINE \ System \ CurrentControlSet \ Control \ Lsa \ ForceGuest = 4.0

3. Import it into local policies:

   - Type the command that will create the file and import it into local policies, this is necessary in order for local policies to allow access as a normal input and not as a guest.
(typed from the command line):
"Secedit / configure / db c: \ windows \ security \ database \ tmp.sdb / cfg c: \ windows \ security \ templates \ tmp.inf"
Description of the step by step command:
1) secedit is a program that applies local policy settings
2) / configure - a command that uses settings from the saved “c: \ windows \ security \ templates \ tmp.inf”
3) / db is a database that “secedit” saves and imports into local policies, in this case it is
"c: \ windows \ security \ database \ tmp.sdb"

4. Correct the network drive:

   -You can also correct the network drive itself, and make it multiplayer
(typed from the command line):
1) from the beginning, delete it “net share“ + drive letter + ”$ / delete”
2) create anew, but with the “unlimited” parameter: “net share“ + drive-letter + ”$ =“ + drive-letter + ”: \ / UNLIMITED”
When you connect a disk, you must use: "\\ ip-address \ drive-letter $", and use the created User and password with administrator rights.

Also consider using Action1 to map network drive remotely if:
- You need to perform this action on multiple (hundreds or even thousands) computers simultaneously.
- Some of your endpoints are laptops not connected to corporate network at all times.

Action1 is a cloud-based platform for software deployment, software/hardware inventory, patch management, endpoint configuration and more. It is free with basic functionality.


Other Relevant HOWTOs: