jhieb
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
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
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:
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
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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
For a fun ADS test, try:
md \\?\%userprofile%\desktop\ nul
echo Hello World.>\\?\%userprofile%\d esktop\nul :nul
more<\\?\%userprofile%\des ktop\nul:n ul
md \\?\%userprofile%\desktop\
echo Hello World.>\\?\%userprofile%\d
more<\\?\%userprofile%\des
Was it a file that was downloaded from the internet?
~bp