bdukes / PowerShellModules

A collection of PowerShell modules
Apache License 2.0
44 stars 9 forks source link

Remove-ItemSafely on some computers asks confirmation #23

Open CasperNLD opened 1 year ago

CasperNLD commented 1 year ago

Hi,

I have a question regarding 'recycle' 1.5.0. In this version I noticed that my script does not give me a 'are you sure to send to recycle bin' dialog, but my colleague does. I do not use the '-conform' option, but still my colleague gets a dialog.

Why is this happening in 1.5.0?

bdukes commented 1 year ago

It's doing the same thing as pressing del in File Explorer, so it depends on your settings as to whether it shows a confirmation or not.

CasperNLD commented 1 year ago

Is it possible as a new feature to omit the users settings, perhaps creating of keeping your own setting during the session? Or is this beyond the scope of 'Recycle'?

bdukes commented 1 year ago

I am open to an alternative implementation of the Recycle module which allows more customization.

CasperNLD commented 1 year ago

My script processes directories with a fairly amount of files (range 100 to 600), so that would somewhat put a damper on my effort to automate some work. Perhaps a way to set/reset this user setting with powershell?

Unfortunately my knowledge is not sufficient (yet) to suggest an alternative implementation. I have to get back to you on that.