Map — Drive From Command Line

To delete all mapped drives at once (common in logoff scripts):

You already have a connection to the same server using different credentials. Disconnect all existing mappings to that server: map drive from command line

In PowerShell, you use the New-PSDrive cmdlet. New-PSDrive -Name "Z" -PSProvider FileSystem -Root "\\ServerName\ShareName" -Persist : The drive letter you want to use. -PSProvider : For network drives, this is always FileSystem . -Root : The UNC path to the folder. To delete all mapped drives at once (common

User Rating: 4 (1 vote)
Your review here

      Leave a reply

      This site uses Akismet to reduce spam. Learn how your comment data is processed.

      THE SOFTWARE SHOP
      Logo