Luke Puplett
Luke Puplett

Reputation: 45115

Why does Remove-Item keep prompting to confirm?

Why am I still being prompted even after using -Confirm and -Force?

Shows PS console command and annoying dialog

PSVersion 5.0.10586.117

Upvotes: 1

Views: 305

Answers (1)

Martin Brandl
Martin Brandl

Reputation: 58921

According to the -Confirm documention,

Prompts you for confirmation before running the cmdlet.

So you should omit the switch and just use -Force instead.

Upvotes: 2

Related Questions