In the pervious PowerShell Tip, we have seen that how can create a new empty PowerShell script on the fly.
Ok, today's tip is little bit exciting. Do you what happens when you press Windows Key + D ?
Yes, it, minimise everything. I was trying to achieve the same using PowerShell, and manage to do it.
Wanna know it? I can tell you, but you have to promise me a coffee ;o) .
It's simple we have to use the New-Object and need to add Shell.Application to a variable and then we need to run the MinimizeAll() method. Simple!
$a = New-Object -ComObject Shell.Application
Try it now and have fun.