4

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.

Alderath
  • 141

3 Answers3

4

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

baldy
  • 256
4

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
stijn
  • 2,087
2

I had this problem, and used the solution that stijn provided. However, as of this morning, the warning returned. I checked, and the Group Policy was still in place, so I'm wondering if perhaps the new Windows Update changed something? Regardless, the solution I had to use was to create a shortcut to the .cmd files, and then in Properties > Advanced I selected "Run as Administrator". Not the most eloquent solution, but for my purposes, it works. I'd really like to know why this stopped working, and what I could do to make it work again, though.