Tools

Site Collection Backup using PowerShell

PowerShell always gives the administrator the feel of programming, Basically I am a developer not really much into using the options or menus to do the tasks like backup (I never used the backup option in Central AdministrationJ)

Let’s talk about Backup of Site Collection using PowerShell with examples.

Syntax:

Backup-SPSite <<Site [...]

TaxonomyPicker Error in Eventlog SharePoint 2010

You might have noticed the following error logged into the EventLog.

“Load control template file /_controltemplates/TaxonomyPicker.ascx failed: Could not load type ‘Microsoft.SharePoint.Portal.WebControls.TaxonomyPicker’ from assembly ‘Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’.”

 

 

There is an encoded char issue in .ascx control:

Open the TaxonomyPicker.ascx in the 12 hive control templates [...]

Get Help for PowerShell cmdlet

Day 2:

How to get help for PowerShell cmdlet, like syntax or list of mandatory/optional parameters to be used with cmdlet.

Get-Help is the cmdlet to provide help for the cmdlet.

Syntax:

    Get-Help <<cmdlet>>

Example: Let’s get help for Get-Help

    Get-Help Get-Help

 

List all PowerShell Command-let’s in SharePoint 2010

This is the series of PowerShell Scripts in SharePoint 2010. Learn a cmdlet (command-let) a day.

Cmdlet(Command-let)

    Cmdlet’s are compiled commands installed with PowerShell. When you start “SharePoint 2010 Management PowerShell”, the console starts with pre-loaded cmdlets.

Day 1:

Get-Command

    Get-Command cmdlet will return all commandlets registered with PowerShell.

    -Module [...]

List does not exist Error for Anonymous Users in SharePoint 2010

I was getting the “List does not exist error” for anonymous users, after enabling the debug mode I got the below loooong exception.

It doesn’t really point you with the actual error, after couple of digs; I figured that my master page gallery and style library has unique permission, not inheriting from the parent.

Inheriting [...]

How to Deploy the SiteTemplate(.stp) file into SharePoint Farm

The site templates can be directly uploaded into “Site Template Gallery” in root site collection. If you want to deploy the Site Template at the SharePoint Farm Level. Use stsadm -addtemplate to upload the stp file.

Syntax:

    Stsadm -o addtemplate -filename <filename> -title <title of template> -description <description of template>

 

[...]

SharePoint 2010 Easy Setup Script

Chris Johnson released a new tool to help setup a SharePoint 2010 developer machine.

In order to make this process as easy as possible they have created a series of PowerShell scripts that automate the entire process of building a fully running and ready to go [...]

An error has occurred in the claim providers

When configuring the mysite in SharePoint2010 farm, it was started throwing an error “An error has occurred in the claim providers configured from this site collection”

Couldn’t figure out the issue by looking logs and events.

Also the default accounts displays some junk chars “c:0(.s\true”

Resolution:

The central administration needs to be accessed [...]

How to Turnoff Spell Check in Lists

In MOSS 2007, we have used the jQuery to hide the Spelling in Lists (we can also handle this using Shared Services to disable)

In SharePoint 2010, we have set of FARM features. Spell Checking is one of them to disable at farm level.

Open Central Administration, Click on Farm Features under System Settings.

[...]

CQWP for Document Library not working with Anonymous Access

It’s really strange that Content Query Web Part for document library doesn’t work for anonymous access.

“Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator.”

It looks [...]