Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

1 Answer 1

Are you using the SharePoint 2010 Management Shell?

If not, have you loaded the SharePoint Module?

Add-PSSnapin Microsoft.SharePoint.PowerShell 

Follow this link: http://technet.microsoft.com/en-us/library/ee806878.aspx

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.