CMD command

studio
cmd

#1

I want to use CMD command "whoami’ on uipath to know the logged on user and save it in variable

i’ve tried activity (invoke Power shell) but alway going wrong with me.

how it can be done?


#2

whoamiSample.xaml (4.8 KB)

Regards…!!
Aksh


#3

image

still having same issue


#4

check with your properties. are you running my workflow? check your type argument property. or share your workflow.


#5

it works greatly but i cannot get that info in a variable to use it in message box or something else


#6

please check this


#7

Hey @AbdulmuizSindi

you can see in a sample you have to use like op.Item(0) in your message box.


#8

Hi @AbdulmuizSindi,

use this code in message box
op.Item(0).Tostring()

Regards,
Arivu


#9

it works perfectly :slight_smile:

Thank you very match