PowerShell script to list all User Profiles in an SSP

I had few thousand user profiles in my SSP and needed to delete them. So here is a script that I wrote to list all the user profiles in an SSP. If you need to remove the user profiles, then just use the UserProfileManager.RemoveUserProfile method and pass it the UserProfile.Id property. ################################################################################################### [System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.Office.Server”)[System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.Office.Server.UserProfiles”) ############################ “PUT…

1

PowerShell script to delete all items in a List

Another script I wrote is to delete all items from a List. ################################################################################################### [System.Reflection.Assembly]::Load(“Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c”) [System.Reflection.Assembly]::Load(“Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c”)[System.Reflection.Assembly]::Load(“Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c”)[System.Reflection.Assembly]::Load(“System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”) # “Enter the site URL here”$SITEURL = “http://serverurl” $site = new-object Microsoft.SharePoint.SPSite ( $SITEURL )$web = $site.OpenWeb()”Web is : ” + $web.Title # Enter name of the List…

2

PowerShell script to remove all users from a SharePoint Group

I have been experimenting with PowerShell scripting for the past few months. Below is a script I have written to remove all users in a specific SharePoint group. There have been many instances where we find users have added too many individual user accounts to a specific SharePoint group. This causes many issues like search…

1

Import of a variation site fails with "An error occurred while parsing EntityName"

We had an interesting case the other day. The customer had a variation enabled SharePoint site with multiple sites for different languages. He would export one of the language based site and sends it to the company that handles the translation. Once the export file (.cmp) was converted and returned, he used to import it…

2

Colleague tracker Web Part on the MySite does not display data!

If you apply the Obsidian Theme to your MySite, the Colleague tracker webpart might show some blank rows! It will look something like this,     On investigating further by selecting that area using the mouse, you find that the text is actually there. This happens because the background color and the text color are…

2

Troubleshooting issues with SharePoint crawling Forms based Authenticated sites.

What this blog describes is the steps you need to get SharePoint to crawl a Forms based Authentication site. What are the issues you may face and how to resolve them. Requirements: Microsoft Office SharePoint Server 2007 A forms based authentication enabled site (NOTE: This could be a SharePoint based FBA site too) We start…

1