0
votes
2answers
106 views

How to properly dispose of sp 2007 object in powershell?

First and foremost I've done A LOT of googling and even went past the first page or 2 :) so feel free to direct me to the proper post if necessary. I am trying to loop through a bunch of webs and ...
0
votes
2answers
347 views

How check if a site (not site collection) has sub sites in it? [Object Model]

I am trying to figure out a way to check if a Site inside a Site Collection has sub sites in it. To get sites inside a site collection, we can use the below code. foreach (SPWeb siteobject in ...
0
votes
2answers
58 views

How do I figure out if I have permissions to use site.openWebs without changing code?

I have been newly assigned to a client and I am trying to run an existing console app to get some information about files within their sharepoint instance. The code goes something like this: //Enter ...
0
votes
1answer
187 views

Sharepoint 2007 WarmUp Script (Memory Leak Possibly)

I was wondering if there is any way I can get a SPsiteCollection object using a URL + if I can dispose it using "using" keyword as well. I want to go through all the SPWebAPplications in a Local ...
1
vote
1answer
241 views

Error while downloading Lists in a spweb

Here is the code private void downloadList(SPObjectData objectData) { using (SPWeb currentWeb = objectData.Web) { foreach (SPList list in currentWeb.Lists) ...
1
vote
1answer
468 views

Programmatically deleting user from All People

i am able to remove the user from site collection using in this way:- SPWeb.SiteUsers.Remove("providername:" + this.txtOldName.Text); but found the same user existing in All People how to remove ...
2
votes
2answers
472 views

SPWeb.ParserEnabled

What does the SPWeb.ParserEnabled property do? I had a problem for some document which are not able to update metadata.If i use ParserEnabled = false.it is working fine for me. if i use ...
4
votes
2answers
7k views

Using SPContext.Current to get public URL of the current zone

I have a single content Web application in the Default zone of my MOSS 2007 farm, which I then extended to the Extranet zone. The default zone web application uses Windows authentication and standard ...