Map Network Drive to a WebDAV Server

Welcome Forums General PowerShell Q&A Map Network Drive to a WebDAV Server

Viewing 1 reply thread
  • Author
    Posts
    • #236143
      MvW
      Participant
      Topics: 11
      Replies: 13
      Points: 124
      Rank: Participant

      My goal is create Windows mapped network drive in Windows to a WebDAV server.
      Saved in Windows and they can be managed by using standard Windows tools, such as File Explorer

      https://Dopper12-test.sourcecloud.com/peet

      I try this
      New-PSDrive -Persist -Name “K” -PSProvider FileSystem -Root “\\[email protected]/peet” -Description “Cloud”

      But i get the following error: New-PSDrive : The network resource type is not correct

    • #237754
      Participant
      Topics: 0
      Replies: 2
      Points: 36
      Rank: Member

      Syntax of new New-PSDrive:
      New-PSDrive [-Name] <String> [-PSProvider] <String> [-Root] <String> [-Confirm] [-Credential <PSCredential>] [-Description <String>]
      [-Persist] [-Scope <String>] [-UseTransaction] [-WhatIf] [<CommonParameters>]

      Your code:
      New-PSDrive -Persist -Name “K” -PSProvider FileSystem -Root “\\[email protected]/peet” -Description “Cloud”

      If you go through the help documentation, it clearly states that Name is a positional parameter with value 0, it should precede the -Persist parameter(and similarly you have to follow the Parameter-Set syntax rule to make the command run/work).

      • This reply was modified 3 weeks, 1 day ago by mbilung.
Viewing 1 reply thread
  • You must be logged in to reply to this topic.