cancel
Showing results for 
Search instead for 
Did you mean: 

Using multiple account to log on Windows

HongJooChoi
Staff
Staff
Dear Community


We're testing the Login Agent in a project.

Is there any way for the Login Agent to use multiple accounts to log on Windows?

The scenarios is very simple like this:
1. Log on Windows using the account #1 and do process #1.​
2. Log out (not Windows Lock) without reboot
3. Log on Windows using the account #2 and do process #2.

To do this, the Login Agent should be able to use multiple accounts and may need to decide which account to use whenever it passes the Log on process of Windows.

If my understanding is correct, there is only Credential can be defined for the same hostname, therefore it seems not possible to log on Windows using different accounts and the above scenario doesn't make sense.

Is my understanding correct? or Does anyone have a solution by chance?



Best regards

​​



------------------------------
HongJoo Choi
------------------------------
1 REPLY 1

diane.sanzone
Level 7
Hi HongJoo,

We use multiple AD accounts to run our bots because each has security unique to the process it runs, so yes, it is possible. We created a copy of the BP canned Login process and modified it to a new one that we called "Windows Login". We changed the startup parameter from "send secure attention sequence" to be a text entry of "Account User Name" and we enter the AD credential name there as a startup parameter.  We further modified the "Send SAS" decision to instead check that the User Name field has data using this simple calculation:

Len(Trim([Account User Name])) > 0

and then subsequently calculate the credential name based on that value

"Windows Login: "&Trim(Lower([Account User Name]))            - store this in the Credential Name data item

We store the AD credentials in BP credential manager so there is no need to input them into the process, and we have these credentials set to not expire so we don't need password reset logic.

Please let me know if this information is insufficient for you to modify the process and I'll see if there's any additional detail I can provide.

Good luck!

20710.png

------------------------------
Diane Sanzone
------------------------------