When using PSconfig.exe with SharePoint, providing several commands in sequence
I must make sure they are specified in the correct order (or combine them in one go)
to make sure each command is run successfully.
The required sequence for PSConfig has to be
-cmd configdb
-cmd helpcollections
-cmd secureresources
-cmd services
-cmd installfeatures
-cmd adminvs
-cmd evalprovision (only for stand-alone installations)
Currently, one OriginalCommandElements set is possible per Command. This can then be added upon with params.
But this can't be expanded to include several "commands", only single word parameters.
Summary of the new feature / enhancement
When using PSconfig.exe with SharePoint, providing several commands in sequence I must make sure they are specified in the correct order (or combine them in one go) to make sure each command is run successfully.
The required sequence for PSConfig has to be
-cmd configdb
-cmd helpcollections
-cmd secureresources
-cmd services
-cmd installfeatures
-cmd adminvs
-cmd evalprovision
(only for stand-alone installations)-cmd applicationcontent
-cmd upgrade
(You can also find it on [Psconfig command-line reference (SharePoint Server 2010)}(https://learn.microsoft.com/en-us/previous-versions/office/sharepoint-server-2010/cc263093(v=office.14)?redirectedfrom=MSDN)
Now, I could of course start permutating all possible command combinations and specify one super command set per permutation, but that would be a lot.
Proposed technical implementation details (optional)
Currently, one OriginalCommandElements set is possible per Command. This can then be added upon with params. But this can't be expanded to include several "commands", only single word parameters.
So if I need to run the PSConfig command combo
PSConfig.exe -cmd upgrade -inplace b2b -wait -force -cmd applicationcontent -install -cmd installfeatures
I would either have to build one superset (of very many)
or three separat commands (remembering by heart, which order to use them)
Would a feature allowing an array of arguments for one parameter along with an ParamterOrder value be able to solve this?