AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Disconnected to netdrive5/1/2023 ![]() Future connections you make are not persistent until you turn the toggle back on. /persistent:No: Turns off the persistency toggle.Future connections you make using the command during the same session are also persistent (you don’t need to keep using the switch) until you use the /persistent:No switch to turn it off. /persistent:Yes: Makes the connection you’re currently creating persistent.The desktop mounts the C: drive of the laptop as a share, known as Z: This share stays around. If you’d rather those mapped drives stick around, you can make them persistent by using the /persistent switch. I have a laptop (Windows 10 Pro, WiFi) and a desktop (Windows 10 Home, wired). If we map drives using the commands we’ve talked about so far, the mapped drives would disappear when you restarted your computer. For example, if we wanted to connect the same share from above, but with the username HTG and the password CrazyFourHorseMen, we’d use the command: net use s: \\tower\movies /user:HTG CrazyFourHorseMenīy default, mapped drives are not persistent. ![]() If the share to which you’re connecting is protected with some sort of authentication, and you’d rather not type in the credentials every time you open the network drive, you can add the user name and password to the command with the /user: switch. Doing a quick search of my reg, I found the following keys contain drive map history: HKEYCURRENTUSER\Software\Microsoft\Windows\CurrentVersion\Explorer\Map Network Drive MRU HKEYUSERS\ \Software\Microsoft\Windows\CurrentVersion\Explorer\Map Network Drive MRU. So, for example, if we wanted to map drive letter S to the share \\tower\movies, we’d use the following command: net use s: \\tower\movies From googling 'windows history of mapped drives' i came upon this. DRIVE is the drive letter you want to use and PATH is the full UNC path to the share.
0 Comments
Read More
Leave a Reply. |