In the command, replace “DRIVER-LETTER” with the drive letter not already in use you want to use. Type the following command to map a drive assigning drive letter manually and press Enter: New-PSDrive -Name "E" -Root "\\DEVICE-NAME-OR-IP\SHARED-FOLDER" -Persist -PSProvider "FileSystem" -Credential $cred Quick tip: If you are mapping a drive in Active Directory, remember to use the network name like this: network\admin to specify the account information. Type the following command to create a variable with the proper credentials, and press Enter: $cred = Get-Credential -Credential USERNAME To map a network drive providing the account name and password on Windows 11, use these steps: Map network drive with credentials on PowerShell Once you complete the steps, the network shared folder will map on the computer and appear in File Explorer. For example, this command maps the ShareOne folder to the computer with the “E” drive letter: New-PSDrive -Name "E" -PSProvider "FileSystem" -Root "\\vm-beta\ShareOne" -Persist Then, change “DEVICE-NAME-OR-IP” and “SHARED-FOLDER” for the name of the computer name or IP address of the device hosting the shared folder and the name of the shared folder. Type the following command to map a drive assigning letter manually and press Enter: New-PSDrive -Name "DRIVER-LETTER" -PSProvider "FileSystem" -Root "\\DEVICE-NAME-OR-IP\SHARED-FOLDER" -Persist Search for PowerShell and click the top result to open the console.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |