web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Problems with write CM...
Power Automate
Answered

Problems with write CMD - Power Automate Desktop

(0) ShareShare
ReportReport
Posted on by 4

Hi. 

I have created a power automate to run a command on a CMD and write on a blank Excel.

 

When i see the results it's look like that sometimes de Write CMD does not "press enter" on a command and saves the command like this

nslookup -type=mx xyz.com and doesn't have the results of command.

 

Anyone have an idea?

I have the same question (0)
  • Verified answer
    JamesP_MSFT Profile Picture
    Microsoft Employee on at

    Hi @joaofuzinelli

    Could you please provide some more info?

    Conceptually, the logic in the flow should look like this:

    JamesP_MSFT_0-1604001334871.png

     

    right?
    You create a CMD session, pass it a command and then retrieve the output of that command and save in an Excel worksheet.
    Also, from what I understand the issue you are facing is not constant, it happens randomly. 

    Try utilizing a Wait action after the execution of Write to CMD session. 
    You could utilize the Wait for text on CMD if you know that an exact output will be available at every execution or use a simple Wait action a set a small delay in seconds.

    Best regards,
    James

  • joaofuzinelli Profile Picture
    4 on at

    Hi James.

     

    The problem was the wait between the Write on CMD and Read from CMD.

     

    That's working fine now.

     

    Thanks a lot!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 796

#2
Valantis Profile Picture

Valantis 568

#3
Haque Profile Picture

Haque 538

Last 30 days Overall leaderboard