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 am Trying to create the "New SP Profile Service Application" using Powershell command

New-SPProfileServiceApplication -Name SharedServicesMoss2007 –ApplicationPool "SharePoint Web Services Default" –ProfileDBName "WSS_Content_38216"

I identified it is showing error as "Missing expression after unary operator '-' "

at -Name key word .Can any one help me how can i solve the issue

share|improve this question

Are you using the SharePoint 2010 Management Shell?

If not, have you loaded the SharePoint Module?

Add-PSSnapin Microsoft.SharePoint.PowerShell 

Follow this link:

Also, quote all your parameters:

-Name "SharedServicesMoss2007"
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.