WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

UAC

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Unknown Publisher

 Keywords: Unknown Publisher UAC Code Sign Manifest Trusted Requested Elevation uiAccess Win7 Vista  

Question:

I have a simple compiled batch file that copies files from a network drive to the local hard drive. Up until a couple of days ago, it seemed to work fine; now Win 7 asks for permission to run the file, saying it is from an unknown Publisher. Then I get another dialogue saying "The requested operation requires elevation." Am I the only one having permission issues on Win 7 when running compiled WinBatch scripts? Is there a way to add a Publisher entry when compiling these scripts?

I am compiling my script using the following UAC Manifest settings:

Requested Elevation: HighestAvailable
uiAccess: False
Not Code Signed

Answer:

Ok you are getting the 'Unknown Publisher' message because your code is not 'Code Signed'. If you do not sign your EXEs then Windows makes your it appear as if it's a malware program. When you run an EXE you may recieve a message asking you whether or not you trust the application you are about to run. If your EXE is not digitally code signed then the popup message will reference an "Unknown Publisher". If the EXE is digitally signed it will reference your own information in the popup message.

For more information about Code Signing see: http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/64-bit+Code~Signing~an~EXE.txt

Alternatively you can turn off the Unknown Publisher warning when opening an executable file from a mapped network drive via Windows Group Policy: http://www.displacedguy.com/tech/turning-off-the-unknown-publisher-warning-dialog/

Other possible work arounds:

Bypass the security warning "Unknown Publisher" with the checkbox "Always Ask Before Opening this File"
http://blogs.msdn.com/b/askie/archive/2009/06/19/how-to-bypass-the-security-warning-unknown-publisher-with-the-checkbox-always-ask-before-opening-this-file.aspx


Article ID:   W18328
Filename:   Unknown Publisher.txt
File Created: 2014:07:18:09:51:40
Last Updated: 2014:07:18:09:51:40