Note:<\/strong> \nIf the file server is an Active Directory member file server, then add the DOMAIN NAME before the %%username%% variable:<\/p>\n\n\n\n
echo net use f: “\\\\fileserver\\share<\/em>” \/user:DOMAIN\\%%username%%<\/code><\/p>\n\n\n\n
For example, if the file server is 10.10.10.10, share name is \u201cFinance,\u201d and AD domain is \u201cContoso.Local\u201d the command would look like this:<\/p>\n\n\n\n
echo net use f: “\\\\10.10.10.10\\Finance<\/em>” \/user:CONTOSO\\%%username%%<\/code><\/p>\n <\/div><\/div><\/div><\/div>\n\n\n\n
\n- In the JumpCloud Admin Portal, go to DEVICE MANAGEMENT<\/strong> > Commands<\/strong>. <\/li>\n\n\n\n
- Click +<\/strong> and choose Command<\/strong>.<\/li>\n\n\n\n
- Enter the following Details<\/strong>:
\n\n- For Name<\/strong>, enter a name that is identifiable to you.<\/li>\n\n\n\n
- For Type<\/strong>, select Windows<\/strong>.\n
\n- Ensure the Windows Powershell option remains unchecked.<\/li>\n<\/ul>\n<\/li>\n\n\n\n
- In the Command*<\/strong> field, enter
cmd.exe \/c c:\\windows\\temp\\setnetdrive.bat<\/code>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n
Under Launch Event<\/strong>, set the Event<\/strong> to Manually<\/strong> to run once per device.<\/li>\n\n\n\n
(Optional) Under Options<\/strong>, configure the command\u2019s timeout settings appropriately, or leave the default settings.<\/li>\n\n\n\n
Under Files<\/strong>, click Upload File<\/strong>.<\/li>\n\n\n\n
Upload the setnetdrive.bat<\/strong> file you created in step 1. Ensure the File Destination<\/strong> is listed as c:\\Windows\\Temp\\setnetdrive.bat<\/strong>.<\/li>\n\n\n\n
Assign the command to the device or device group where you want to apply the registry entry.\n\n- From the Device Groups<\/strong> tab, select one or more device groups. For device groups with multiple OS member types, the policy is applied only to the supported OS.<\/li>\n\n\n\n
- From the Devices<\/strong> tab, select one or more devices.<\/li>\n<\/ul>\n<\/li>\n\n\n\n
- Click Save<\/strong>. <\/li>\n\n\n\n
- From the Commands list, find the command and click Run Now<\/strong> to execute the setnetdrive.bat<\/strong> file on all selected devices.<\/li>\n\n\n\n
- The registry entry is applied and the netuse.bat<\/strong> file is built on the end device, and will be run every time a user logs into that device.<\/li>\n<\/ol>\n\n\n\n
<\/p>\n\n\n\n