Category: PowershellinSheikvaraview

PowerShell cmdlet of the Day : Clear-RecycleBin

Do you love sweets? I love them.  And there are some Powershell cmdlets those are tooo sweet like a sweet.

If you want to clear/ empty your recycle bin, there is a very sweet Powershell cmdlet available for it, which is Clear-RecycleBin .

Just run the cmdlet, and it will empty your recycle bin.  You can incorporate this cmdlet to your TEMP file cleaning scripts too.Clear-RecycleBin

If you just run the Clear-RecycleBin, it will ask you for Yes/No confirmation, you can –                        -Confirm:$falseto omit it.

Clear-RecycleBin -Confirm:$false

[bb1%255B4%255D.png]

Reference link – http://newdelhipowershellusergroup.blogspot.in/

Posted by Sheikvara

+919840688822, +919003270444

 

Advertisements