Mount OneDrive? RRS feed

  • คำถาม

  • How do I use PowerShell to mount my OneDrive as a local drive? This is for personal OneDrive, not OneDrive for Business. I've found methods for mounting OneDrive using Explorer and NET USE, but I couldn't get it to work with any of the obvious PowerShell cmdlets


    Azius Developer Training Windows device driver, internals, security, & forensics training and consulting. Blog at

    19 ตุลาคม 2562 21:37


  • Ok - a little technical investigation finds that this works on Win10 and later.

    $cid = 'your CID'
    $cred = Get-Credential
    New-PSDrive -Name Z -PSProvider FileSystem -Root "\\\DavWWWRoot\$cid" -Credential $cred

    The same method with a different URL structure also work on OneDrive for Business.

    Only Win10 and later seem to have full WebDAV support although WebDAV has worked at least since XP against SharePoint 2010 and later.


    • ทำเครื่องหมายเป็นคำตอบโดย Brian Catlin 20 ตุลาคม 2562 0:25
    20 ตุลาคม 2562 0:22