net use Z: \\ServerName\Share Password /user:Domain\Username 3. Cleaning Up and Troubleshooting
By default, drives mapped through CMD are often temporary. To make them "better"—meaning they survive a computer restart—you must use the /persistent Temporary (Standard): net use Z: \\ServerName\SharedFolder Persistent (Better): net use Z: \\ServerName\SharedFolder /persistent:yes 2. Handling Credentials cmd map network drive better
* **Reconnecting at Logon**: To ensure that your network drives are always available, consider adding a command to map the drive to your Windows startup scripts. cmd map network drive better