Step 1
Press: [WIN] + [R]
Typ: PowerShell
or
Press: [WIN]
Typ: PowerShell
Click: PowerShell
Step 2
Typ: new-PSDrive -Name “<driveletter>” -PSProvider “FileSystem” -Root “\\<servername>\<foldername>” -Persist
Press: [ENTER]


If you need to connect with credentials
Typ: $unpw = Get-Credential
Press: [ENTER]
or
Click: OK (PowerShell 5.x)


Enter the Username and Password
Typ: New-PSDrive -Name “<driveletter>” -PSProvider “FileSystem” -Root “\\<servername>\<foldername>” -Persist -Credential $unpw
Press: [ENTER]


View connected drives?
Typ: Get-PSDrive -PSProvider “FileSystem”
Press: [ENTER]


Disconnect a networkdrive
Typ: Remove-PSDrive -Name <driveletter>
Press: [ENTER]


Disconnect multiple networkdrives
Typ: Get-PSDrive <driveletter1>, <driveletter2> | Remove-PSDrive
Press: [ENTER]


Leave a Reply
You must be logged in to post a comment.