Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

PowerShell Script to Change Recycle Bin Settings to "Don't move files to the Recycle Bin. Remove files immediately..."?

$
0
0

Good morning,

I am in the process of automating server 2012/r2 deployments using MDT and would like to be able to change the default settings for the Recycle Bin for various drives (C:\, D:\, and E:\).

The setting I'd like to change to is, "Don't move files to the Recycle Bin.  Remove files immediately when deleted." for all users.

What is the best approach to scripting this in PowerShell?

Thank you for taking time to read my post!



Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>