cancel
Showing results for 
Search instead for 
Did you mean: 

Using WEBDAV in a Windows PowerShell script

Former Member
0 Kudos

Hello,

I am trying to write a Windows PowerShell script to copy a file from my SharePoint site to a DB repository folder using a WEBDAV link. I am not getting it to work.

When I copy from SharePoint to SharePoint it works. I have used my credentials on the script which has the authorizations but it still isn't working. The response error is a 500 Internal Server error.

Any ideas?

Has anyone done this before?

Thanks,

Matt

Accepted Solutions (1)

Accepted Solutions (1)

benjamin_houttuin
Active Contributor
0 Kudos

This is not a solution but more an extra tool to help you find a solution....

You could download and install the Portal Drive to see what actions/commands are used to communicate via webdav to the KM repository.

Cheers,

B

Answers (2)

Answers (2)

Former Member
0 Kudos

Using Portal Drive to create a local drive (G:) I was able to use the copy command in my script.

Thanks,

Matt

Former Member
0 Kudos

Can you check the contents of the response body (that comes with the 500), or the server log?