Cmd Command To Map Network Drive ✧

:: Map project drive with specific credentials net use Z: \ProjectServer\CurrentProjects /user:CONTOSO\projectuser *

echo All drives mapped successfully. pause cmd command to map network drive

$cred = Get-Credential New-PSDrive -Name "Z" -PSProvider FileSystem -Root "\\Server01\Projects" -Credential $cred -Persist Mapping network drives via the command line using net use is a powerful, flexible, and reliable method that every Windows professional should master. From quick one-off mappings to complex automated login scripts, the command line gives you control that the GUI simply cannot match. :: Map project drive with specific credentials net

Top