![]() Also, future connections during the same session will be also persistent. persistent:Yes: The connection that you’re currently creating will be persistent. So make them persistent by using the /persistent switch. By default, if we use the command above to map drive the mapped drive would disappear after you restarted the computer. Mapped drives are not persistent by default and to do that you need to use some cmd commands. What if you need to map a drive form a computer on the network that you have administrator access? Yes is simply easy just you need to change a part of the net use command: net use T: \\testpc\D$ /u:username password Tip!! Use “/u:domainname\username password” command in the script to include username password. ![]() Change the later and the path if it is different. Tip! If you want to map multiple drives just keep repeating steps 2 and 3. READ ALSO - How to Create Batch to Delete File Automatically – Command Create new T: drive mapping The command prompt will ask you for the password. Most people now days like to avoid plain text and for this, you can specify only the username. ![]() ![]() Tip! Use “*” instead of the letter so in this way the system will use automatically an unused drive letter.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |