Link to home
Start Free TrialLog in
Avatar of jhieb
jhiebFlag for United States of America

asked on

Start EXE file and prevent Windows Warning

Hello,

I am running an EXE file from a mapped network drive. Each time I double-click on the file I get a Windows warning that asks me:

"Do you want to run this file?"

Then, I press the RUN button and the file runs.

The reason I ask is because I am setting up a logon script for each user's workstation so that they can run program from their mapped network drive. I don't want them to be worried by this message coming up on the screen. So, I want to prevent the message from appearing entirely.

How do I prevent the "Do you want to run this file?" prompt from coming up?

By the way, my workstations are all Windows 7 (x86) and (x64)

Thanks,
John
Avatar of Bill Prew
Bill Prew

What is the EXE that you are running?

Was it a file that was downloaded from the internet?

~bp
Are you running this program from the desktop or the start menu?

If you are running from the start menu, try the following:

Open the cmd console as an administrator (right click on cmd program and choose run as administrator) and enter:

ICACLS "%programdata%\Microsoft\Windows\Start Menu\Programs" /Setintegritylevel (OI)(CI)Medium

Open in new window

Avatar of jhieb

ASKER

It is my program and it is an EXE file. The program is on a network drive. I created a shortcut to the EXE file and I copied the shortcut to the local computer's desktop. When I double-click the shortcut I get a Windows warning. I want to prevent this warning from happening.

I can right click on the shortcut and say, "run as administrator". Then, I can run the program without the warning. But, my users will most likely double-click on the file and get worried when they see the warning. Is there a switch I can put on the shortcut to tell it not to display the warning?
SOLUTION
Avatar of Steven Harris
Steven Harris
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
For a fun ADS test, try:

md \\?\%userprofile%\desktop\nul
echo Hello World.>\\?\%userprofile%\desktop\nul:nul
more<\\?\%userprofile%\desktop\nul:nul