Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Ordered combined commands

Aperta
#196 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
powershell
Ambito
cli, tooling

Direzione di ricerca

Start by reviewing Crescendo's current command model, especially OriginalCommandElements and Parameters. Define how ordered, repeated command sequences and their arguments should be represented, then verify that the PSConfig examples can be expressed and executed in the required order.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Issue-Enhancement
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

  1. -cmd configdb
  2. -cmd helpcollections
  3. -cmd secureresources
  4. -cmd services
  5. -cmd installfeatures
  6. -cmd adminvs
  7. -cmd evalprovision (only for stand-alone installations)
  8. -cmd applicationcontent
  9. -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)

 "Commands": [
    {
      "Verb": "Invoke",
      "Noun": "PSConfigUpgrade",
      "OriginalName": "psconfig.exe",
      "OriginalCommandElements": [
        "-cmd", "upgrade","-inplace","b2b",
        "-cmd", "applicationcontent","-install",
        "-cmd","installfeatures"
      ]
  }
]

or three separat commands (remembering by heart, which order to use them)

 "Commands": [
    {
      "Verb": "Invoke",
      "Noun": "PSConfigProdcustUpgrade",
      "OriginalName": "psconfig.exe",
      "OriginalCommandElements": [
        "-cmd", "upgrade"
      ],
"Parameters": [
        {
          "Name":           "Inplace",
          "OriginalName":   "-inplace",
          "ParameterType":  "string"
        }
  },
{
      "Verb": "Invoke",
      "Noun": "PSConfigInstallApplication",
      "OriginalName": "psconfig.exe",
      "OriginalCommandElements": [
        "-cmd", "applicationcontent","-install"
      ]
  },
{
      "Verb": "Invoke",
      "Noun": "PSConfigRegister",
      "OriginalName": "psconfig.exe",
      "OriginalCommandElements": [
        "-cmd", "installfeatures"
      ]
]

Would a feature allowing an array of arguments for one parameter along with an ParamterOrder value be able to solve this?

Lingua principale
PowerShell
Stelle
437
Fork
49
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PowerShell/Crescendo

Tutte le issue di PowerShell/Crescendo

Issue simili

Altre issue su CLI

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.