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 SharedServices1 –ApplicationPool "SharePoint Web Services" –ProfileDBName Sharepointservices1_db

I identified it is showing error as "new-SPProfileserviceapplication:A Positional Parameters cannot be found that accepts argument Sharepoint"

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

What i am going wrong?

please can any one give example.

Please help.

Thanks in advance.

Sharepoint Powershell command prompt

share|improve this question

Start by getting the Application pool into a PowerShell variable like this:

$ap = Get-SPServiceApplicationPool | ? {$_.Name -eq "SharePoint web Services"}

Then you can use that variable in the -ApplicationPool parameter like this:

New-SPProfileServiceApplication -Name SharedServices1 –ApplicationPool $ap –ProfileDBName Sharepointservices1_db
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.