technikdealer

PowerShell automatisch antworten

Hay Ihr.

Wenn ich diesen Befehl in der Powershell ausführe fragt er mich ob ich wirklich möchte.
Wie müsste ich den Befehl schreiben das er automatisch mit "Ja" antwortet.

Get-MailboxExportRequest -Status Completed | Remove-MailboxExportRequest -confirm:$all

Danke schonmal im vorraus.
Auf Facebook teilen
Auf X (Twitter) teilen
Auf Reddit teilen
Auf Linkedin teilen

Content-ID: 230621

Url: https://administrator.de/forum/powershell-automatisch-antworten-230621.html

Ausgedruckt am: 30.04.2025 um 20:04 Uhr

colinardo
Lösung colinardo 21.02.2014 aktualisiert um 09:36:39 Uhr
Goto Top
Hallo technikdealer,
-confirm:$false
sollte reichen

Grüße Uwe
technikdealer
technikdealer 21.02.2014 um 09:36:55 Uhr
Goto Top
Super, besten Dank Uwe. Nice weekend.