![]() If the Samba is being used for the share, on the Samba server, use the smbpasswd command to add a users password to the SMB database. You can now connect to the Samba share using the username and password. When mapping the network drive, there may be a prompt to enter a username and password. The Map network drive button from File Explorer. Next, open the Computer tab on the ribbon, and press the 'Map network drive' button. Inside its window, click or tap on This PC in the navigation pane from the left. To have a network drive mapped when Windows is restarted, you can create a batch file, such as map.bat at C:\Users\your_username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup, and the network drive will be mapped on boot. The first step to map a network drive is to open File Explorer. Remove-PSDrive -Name X -PSProvider FileSystem New-PSDrive -Name X -PSProvider FileSystem -Root \\fs.\share -Credential $Cred -Persist $Cred = New-Object ('Your Username',$pass) $pass="Your Password"|ConvertTo-SecureString -AsPlainText -Force Note: the /delete option can be used to disconnect a mapped network drive (example: net use m: /delete)Ĭ:\Users\john.doe>net use S: \\\share.The net use : command can be used to map a network drive. Net use command can be used to show if there are any network drives already mapped. Replace fs. with the domain name or IP address of the share. In the Map Network Drive dialog box, type \\fs.\share and select Finish.In the top menu of Windows Explorer, select Map network drive.Select the Windows Start Icon > Computer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |