By default, mapped drives are —they reconnect automatically after you log off and back on. To create a temporary mapping that disappears when you log off, use:
By default, mapped drives in cmd might not reconnect after you restart your computer. The /persistent switch controls this. cmd command to map network drive
Typing net use without any arguments displays a list of all current network connections. use: By default
net use [drive letter:] \\server\share [/persistent:yes/no] cmd command to map network drive
The command used to map a network drive in cmd is net use . This command allows you to connect to a network resource, such as a shared folder or drive, and assign it a drive letter.
For more verbose information including credential details: