2

I keep getting syntax error for the following psconfig.exe. Any idea?

Start-Process "PSConfig.exe" ps-ArgumentList "-cmd upgrade -inplace b2b -force -cmd applicationcontent -install -cmd installfeatures" -wait

Error: Start-Process : A positional parameter cannot be found that accepts argument '-cmd upgrade -inplace b2b -force -cmd applicationcontent -install -cmd installfeatures'.

3
  • 1
    Try this directly...PSConfig.exe -cmd upgrade -inplace b2b -force -cmd applicationcontent -install -cmd installfeatures Commented May 8, 2015 at 13:51
  • Cool. It took the command and now going through config process. Thanks Ransher... Commented May 8, 2015 at 14:06
  • Glad it helped! Commented May 8, 2015 at 14:06

2 Answers 2

3

From your command, looks like their is some error.You have to provide the complete path of PSConfig and also use -ArgumentList instead of ps-ArgumentList.

Start-Process "path of file\PSConfig.exe" -ArgumentList "-cmd upgrade -inplace v2v -passphrase FarmPassPhrase -force -wait" -Wait

If their is not such requirement then you can directly run the psconfig and see if that work.

1
  • The parameter name "-ArgumentList" is optional. You don't need it. Commented Jun 17, 2017 at 0:54
0

You could try wrapping PSConfig in the MS Crescendo Framework as in this module at PS Gallery.

PS Gallery - PSConfig.Crescendo

To patch a SharePoint server, then it would be a simple matter of

Install-Module -Name PSConfig.Crescendo

Invoke-PSConfigSafeProductUpgrade

The verbose output process of the MS Crescendo Framework is somewhat limited though in my opinion.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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