Unable to get specific item from cmd

hello,

i need to get specific word from cmd check below image

i need to get kmatkar from screen.
i am using get visisble text activity and getting result in variable.
how can i get. that name will vary with query but will always come in same place only value will chnage

help me on same.

Hi @Mathkar_kunal

Pls check the below thread might be helpful

Happy Automation

not able to get proper value or outof bounds error

can you please give me correct regex

Hi @Mathkar_kunal

I just try to extract the hostname so i used below steps:

  • Drag Invoke PowerShell
    CommandText → "hostname"
    IsScript → False
    TypeArgument → String
    Output → result (IEnumerable)
  • Add Assign
    hostName = String.Join("", result).Trim

so you can just modify with your cmd and verify .