Article View: comp.windows.ms.programmer
Article #8Re: {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 15:22
Date: Fri, 30 Oct 2026 15:22
152 lines
8395 bytes
8395 bytes
On 10/30/2026 9:15 PM, Paul wrote:
> On Fri, 10/30/2026 7:40 AM, Johann 'Myrkraverk' Oskarsson wrote:
>> On 10/30/2026 7:29 PM, knuttle wrote:
>>> On 10/30/2026 1:46 AM, 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 saw you bought a tower PC. Being a tower if may have the Enterprise version of Windows 11 preinstalled. They is from a Google search:
>>>
>>> "
>>> Supported Windows Client Editions
>>>
>>> Device Guard requires an enterprise-grade operating system. It is supported on 64-bit versions of:
>>> • Windows 11 (Enterprise, Education, and IoT Enterprise editions)
>>> • Windows 10 (Enterprise, Education, and IoT Enterprise editions)
>>> • Note: It is not supported on Windows Home editions, and has highly limited/restricted Virtualization-Based Security capabilities on standard Pro editions unless upgrade"
>>>
>>> So to truly remove it, if looks like you need to scrub the disk and install the Home addition of Windows
>>
>> When I execute
>>
>> Win+R winver
>>
>> it tells me I have Windows 11 Pro. I have not yet recreated the problem
>> and put a screenshot on some social media, so let's take it slowly.
>>
>> I hope I can manage that later today.
>
> Best Guess:
>
> Windows Security (powder blue shield with yellow triangle bottom right) in the Task Bar overflow area.
> Virus and Threat protection
> Virus & Threat protection Settings ("Manage Settings" link)
> Real-Time protection ON
> Dev Drive protection ON (and likely in response to your enabling of "Developer Mode")
> Cloud-delivered protection OFF (don't want new executables analyzed for reputation)
> Automatic sample submission OFF (don't want new executables analyzed for reputation, on accidental signature match)
> Tamper Protection ON
> Controlled folder access OFF (a ransomware protection feature, apparently)
> Exclusions (custom, you decide which folders should not be scanned by AV)
>
> Generally, enable features that won't ruin a good time. Then see
> if whatever-the-error-message-was, goes away. Some features, you
> look at the profit and loss, and sometimes the price is too high.
>
> While from a performance degradation perspective, Real-Time protection
> should be OFF, we cannot afford to run that way really. So it stays ON
> for now. On high I/O situations, your I/O can be reduced to as low
> as 12% of normal by the AV (on a hard drive).
>
> There was a period of time (six months?) where incorrect
> assertions were made by Windows Defender, about what might
> be considered to be my Dev Drive. Nothing I did improved
> the situation, but I guess eventually a Patch Tuesday fixed it.
> There is no visible problem today with that (warnings about
> files for which there should NOT be warnings).
>
> It's remotely possible the machine was Domain Joined by someone,
> before you got it. You would have to review what state the
> machine was in, when you got it. Did you log in the first
> time on a profile "User" password "User" ? That could be
> a sign it was played with, before you got it. You could
> download a 26H2 DVD from Microsoft (google for that), make
> a DVD or USB stick, and do a clean install of the OS. And then
> things like password aging 45 days, should disappear. The only thing
> you should watch for is:
>
> [Admin terminal]
>
> PS> manage-bde -? # Get the help for the program, while in Powershell
> C:> manage-bde /? # Get the help for the program, while in Command Prompt shell
>
> manage-bde -status # Check that none of your partitions have Bitlocker applied
>
> That's to avoid surprises later, if data recovery is required.
> You should not allow Bitlocker to be applied, unless you have
> read up on best practice, such as preparing a recovery disc
> that has the key on it. Encryption can be a write-once read-never
> technology, if you did not prepare yourself before hand. And during
> install, Windows has been known to encrypt C: . The encryption
> can be reversed, even if it is half-ways done. It will undo itself
> when you flip the switch for that (I've had to do this once here).
> While Windows 11 Home might do this, Pro less likely, I want you
> to know about the issue and understand what command checks for this.
> I hate it, when people discover C: is encrypted, when we're in the
> middle of trying to fix something.
>
> Paul
Thank you. I ran it, and got
BitLocker Drive Encryption: Configuration Tool version 10.0.26100
Copyright (C) 2013 Microsoft Corporation. All rights reserved.
Disk volumes that can be protected with
BitLocker Drive Encryption:
Volume C: []
[OS Volume]
Size: 930.50 GB
BitLocker Version: None
Conversion Status: Fully Decrypted
Percentage Encrypted: 0.0%
Encryption Method: None
Protection Status: Protection Off
Lock Status: Unlocked
Identification Field: None
Key Protectors: None Found
which I take to mean I do not have any /encription/ on my C drive. As
is, that's the only drive in the machine.
Yes, a clean install would be desirable, but life has given me some
challenges lately that have higher priority. I'll probably get to it
within the next few months, but it's not a high priority in life. And
I don't feel any need to explain what that challenge is, because that
would be telling.
I'll look at the Windows Security settings later on, hopefully today.
Best wishes, and happy disk decryption!
--
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:
<yC2FS.24406$Gsmc.23682@fx17.ams4>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer04.iad!feed-me.highwinds-media.com!news.highwinds-media.com!peer05.ams1!peer.ams1.xlned.com!news.xlned.com!fx17.ams4.POSTED!not-for-mailReferences:
<gbWES.44032$%QK8.26165@fx12.ams4> <11c1v2r$6lf7$1@dont-email.me> <Qm%ES.44035$%QK8.30770@fx12.ams4> <11c259s$91t6$1@dont-email.me>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!news.highwinds-media.com!peer05.ams1!peer.ams1.xlned.com!news.xlned.com!fx17.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> <11c1v2r$6lf7$1@dont-email.me>
<Qm%ES.44035$%QK8.30770@fx12.ams4> <11c259s$91t6$1@dont-email.me>
Content-Language: en-US
From: Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid>
Organization: Watcom Pro Ltd.
In-Reply-To: <11c259s$91t6$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 152
Message-ID: <yC2FS.24406$Gsmc.23682@fx17.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 23:22:04 +0800
X-Received-Bytes: 8226