Timeline for Connecting via SPSite and accessing/Reading a list
Current License: CC BY-SA 3.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 4, 2016 at 12:14 | vote | accept | The Inexperienced Gamer | ||
Oct 26, 2016 at 19:44 | history | edited | Mohamed El-Qassas MVP♦ |
add new tag
|
|
Oct 18, 2016 at 17:37 | answer | added | The Inexperienced Gamer | timeline score: 0 | |
Oct 18, 2016 at 14:01 | comment | added | Thriggle | Glad you solved it! Feel free to post that as a self-answer when you have the time; self-answers are not only acceptable but encouraged. | |
Oct 18, 2016 at 12:56 | comment | added | The Inexperienced Gamer | Found the issue. It was a new content database and they neglected to add the proper permissions. Womp Womp. Thanks for your time!!! | |
Oct 18, 2016 at 12:23 | comment | added | The Inexperienced Gamer | I think I may have made some progress using the $site.RootWeb.Lists then foreach$list in $lists but now I get "The following exception was thrown when trying to enumerate the collection: "<nativehr>0x80070002</nativehr><nativestack></nativestack>". @Thriggle | |
Oct 18, 2016 at 0:43 | history | edited | Mohamed El-Qassas MVP♦ | CC BY-SA 3.0 |
improve format
|
Oct 18, 2016 at 0:36 | answer | added | Mohamed El-Qassas MVP♦ | timeline score: 0 | |
Oct 17, 2016 at 21:33 | comment | added | Thriggle |
No problem! My only theory at the moment is that https://test.contoso.com/visitors/siteName is the path to some object within a subsite (such as a folder or library) instead of the path to a specific SPWeb, which is why it's complaining that it can't find a web at that URL. If you can get the containing site collection, you should be able to drill down to the desired subsite through $site.RootWeb , $site.OpenWeb() , or $site.AllWebs
|
|
Oct 17, 2016 at 21:08 | comment | added | The Inexperienced Gamer | @Thriggle I haven't tried that method yet, though I will. I have left the office for the day but I will follow up first thing tomorrow. Thanks for responding so fast by the way! | |
Oct 17, 2016 at 20:45 | comment | added | Thriggle |
Are you able to get the site ($site = get-spsite http:... ) and then access $site.RootWeb.lists ?
|
|
Oct 17, 2016 at 20:43 | comment | added | The Inexperienced Gamer | I am running it from the web front end server it is hosted on. @Thriggle | |
Oct 17, 2016 at 20:42 | comment | added | Thriggle | Are you running this PowerShell from one of the SharePoint web front end servers or from a remote computer? | |
Oct 17, 2016 at 20:40 | history | asked | The Inexperienced Gamer | CC BY-SA 3.0 |