Tuesday, May 24, 2016

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:$false to omit it.

Clear-RecycleBin -Confirm:$false
Aman Dhally , Manya Kaur
So sweet isn't? :)
I have tested the above cmdlet on Windows 10 machine :)
Thanks
Aman Dhally , Manya Kaur

With Regards.
Aman Dhally
If you like, you can follow me on Twitter and Facebook. You can also check my “You Tube channel
for PowerShell video tutorials. You can download all of my scripts from “Microsoft
TechNet Gallery”.

12 comments:

  1. Want to master Search Engine Optimization training (SEO) in 2016? Join SEO Certification Course. Join FREE Demo!

    ReplyDelete
    Replies

    1. office home and student 2010 check if genuine , office home and business 2010 wholesale , download windows 8 pro genuine product key , activation key windows 7 professional , cheap windows and office product keys , windows server 2003 web edition key , windows 10 activation 4f050 , get windows server 2016 keys discount , lyr75N

      windows 7 ult key sale online

      buy office pro plus 2016 keys

      cheap windows 10 pro keys for sale

      windows server 2016 standard key sale and download

      buy windows 7 ult keys online

      Delete
  2. Thank you for the fresh content and information you provide. This really helps learners like me. Keep sharing knowledge. Happy to read.the blog is very interesting and will be much useful for us.
    Android training in chennai

    ReplyDelete
  3. This post is worth everyone’s attention. Good work. buy supplements online india

    ReplyDelete
  4. Very useful piece of information here you had provided. I am expecting much more posts from you.
    SEO Company in Chennai

    ReplyDelete
  5. Celebrate going deep with Delhi Escorts Service that Survin will represent for you. She is a good dancer and best dance teacher. Her students want to see her daily in practice. You may call her for Escorts Service in Delhi. For she is an Individual in Delhi Escorts but pleasing all. You may enjoy dating time with her. Therefore haste to Hire Escorts in Delhi and enjoy with high profile female dancers.

    ReplyDelete
  6. Nice Post about "PowerShell cmdlet of the Day : Clear-RecycleBin"

    Thanks,

    Silver Mcx Tips

    ReplyDelete
  7. Superb. I really enjoyed very much with this article here. Really it is an amazing article I had ever read. I hope it will help a lot for all. Thank you so much for this amazing posts and please keep update like this excellent article.thank you for sharing such a great blog with us. expecting for your.
    Digital Marketing Company in India

    ReplyDelete
  8. Great and useful article. Creating content regularly is very tough. Your points are motivated me to move on...
    SEO Company in Chennai

    ReplyDelete
  9. Superb. I really enjoyed very much with this article here. Really it is an amazing article I had ever read. I hope it will help a lot for all. Thank you so much for this amazing posts and please keep update like this excellent article.thank you for sharing such a great blog with us. expecting for your.
    Digital Marketing Company in India
    seo Company in India

    ReplyDelete
  10. Really i enjoyed very much. And this may helpful for lot of peoples. So you are provided such a nice and great article within this.

    Digital Marketing Company in Chennai

    ReplyDelete
  11. How to get led with hottest female and call girls in Delhi? We are going to ensure you for hot dating with hottest Indian sexy Escorts in Delhi. You may call for Delhi Escorts and Enjoy the Hot dating and romance. Read more: - Delhi Escorts

    ReplyDelete