CMD command

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?

whoamiSample.xaml (4.8 KB)

Regards…!!
Aksh

2 Likes

image

still having same issue

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

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

please check this

Hey @AbdulmuizSindi

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

Hi @AbdulmuizSindi,

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

Regards,
Arivu

it works perfectly :slight_smile:

Thank you very match