Monday, February 8, 2016

PowerShell Tips : Minimise your Desktop using PoweShell.

 

This is soo cool tip :) , We all love "Windows + D " shortcut combination to minimize the all applications those are open on the desktop. If you wanna do the same using PowerShell commnad.

Try the below ;o) .

 

$myDesk = New-Object -ComObject Shell.Application

$myDesk.ToggleDesktop()

7

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”.

2 comments:

  1. Aman,

    I noticed that when I tab through $myDesktop. there are many choices. Where can I get information about these choices. Some are obvious like $myDesk.MinimizeAll() while others leave me scratching my head.

    Thanks,

    -John

    ReplyDelete
    Replies
    1. I am interested in this too ; mostly if it's available in powershell ISE
      Otherwise, check the msdn library.
      https://msdn.microsoft.com/en-us/library/windows/desktop/bb774094(v=vs.85).aspx

      Delete