How to fetch details from Windows Credentials

Hi All,

Hope you all doing good :slight_smile: I’ve been trying to fetch the details from windows credentials for one of my RPA workflow. It always returns me the false value. Not sure, where I’m going wrong. Any kind of help would be appreciated. Have attached the xaml file for reference.
Capture
GetSecureCredential.xaml (5.4 KB)

Thank you all

Hii …

Please use ‘Generic Credentials’ instead of ‘Windows credentials’. Generic Credentials can be used by applications running in windows for authorization purposes, whereas Windows credentials are dedicated to windows and its services.

Best regards,
Nimin

2 Likes

Hi nimin,

Thank you for the response. Actually, I was trying the window credential one as I need to unlock my windows screen prior to executing the workflow. Will try using the Generic Credentials. Hope it will sort out the problem. Once again thank you for your response.

Hey there, would you mind reporting back on this working? Starting a project soon that will require something similar.
Thanks in advance!

@efleurent and @Ilangos

Use get credentials activity.

For more info :slight_smile:
How to work with Windows Credentials

Regards,
Aditya

Please close topic by marking most useful reply as solution .

2 Likes

Still hard luck … though I’m able to get the credentials from windows manager. I’m unable to unlock the windows screen with the bot.
Step1 : Used Get Secure Credential activity
Step2: Send the hot key : Enter
Step3 : Used Type secure text : To type the password.

It is failing with reason below reason:-

Desktop has been disconnected while performing UI actions.

An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
UiPath.Core.ElementOperationException: Desktop has been disconnected while performing UI actions. ----> System.Runtime.InteropServices.COMException: Desktop has been disconnected while performing UI actions.
at UiPath.UiNodeClass.WriteText(String text, UiInputMethod inputMethod)
at UiPath.Core.UiElement.WriteText(String text, InputMethod method)
— End of inner ExceptionDetail stack trace —
at UiPath.Core.Activities.TaskAsyncCodeActivity`1.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

Using_Get_Secure_Credential.xaml (6.4 KB)

Have attached the xaml file for reference.

Hi Ilangos,

Please have a look at this similar thread.

Warm regards,
Nimin

Hi Nimin,

Thanks for providing this post. However, not able to follow along :tired_face: … There should be some easy way to tackle this problem…

Hi Ilangos,

Are you running an unattended or an attended robot?

If you are running an attended one you need to be logged in. The robot cannot automate the logon screen.

If you run an unattended one you have to either use orchestrator to be able to start interactive windows sessions (robot services logs on as an actual user) or specify your credentials which the robot use in a specific format as stated in the following document at the end of the document:

Cheers
Mario

1 Like

That makes sense, guess I’ll just need to leave my server logged on then (still working on getting past community edition)
Thank you @Lunk @nimin @rahatadi

2 Likes