New-PSDrive to SharePoint Office 365 RRS feed

  • Question

  • How can I create a New-PSDrive to an instance of Office 365 over WebDAV?

    I know I can do it by using the map network drive in the Windows Shell (then specyfing connect to Web site).

    Just passing -Credentials into New-PsDrive does not work, I believe because Office 365 requires passing SAML tokens.

    Please help.



    Friday, February 21, 2014 1:08 AM


  • With Windows 8 and WIndows 7 SP1 with patches we can map a drive using PowerShell v3 or later.

    $unc= '\\<yourdomain>\Shared Documents'
    New-PsDrive -Name S -PSProvider FileSystem -Root $unc

    To authenticate just connect any folder in Sarepoint using "Open with Explorer" on the SharePoint Library menu.


    • Marked as answer by adam_coop Monday, February 24, 2014 3:02 PM
    Monday, February 24, 2014 8:03 AM

All replies