Article View: alt.comp.os.windows-11
Article #808Re: {Question} How do I whitelist my source directory from device guard, so it will run unsigned binaries?
From: Johann 'Myrkraverk' Oskarsson
Date: Fri, 30 Oct 2026 05:49
Date: Fri, 30 Oct 2026 05:49
40 lines
2957 bytes
2957 bytes
On 10/30/2026 1:46 PM, Johann 'Myrkraverk' Oskarsson wrote: > Dear alt.comp.os.windows-11, > comp.windows.ms.programmer, > > How do I disable this /Device Guard/ policy -- whatever that is -- so I > can run my self-made binaries unsigned? I am just a pleb, and do not > have a code signing key that I can just casually use every time I run > CL.exe to build my program. > > My workaround so far has been > > del myprogram.exe > > nmake > > which recreates the binary from the object files. This usually works, > but is not completely reliable, and I have had to delete the executable > several times before the /Device Guard/ will allow it to run. I guess > this is something about stochastic uncertainty when MSVC optimizes or > generates the instructions; but anyway, it's slightly annoying. > > Is there a way to disable the /Device Guard/ policy, or something, in my > source directory, such that it still applies to the /world at large/? I > do not wish to turn this otherwise quite useful security feature off > completely. > > > Best wishes, and happy security policies! I should add that, when I asked the insufferable know-it-all ChatGPT, it suggested several different ways, and made an off hand remark that some of the workaround(s) it suggested wouldn't work. So it kind of contra- dicted itself, so here I am, on Usenet, and wondering if the experts of alt.comp.os.windows-11 and comp.windows.ms.programmer know how to do this? -- Johann | email: invalid -> com | http://www.myrkraverk.com/blog/ I'm not from the Internet, I just work there. | via Easynews.com https://bsky.app/profile/myrkraverk.bsky.social | for ( ;; ) _:; Federated at https://fed.brid.gy/bsky/myrkraverk.bsky.social
Technical Details
Message-ID:
<KdWES.44033$%QK8.3939@fx12.ams4>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer04.iad!feed-me.highwinds-media.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx12.ams4.POSTED!not-for-mailReferences:
<gbWES.44032$%QK8.26165@fx12.ams4>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer04.iad!feed-me.highwinds-media.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx12.ams4.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: {Question} How do I whitelist my source directory from device
guard, so it will run unsigned binaries?
Newsgroups: alt.comp.os.windows-11,comp.windows.ms.programmer
References: <gbWES.44032$%QK8.26165@fx12.ams4>
Content-Language: en-US
From: Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid>
Organization: Watcom Pro Ltd.
In-Reply-To: <gbWES.44032$%QK8.26165@fx12.ams4>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 40
Message-ID: <KdWES.44033$%QK8.3939@fx12.ams4>
X-Complaints-To: abuse@easynews.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Fri, 30 Oct 2026 13:49:30 +0800
X-Received-Bytes: 2729