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.
![mac network drive force permissions to be same for all files in a folder mac network drive force permissions to be same for all files in a folder](https://kb.synology.com/helpfile/DSM/6.2.4/online_img/dsm/AdminCenter/file_share_privilege/howto450-1.png)
#MAC NETWORK DRIVE FORCE PERMISSIONS TO BE SAME FOR ALL FILES IN A FOLDER HOW TO#
READ ALSO - How to rename folder in CMD (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.
![mac network drive force permissions to be same for all files in a folder mac network drive force permissions to be same for all files in a folder](https://venturebeat.com/wp-content/uploads/2020/06/onna-product0screenshot.png)
The above command will work and completes successfully without asking the user to provide a username/password if the user has authorized access to this network share. Map network drive cmd Net use with username and password