- This topic has 1 reply, 2 voices, and was last updated 2 months, 3 weeks ago by
June 17, 2020 at 8:16 am #236143ParticipantTopics: 11Replies: 13Points: 124Rank: 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
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
June 24, 2020 at 12:55 am #237754ParticipantTopics: 0Replies: 2Points: 36Rank: 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>]
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).
- This reply was modified 2 months, 3 weeks ago by mbilung.
- You must be logged in to reply to this topic.