WebFldr link and SharePoint 2010

After migrating one of my Web Apps from SharePoint 2007 to SharePoint 2010, I ran into a small issue. In just about every site in every site collection, the users setup links to the Explorer View. Well, SharePoint 2010 doesn’t much care for the WebFldr.aspx link.

I had two options:
Update every link, in every site one at a time.
Use PowerShell to loop around and update the links for me.

Also noticed that when users clicked on these WebFldr.aspx link, the ribbion would get stuck in a Loading state.

What I’m doing with this script:
Define the items we are looing for and replacing.
Open the site collection.
Loop on each site in the collection.
Get the Quick Launch.
Loop on the Headers.
Loop on the Child Node of each Header.
If the Child Node contains our $stupidLink, we then replace that link with the $goodLink, and update it.
Dispose of our connections.

Add-PSSnapin Microsoft.SharePoint.PowerShell –erroraction SilentlyContinue

$stupidLink="WebFldr"
$goodLink="AllItems"

$sSiteColl = Get-SPSite  "http://sharepointed.com/SiteCollection/"
foreach($sSite in $sSiteColl.AllWebs)
	{
	 	$site = Get-SPWeb $sSite.Url
		$qlNav = $site.Navigation.QuickLaunch

		foreach($qHeader in $qlNav)
		{
			foreach($ChldNode in $qHeader.Children)
			{
				if ($ChldNode.Url.Contains($stupidLink)) 
				{
					Write-Host $site.Url -BackgroundColor DarkYellow
					Write-Host $ChldNode.URL -BackgroundColor DarkCyan
					$ChldNode.Url = $ChldNode.Url.Replace($stupidLink,$goodLink)
					$ChldNode.Update()
				}
			}
		}
	}
	$sSite.Dispose()
$sSiteColl.Dispose()

This script is also used to update the Quick Launch children nodes in SharePoint.

Distribution list status Creation request pending

Pay attention to the details!

I created a new SharePoint Group, chose Yes for Create an e-mail distribution group for this group?, then gave the group an email address. I clicked save, and went about my business.

What I didn’t notice was this:
Distribution list status:
Creation request pending

Where are these items approved at?
… Central Administration.

SharePoint 2010
Central Administration –> Security
In the Users section, you will want to click on Approve or reject distribution groups.

Here is the URL:
http://centraladmin:777/Lists/Distribution%20Groups/AllItems.aspx
centraladmin:777 = your central admin location.

SharePoint Server Enterprise Site Collection features Error

Tried to activate SharePoint Server Enterprise Site Collection features on a new Site Collection and would recevie the normal SharePoint error (some text and an error ID). I grabbed the error ID and went looking in the ULS logs.

Here is what I found.

Feature Activation: Threw an exception, attempting to roll back. Feature ‘IPFSSiteFeatures’ (ID: ‘c88c4ff1-dbf5-4649-ad9f-c6c426ebcbf5’). Exception: Microsoft.Office.InfoPath.Server.Util.InfoPathLocalizedException: The InfoPath Forms Services support feature is not properly activated. Document library could not be found
at FormServerTemplates
.

I went back to the Site Collection, created a FormServerTemplates form library (document library might have worked), then activated the feature again. And guess what, it worked!

Other tricks that worked for people:
http://social.technet.microsoft.com/Forums/en-US/sharepoint2010setup/thread/df474171-ee3b-4845-8e18-6a7119898bb9

PowerShell Get Value of a Hyperlink Field in SharePoint

I needed to get the hyperlink value from a field in a SharePoint List.

Here is how you do it.

$web = get-spweb http://sharepointed.com/sites/YourSite
$list = $web.Lists["Your List Name"]

foreach($i in $list.items)
	{
		$ofldurl= new-object Microsoft.SharePoint.SPFieldUrlValue($i["MyHyperlinkField"])
		write-host $ofldurl.URL 
                write-host $ofldurl.Description
	}
$web.Dispose()

PowerShell Update Current Navigation in SharePoint

Using PowerShell, you can update SharePoint navigation items.
Example for: Display only the navigation items below the current site

$SiteCollection = Get-SPSite "http://taco/SiteCollection/"

foreach ($subSite in $SiteCollection.AllWebs)
	{
		$updateSite = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($subSite)
		$updateSite.Navigation.InheritCurrent = $false
		$updateSite.Navigation.ShowSiblings = $false
		$subSite.Dispose()
	}
	
$SiteCollection.Dispose()

PowerShell to Update Alerts in SharePoint

Was reading Mikes post about Alerts not working in SharePoint 2010 and decided to convert his code to PowerShell.  Read Mikes post before running this script….

$SiteCollection = Get-SPSite "http://YourSharePointSite/"

foreach ($subSite in $SiteCollection.AllWebs)
	{
		foreach($alrt in $subSite.Alerts)
			{
				$origTitle = $alrt.Title
                                $alrt.Title = "UPDATE: $origTitle"
                                $alrt.Update()

                                $alrt.Title = $origTitle
                                $alrt.Update()
				Write-Host $alrt.Title
			}
		$subSite.Dispose()
	}

$SiteCollection.Dispose()

PowerShell Update Top Link Bar or Global Navigation

I needed to update hundreds of sub sites to inherit the same top link bar as the parent site.   Using PowerShell with SharePoint, this only took a minute.

Global Navigation

Display the same navigation items as the parent site (wanted this to be checked)

 
$SiteCollection = Get-SPSite "http://sharepoint/sitecollection/" 
foreach ($subSite in $SiteCollection.AllWebs) 
{ $updateSite = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($subSite) $updateSite.Navigation.InheritGlobal = $true $updateSite.Navigation.ShowSiblings = $false $subSite.Update() 
$subSite.Dispose() } 

$SiteCollection.Dispose() 

SharePoint Navigation Button Missing in Site Settings

In the Site Settings page, the Navigation link was missing under Look and Feel.

The link to the page is: _layouts/AreaNavigationSettings.aspx

But, you might want to activate the SharePoint Server Publishing Infrastructure feature. 

 

Site Actions –> Site Settings –> under Site Collection Administration look for Site collection features.