Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 8ZX5fRgO/nStO4S3nDthAL
Power Automate - Building Flows
Unanswered

Building a flow that starts by opening a Command Prompt

Like (0) ShareShare
ReportReport
Posted on 7 Dec 2022 21:46:15 by

I'm one of the many who encounter the problem where my taskbar stops auto-hiding. The only way to restore it to normal function is to go into Task Manager (or open a DOS command screen), kill explorer.exe, and then run explorer.exe. It comes back like normal and stays like that until ... the next time it feels like not auto-hiding. 😐

 

I'm trying to use Power Automate for a solution to expedite the fix: create a flow consisting of initiating Command Prompt, entering the kill explorer.exe text line, entering explorer.exe, and exiting. Being able to run this flow would be a god-send.

 

Trouble is: I can't make it work. I can't get it to start by initiating the Command Prompt, which means the flow fails right at the beginning because it doesn't have a place to enter the text lines in the subsequent steps of the flow. Can someone out there offer a little guidance on how to set up a Power Automate flow that starts by opening the Command prompt (so that the subsequent text entry commands go into the Command prompt window? Thanks much!

  • srApps Profile Picture
    306 on 08 Dec 2022 at 20:25:59
    Re: Building a flow that starts by opening a Command Prompt

    Are you choosing PA Desktop to do this as a learning experience? I can't help with that as I've not used it, but I'm all for learning. A batch file is quick and easy too though and may be the right/easier tool to do the job. Open Notepad and type in:

    taskkill /f /im explorer.exe
    start explorer.exe

    Save as restart-explorer.bat to your desktop. Double click and it does the trick.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,743 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,079 Most Valuable Professional

Leaderboard
Loading started
Loading complete