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 / Unable to retrieve val...
Power Automate
Answered

Unable to retrieve value from CMD

(0) ShareShare
ReportReport
Posted on by 15

Hi Everyone,

 

I'm trying to fetch the domain name (whoami) from CMD through Power Automate Desktop but unable to achieve it.

So, how to retrieve a value from CMD and store it in a variable?

Please help me out on this.

 

Regards,

Harsha Vardhan.

I have the same question (0)
  • Verified answer
    Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    Henrik_M_0-1633001758659.png

    Output variable should store the result.

  • VJR Profile Picture
    7,635 on at

    Hello @Harshavardhan 

     

    The CmdOutput variable coming from the "Read.." action will give the output of the command

     

    VJR_0-1633002101884.png

     

    If you want the entire text else Run dos command will suffice your requirement.

     

     

  • Harshavardhan Profile Picture
    15 on at

    Hi Henrik,

     

    Thanks and it worked fine.

     

    I have another issue which I am being faced. I am trying to give access to my colleague as User level access to my group environment. Is it possible run the flow from cloud. 

  • VJR Profile Picture
    7,635 on at

    Hello all thread members, 

     

    What is the difference between 

    Run DOS Command

    and 

    CMD Session

    and which to use when?

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 229 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 227

#3
Haque Profile Picture

Haque 181

Last 30 days Overall leaderboard