Powershell refresh desktop screen

Filip 831 Reputation points
2021-04-15T14:01:04.17+00:00

Hello.
How can I refresh desktop screen with powerhsell?
Thanks for help.

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,561 questions
{count} votes

Accepted answer
  1. SUNOJ KUMAR YELURU 14,466 Reputation points MVP
    2021-04-15T14:59:42.91+00:00

    Hi @Filip

    You can do using powershell, refer to the below url.
    https://stackoverflow.com/questions/59668242/powershell-desktop-refresh

    If the Answer is helpful, please click Accept Answer and up-vote, this can be beneficial to other community members.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. campbellkerr 106 Reputation points
    2021-04-15T23:49:18.71+00:00

    A simple way might be to use wscript/sendkeys (in powershell). You could send the F5 key which would also refresh the desktop.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.