Looking for Robot to determine what account it is running as?

I’m not a Windows guru at all. I’m curious how a Robot would determine what AD account it is running under ? Is there something it already has within its running environment variables or a simple command it could run locally ?

I have to think this is something pretty simple ? And all my Googling was simply looking for the wrong key words :slight_smile:

Thanks in advance !!

Hi @riverrat437 ,

Welcome to UiPath Community Forum!

Are you running an attended robot? If yes, you can use activity ‘Get Environment’, select Username and in the output field, enter the variable to store the user. If running unattended robot, you need to login to your Orchestrator.

Get Environment … Thanks !!! I will check that out.