michalek19
asked on
Script to audit and clean Recycle Bin on bulk of servers
Hi
I am looking for script to run against few servers that will provide inventory (content) and size of the recycle bin.
The second part of the script should empty out\clean recycle bins
Please assist, M
I am looking for script to run against few servers that will provide inventory (content) and size of the recycle bin.
The second part of the script should empty out\clean recycle bins
Please assist, M
To clear Recycle bin for all users, you can start the following command with PSEXEC
(Or you can do folder delete command via VBS or Powershell)
PSEXEC Command
CleanBin.bat
(Or you can do folder delete command via VBS or Powershell)
PSEXEC Command
PSEXEC -C -F -D \\SomeServer CleanBin.bat
CleanBin.bat
ECHO OFF
RD /S c:\$Recycle.Bin /Q
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I created my own script that provide me need it information. Thank you
http://www.jaapbrasser.com/clear-recyclebin-new-powershell-5-0-cmdlet-available-in-windows-10/