# Map Network Drive to a WebDAV Server

**URL:** <https://forums.powershell.org/t/map-network-drive-to-a-webdav-server/14545>\
**Category:** PowerShell Help\
**Created:** [June 17, 2020, 2:46am UTC](https://forums.powershell.org/t/map-network-drive-to-a-webdav-server/14545 "2020-06-17T02:46:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maarten](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@maarten](https://forums.powershell.org/u/maarten)\
**Post date:** [June 17, 2020, 2:46am UTC](https://forums.powershell.org/t/map-network-drive-to-a-webdav-server/14545/1 "2020-06-17T02:46:09Z")

</div>

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](Https://Dopper12-test.sourcecloud.com/peet)

I try this  
New-PSDrive -Persist -Name “K” -PSProvider FileSystem -Root “\Dopper12-test.sourcecloud.com@SSL/peet” -Description “Cloud”

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

---

<div class="post-metadata">

**Author:** ![mbilung](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@mbilung](https://forums.powershell.org/u/mbilung)\
**Post date:** [June 23, 2020, 7:25pm UTC](https://forums.powershell.org/t/map-network-drive-to-a-webdav-server/14545/2 "2020-06-23T19:25:40Z")

</div>

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 “\Dopper12-test.sourcecloud.com@SSL/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).

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:29pm UTC](https://forums.powershell.org/t/map-network-drive-to-a-webdav-server/14545/3 "2024-05-16T20:29:17Z")

</div>


