I am trying to map a SharePoint 2016 on-prem document library as a shared drive.
I can map it manually but I am trying to do it with PowerShell
my document library url is http://mysharepointinstance/sitename/documentlibrary
Note: site is not SSL configured and code will execute on a Windows 10 box
$LibraryPath = "\\mysharepointinstance@SSL\DavwwwRoot\sitename\documentlibrary" New-PSDrive -name "R" -Root $LibraryPath -PSProvider filesystem
but I am getting error
The specified drive root "\\mysharepointinstance@SSL\DavwwwRoot\sitename\documentlibrary" either does not exist, or it is not a folder.