PowerTip: Use PowerShell to Display the Desktop


Summary: Use Windows PowerShell to change the display to the Desktop.

Hey, Scripting Guy! Question How can I use Windows PowerShell to switch to displaying the Desktop on my computer?

Hey, Scripting Guy! Answer Use the ToggleDesktop method from the Shell.Application COM object:

(New-Object -ComObject shell.application).toggleDesktop()

Comments (3)

  1. U2412M says:

    I would like to thank you for the efforts you have made in writing this article. I mostly agree with you most of the point I have subscribed the feed and looking forward for the followup subscriptions.

  2. U2713H says:

    Article that you had shared with us is useful for us. This article provides us information which can help us to gain knowledge about something new.

  3. Coffee In India says:

    Very nice post of the day. I hope every one should get the maximum benefit from this.

Skip to main content