PowerTip: Use PowerShell to Display the Desktop

PowerTip: Use PowerShell to Display the Desktop

  • Comments 3
  • Likes

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()

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • 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.

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

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