Export-ScheduledTask : example 2 is inconsistent with actual behaviour
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 75/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- powershell
- Ambito
- documentation
Direzione di ricerca
Apri docset/winserver2025-ps/ScheduledTasks/Export-ScheduledTask.md e analizza Example 2. Esegui la pipeline documentata in PowerShell sia con più attività sia con una singola attività, confrontando il comportamento riportato. Aggiorna l'esempio e le indicazioni correlate al file di output o alla codifica in modo che la documentazione corrisponda al comportamento supportato, quindi verifica l'esempio revisionato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Prerequisites
- Existing Issue: Search the existing issues for this repository. If there is an issue that fits your needs do not file a new one. Subscribe, react, or comment on that issue instead.
- Descriptive Title: Write the title for this issue as a short synopsis. If possible, provide context. For example, "Typo in
Get-Foocmdlet" instead of "Typo." - Verify Version: If there is a mismatch between documentation and the behavior on your system, ensure that the version you are using is the same as the documentation. Check this box if they match or the issue you are reporting is not version specific.
Links
Summary
Example 2 shows:
Get-ScheduledTask -TaskPath "\UpdateTasks\" | Export-ScheduledTask
This implies that the cmdlet supports multiple pipeline input objects.
However, in practice, piping multiple tasks results in:
HRESULT 0x80070057 (The parameter is incorrect)
Details
Get-ScheduledTask -TaskPath '\Microsoft\Windows\Time Synchronization\' | Export-ScheduledTask
....
Export-ScheduledTask : El parámetro no es correcto.
En línea: 1 Carácter: 74
+ ... ndows\Time Synchronization\' | Export-ScheduledTask -ErrorVariable kk
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (PS_ScheduledTask:Root/Microsoft/...S_ScheduledTask) [Export-ScheduledT
ask], CimException
+ FullyQualifiedErrorId : HRESULT 0x80070057,Export-ScheduledTask
Seems it is not related to the collection:
Get-ScheduledTask -TaskPath '\Microsoft\Windows\Time Synchronization\' -TaskName ForceSynchronizeTime | Export-ScheduledTask
Export-ScheduledTask : El parámetro no es correcto.
En línea: 1 Carácter: 105
+ ... nchronization\' -TaskName ForceSynchronizeTime | Export-ScheduledTask
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (PS_ScheduledTask:Root/Microsoft/...S_ScheduledTask) [Export-ScheduledTask], CimException
+ FullyQualifiedErrorId : HRESULT 0x80070057,Export-ScheduledTask
Suggested Fix
Support -OutputPath to save scheduled task in a file
Document about how to use Out-File and/or the encoding necesary
Change the example to use
Get-ScheduledTask -TaskPath '\Microsoft\Windows\Time Synchronization\' | Foreach-Object {
Export-ScheduledTask -TaskPath $_.taskpath -TaskName $_.taskname -ov "+tasks"
} | Out-Null
- Lingua principale
- Dockerfile
- Stelle
- 510
- Fork
- 643
- Merge medio
- 2g 21h
- PR unite (30g)
- 8
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un 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 MicrosoftDocs/windows-powershell-docs
-
Set-ProcessMitigation: -Remove does not remove path-scoped entries created with a full -Name pathAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
MicrosoftDocs/windows-powershell-docs#4143 ·
I maintainer di solito rispondono entro 1 giorno
-
issue-doc-bug needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
MicrosoftDocs/windows-powershell-docs#3861 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
issue-doc-bug needs-triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
MicrosoftDocs/windows-powershell-docs#4153 ·
I maintainer di solito rispondono entro 1 giorno
-
issue-doc-bug needs-triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
MicrosoftDocs/windows-powershell-docs#4122 ·
I maintainer di solito rispondono entro 1 giorno
-
issue-doc-bug needs-triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
MicrosoftDocs/windows-powershell-docs#4114 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di MicrosoftDocs/windows-powershell-docs
Issue simili
-
area:agent-sdk area:docs documentation enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
anthropics/claude-code#110914 ·
-
specification
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
WICG/webmonetization#813 ·
I maintainer di solito rispondono entro 3 giorni
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
Polish READMEApertadocumentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
-
Doc: Remove quotes and backticks around RFC objectsForse già presa @Tirth00000 l’ha presa oggi. Apertadoc good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
collective/icalendar#2146 · 1 commento ·