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

SharePoint 2010 PowerShell

If Url (Sub Site ) contains Spaces Enable-SPFeature fails,

Tried, 1) Enable-SPFeature –Identity 8c7cfc9f-a19a-4604-8b1b-db11d77d3d0b –URL "Complete Server + Sub Site with spaces" Results : Enable-SPFeature : 0x80070002Th ere is no Web named "/Hello+World". At line:1 char:17 + Enable-SPFeature <<<< -Identity 8c7cfc9f-a19a-4604-8b1b-db11d77d3d0b -Url "h ttp://vm7491/Hello World" + CategoryInfo : InvalidData: (Microsoft.Share...etEnableFeature: SPCmdletEnableFeature) [Enable-SPFeature], FileNotFoundException + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletEnableFe ature

share|improve this question

Replace any spaces with %20 in the URL

share|improve this answer

You should always use ' or " when working with strings that contains spaces in PowerShell.

Ex. ' sub site'

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.