![]() ![]() Assign Users the logon script in Active Directory Users and Computers OR.Copy the batch file to \\DomainName.\NETLOGON.Create a Batch file with the commands to map the drive (s).System Administrators can automatically map a network drive or drives using logon script. Remove-PSDrive s How to Map Network Drive on Windows 10 with Logon Script The New-PSDrive Cmdlet is available from PowerShell 3.0.Īfter mapping the drive, you can change the PowerShell directory to the mapped drive using the command below: Set-Location s:\įinally, you can list the properties of the mapped drive and remove the mapped drive with the 2 commands below: Get-PSDrive s To give you an example, to map a persistent network share \\DESKTOP-SIAQMO1\Log Files, use the following code: New-PSDrive -Name "S" -PSProvider "FileSystem" -Root "\\DESKTOP-SIAQMO1\Log Files" -Persist To make the mapped drive persistent (stays mapped when you restart your PC), add the Persist parameter New-PSDrive -Name "" -PSProvider "FileSystem" -Root "\\ServerName\FolderName" -Persist Then, enter a command in the format below – New-PSDrive -Name "" -PSProvider "FileSystem" -Root "\\ServerName\FolderName" To map a network drive with PowerShell, open Windows PowerShell. If you are a Windows SysAdmin, you will be keen to learn how to map network drive on Windows 10 with PowerShell. How to Map Network Drive on Windows 10 with PowerShell The remaining methods discussed in this guide are for Sys Admins. Here is an actual command for this demo: net use K: \\hypervhost\MountedImages /persistent:yes Yes will reconnect the drive at each logon. with the path to the share you want to map.įinally, for the /persistent switch specify Yes or No. with the drive letter you want to map the drive to. At the command prompt type this command.This is one quick way to map a network share to a drive. How to Map Network Drive on Windows 10 with Command Prompt Then select a drive letter from the Drive drop-down and click Finish.To map the share to a drive on your computer, right-click the shortcut.The shortcut to the network share will be created on your desktop (see the second image below). Then on the Type a name for the shortcut field, enter a name for the share or accept the default name.At the first page of the Create Shortcut wizard, enter the path to the network share.Right-click anywhere on your desktop and point to New.If you have an existing network share shortcut, simply right-click it and map the share to a drive.īut if you do not already have a shortcut to the share, here are the steps to create the shortcut. How to Map Network Drive on Windows 10 from Existing ShortcutĪnother method is to map a network share from a Shortcut. To view all all mapped drives open This PC from File Explorer. The mapped drive will open automatically (see the second image below). Click on the share you wish to map and click OK. The network computer will then display all the shares. Alternatively, if you do not know the full path to the share you want to map, enter the server name in the format \\ServerName.If you know the full path to a network share, enter it in the Folder field using the format \\ServerName\ShareName. When the tool opens, at the Drive drop-down, select a drive letter to assign the network drive.Finally, click Map network drive drop-down and select Map network drive.When File Explorer opens, click This PC.Here are the steps to map a network drive using this method: How to Map Network Drive on Windows 10 from File Explorer How to Map Network Drive on Windows 10 with Group Policy.Assign the Batch File to Users Using Group Policy.Assign Users the Logon Script in Active Directory Users and Computers.Copy the Batch File to \\DomainName.\NETLOGON.Create a Batch File with the Commands to Map the Drive (s).How to Map Network Drive on Windows 10 with Logon Script.How to Map Network Drive on Windows 10 with PowerShell.How to Map Network Drive on Windows 10 with Command Prompt. ![]() ![]() How to Map Network Drive on Windows 10 from Existing Shortcut.How to Map Network Drive on Windows 10 from File Explorer. ![]()
0 Comments
Leave a Reply. |