Add a way to specify a value for $PSNativeCommandArgumentPassing
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- powershell
- Ambito
- cli
Direzione di ricerca
Start by locating the cmdlet-function generation code and its generated function begin block. Add the proposed property so generated functions can assign $PSNativeCommandArgumentPassing before invoking the native command, then verify the setting supports the Windows and Legacy values described in issue 210.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary of the new feature / enhancement
Take for example the Windows native command vaultcmd.exe. That command has parameters that take values that require quotes. When $PSNativeCommandArgumentPassing = 'Windows' (which is the default) the command fails. When set to Legacy it works.
Example
vaultcmd /listcreds:"windows credentials"
Output
Credentials in vault: windows credentials
Credential schema: Windows Domain Password Credential
Resource: Domain:target=mydomain
Identity: COMPUTER\admin
Hidden: No
Roaming: No
Property (schema element id,value): (100,3)
Property (schema element id,value): (101,SspiPfc)
Credential schema: Windows Domain Password Credential
Resource: Domain:target=myotherpc
Identity: [email protected]
Hidden: No
Roaming: No
Property (schema element id,value): (100,3)
Property (schema element id,value): (101,SspiPfc)
$cmd = 'vaultcmd'
$arg = '/listcreds:"windows credentials"'
& $cmd $arg
Output
Invalid vault: Element not found.
When you switch to Legacy mode, the command invocation works.
$PSNativeCommandArgumentPassing = 'Legacy'
& $cmd $arg
Output
Credentials in vault: windows credentials
Credential schema: Windows Domain Password Credential
Resource: Domain:target=mydomain
Identity: COMPUTER\admin
Hidden: No
Roaming: No
Property (schema element id,value): (100,3)
Property (schema element id,value): (101,SspiPfc)
Credential schema: Windows Domain Password Credential
Resource: Domain:target=myotherpc
Identity: [email protected]
Hidden: No
Roaming: No
Property (schema element id,value): (100,3)
Property (schema element id,value): (101,SspiPfc)
Proposed technical implementation details (optional)
Add a property that allows you to set the value of $PSNativeCommandArgumentPassing.
Add the assignment to the begin block of the cmdlet function generated.
- Lingua principale
- PowerShell
- Stelle
- 437
- Fork
- 49
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PowerShell/Crescendo
-
Extend functions that implement classes for ParameterInfo and Command with additional parameter optionsForse già presa @steviecoaster l’ha presa 917 giorni fa. ApertaIssue-Enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
PowerShell/Crescendo#208 · 2 reazioni ·
-
Issue-Enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
PowerShell/Crescendo#202 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
PowerShell/Crescendo#201 · 1 commento ·
-
Issue-Enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
PowerShell/Crescendo#199 ·
-
Ordered combined commandsApertaIssue-Enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
PowerShell/Crescendo#196 ·
Tutte le issue di PowerShell/Crescendo
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
-
bug launcher packaging
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
tenstorrent/tt-studio#1426 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
aws/agentcore-cli#2606 ·
I maintainer di solito rispondono entro 1 giorno