This file came from a place where there is no trust

חזי אנג'ל 6 Reputation points
2022-02-15T05:53:25.607+00:00

I try to run exe file when the windows log on
i create script with highest privileges
the script run but when he try to run the exe file i get the massege
"This file came from a place where there is no trust"
and i need to write the administrator user

how i can trust the locaition ? ( the file is in the network)
I want the file to run without asking alone, without asking me for a username and password or any confirmation

i have server 2019
and i want to run the file in windows 10

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,695 questions
Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,290 questions
Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,340 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,586 Reputation points
    2022-02-16T16:03:56.133+00:00

    Hello @חזי אנג'ל

    This is likely because you are trying to execute the exe from a network or shared storage. For this , you can add the trusted location in Internet Options:

    • Click the Windows icon on the computer and type Internet Options
    • Open Internet Options, then click Trusted Sites, and then click the button Sites
    • Add the FQDN root location

    Other option is to run with the parameter "-NoNewWindow" as in:

    "\192.168.1.10\program.exe" -ArgumentList "/q" -Wait -NoNewWindow

    Hope this helps with your query,

    --
    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.