Vicki Baluch (VickiB36)
Cross Functional Business Lead
VickiB36 Member since 2016 5 posts
Posted: August 8, 2017
Last activity: November 6, 2018
Posted: 8 Aug 2017 15:08 EDT
Last activity: 6 Nov 2018 20:02 EST

How can I access an existing Windows Adapter via a shortcut with Run as Administrator controls built in, instead of directly to the application

For security reasons, my company is changing access to a windows application to allow access only if "Run as Administrator" is selected. If launched independently of my robotics automation solution (from the public desktop icon), the shortcut itself prompts the user to agree to run as administrator and then runs the .bat file to load the application. Currently my adapter runs straight to the .bat file, but I need it to run thru the new shortcut and let the shortcut launch the application. How can I accomplish this in the adapter? If I set the path to the shortcut.lnk file, my StartMethod changes from "Start" to StartandWait" and then I get a message that the "TargetPath must contain a value for StartMethod StartandWait." If I set the TargetPath to either the shortcut folder or the actual application folder (where the .bat file is), then I get a message "An error occurred while setting up shared memory with the service 'OpenSpan Services'. Verify that the service is running". Please advise.

***Edited by Moderator Marissa to update categories***

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Robotic Process Automation
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.