SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I took backup from our staging server and restored on my local development machine. My Powershell script is not raising any error while restoration. But when I open the site in browser, it's giving me a weird error message:

The file or folder name contains characters that are not permitted.  Please use a different name. 

PowerShell command I am using for backup and restore are:

On Staging server:

Backup-SPSite -Identity http://sp-stage -Path \\backup\sharepoint\test1\backup.bak

On my local machine:

Restore-SPSite -Identity http://sp-local -Path \\backup\sharepoint\test1\backup.bak

We are using custom master page and custom page layout for our site and my guess is that above error message is raising because of these custom master pages and page layouts.

share|improve this question
Could you check the ULS log to see what it says? – Jasper Jun 11 '12 at 15:20

In SP, there are some special characters which are not allowed. You can find them here.

Please make sure that these special characters are not being used in your site.

Hope that helps.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.