为什么 Remove-Item 一直提示确认?
Why does Remove-Item keep prompting to confirm?
为什么我在使用 -Confirm
和 -Force
后仍然收到提示?
PSVersion 5.0.10586.117
Prompts you for confirmation before running the cmdlet.
所以你应该省略开关,只用 -Force
代替。
为什么我在使用 -Confirm
和 -Force
后仍然收到提示?
PSVersion 5.0.10586.117
Prompts you for confirmation before running the cmdlet.
所以你应该省略开关,只用 -Force
代替。