I have seen the following question, but this is different: Get rid of Vista security warning

I wanted to make a convenience .bat script for fast cleanup (deleting several files in current directory). If i make such a .bat script in my home folder on my local computer, I can run it freely without security warnings.

However, when I copy it to H: (which resides on some central server, not my computer), I will suddenly start to get security warnings (of the type "Open File - Security Warning"). How can I get rid of this?

Notice that this is a .bat script. When you rightclick and choose properties on an .exe file, you will get the option to "unblock" the application. For .bat scripts, I do not seem to get that option though.

EDIT: Preferrably i would like a solution which does not require administrator permissions, if possible.

link|improve this question
feedback

2 Answers

Have you tried adding the network server to your trusted sites in Internet Explorer?

link|improve this answer
I added the ip adress and the hostname off the network server in IE trusted sites. For the ip adress i tried adding both xxx.xxx.xxx.xxx and http://xxx.xxx.xxx.xxx. Neither of those additions seeemed to fix the problem though. Do the setttings for internet explorer also apply to the normal file explorer? Or is there a specific place where i can add trusted sites to the file explorer? – Alderath Dec 12 '11 at 16:08
You'll also need to make sure the Trusted Site security settings allow programs to run without prompting. By default, it still prompts.And yes, these settings also apply to Explorer. – surfasb Dec 12 '11 at 19:16
you add the server using the normal UNC style \\servername @surfasb good point, yes. – baldy Dec 13 '11 at 9:59
@badly: You can add that to your answer for future readers: – surfasb Dec 13 '11 at 15:16
I tried adding the \\servername to trusted sites, as well as going into Internet Options -> Security -> Trusted Sites -> Custom Settings and, under Miscellaneous changing "Launching applications and unsafe files" from Prompt to Enable. Unfortunately, i still get the same warning when trying to run the batch script. – Alderath Dec 14 '11 at 10:07
show 1 more comment
feedback

adding *.bat files to the low risk file types solves this. Explanation here, or in short:

  • run gpedit.msc
  • navigate to User Configuration->Administrative Templates->Windows Components->Attachment Manager
  • double click Inclusion list for low file types
  • click Enabled and add *.bat to the list
  • click Apply, this takes effect immedeately
link|improve this answer
I was primarily looking for a way to disable the security warning for one particular file, as opposed to the security warning for all files of a certain file type. Despite this, I attempted to use your solution. However, unfortunately this does not work under my particular circumstances, as I do not have admin rights on my machine (and such rights are apparently needed to run gpedit.msc). – Alderath Dec 12 '11 at 16:11
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.