Timeline for Upload and check-in file to 2010 document library without access to site, only to library from powershell
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 12, 2015 at 12:37 | comment | added | Evariste | Thank you for the feedback, I updated the answer accordingly. | |
Oct 12, 2015 at 12:36 | history | edited | Evariste | CC BY-SA 3.0 |
added 72 characters in body
|
Oct 12, 2015 at 11:06 | vote | accept | Harald | ||
Oct 12, 2015 at 11:06 | comment | added | Harald |
YES!, this worked. You may want to add two small edits to your answer: The method is actually called CheckInFile and I call New-WebServiceProxy -UseDefaultCredential . Using $proxy.UseDefaultCredentials did not work since I got the 401 already when requesting the WSDL.
|
|
Oct 12, 2015 at 10:56 | comment | added | Evariste | I edited my anwser to include authentication. | |
Oct 12, 2015 at 10:55 | history | edited | Evariste | CC BY-SA 3.0 |
added 424 characters in body
|
Oct 12, 2015 at 10:52 | comment | added | Evariste |
1. You'll never get an elevated access from a client code (e.g. Web service call). 2. Your problem may simply be related to absence of authentication in your Web service client call. What's the SP authentication mode? If Windows integrated AND your PowerShell in started as the user you want, you may simply add $proxy.UseDefaultCredentials = $true
|
|
Oct 12, 2015 at 10:36 | comment | added | Harald | The New-WebServiceProxy always comes back with a 401 :-( My hunch is, that it is a similar access right problem. I think now that I have to resort to get the customer to change the access rights accordingly. | |
Oct 11, 2015 at 17:58 | history | answered | Evariste | CC BY-SA 3.0 |