VB.Net/Windows Server - run shortcut on server without message "Do you want to run this file"

PNRT
PNRT used Ask the Experts™
on
Hi Experts.  I have a VB.Net program that creates a shortcut on a windows server.  The user clicks on the shortcut in explorer to run a small program on the server.  The problem is that they get a warning message "Do you want to run the file xxxxxxxxx".  As there are many operators who have to click these shortcuts a few times every minute, is there a way to avaoid the warning showing - may by changing permissions or something?   Tahnsk for the help
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2012
Top Expert 2014

Commented:
Is the program on the server where the shortcut is? You can get rid of the warning by signing the app with your certificate.

Author

Commented:
Yes the program that the shortcut refers to is on the server.   How would I use a certificate to sign the app?  Googling it seems to refer to having to buy a certificate?
Most Valuable Expert 2012
Top Expert 2014

Commented:
Yes certificate has to be bought from an authority.
How to Generate Services Revenue the Easiest Way

This Tuesday! Learn key insights about modern cyber protection services & gain practical strategies to skyrocket business:

- What it takes to build a cloud service portfolio
- How to determine which services will help your unique business grow
- Various use-cases and examples

Most Valuable Expert 2012
Top Expert 2014

Commented:
You said that user double clicks a shortcut in explorer to run the program on server. Is this explorer running on server via remote login?

Author

Commented:
Hi, no, the user has a shared drive which is a folder on the server.   The shortcut is located in that folder.  When they double click the shortcut, they get the "Do you want to run this file".
Most Valuable Expert 2012
Top Expert 2014

Commented:
That's the reason then. They run an application from network location on local computer hence the message. Easiest way to get rid of the message is to copy the application to local computer.

Author

Commented:
I was hoping to avoid that as the program uses files that are also situated on the server, so running the program from the local machine would mean opening up more of the server to the users and would get quite complicated
Most Valuable Expert 2012
Top Expert 2014

Commented:
Programs already run on the local computer. Double clicking an exe on a network drive does not run the exe on that server. Give it a try by copying locally and see what happens.

Author

Commented:
Sorry - we misunderstanding here.   Its not an exe thats creating the warning,  Its a shortcut on the server that runs a program on the server.   Its the shortcut thats creating the warning.  Thanks for the reply
Most Valuable Expert 2012
Top Expert 2014

Commented:
Its same thing. You can double click the exe directly to check that. Are we clear on the fact that exe is run on local computer?

Author

Commented:
No sorry, I dont think wé have it right yet.     I have a program that sits on the server.   I also have a a shortcut to that program on the same server.   I have users that double click the shortcut via a mapped drive to the server, and the program then runs correctly.   However, when the program runs, the user first gets the warning - "Do you want to run the file".   I was just looking for a way to stop the warning.  Thanks for the reply.
Most Valuable Expert 2012
Top Expert 2014
Commented:
>I have a program that sits on the server.   I also have a a shortcut to that program on the same server.   I have users that double click the shortcut via a mapped drive to the server, and the program then runs correctly.

Program runs correctly on the local computer. The reason behind warning is that you are running the program from a network location. Its a security feature.


> I was just looking for a way to stop the warning.
As I said, easiest way out is to copy the program to local computer. It will still be able to access same server resource that it is doing now.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial