Skip to content

Commit

Permalink
Clarify note for SetDEPOptOut/SetDEPOptIn, resolves Disassembler0#7
Browse files Browse the repository at this point in the history
  • Loading branch information
Disassembler0 committed Jan 19, 2020
1 parent d854b60 commit 68f94a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Win10.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -853,13 +853,13 @@ Function EnableRecoveryAndReset {
reagentc /enable 2>&1 | Out-Null
}

# Set Data Execution Prevention (DEP) policy to OptOut (Turn on DEP for all programs and services except selected)
# Set Data Execution Prevention (DEP) policy to OptOut - Turn on DEP for all 32-bit applications except manually excluded. 64-bit applications have DEP always on.
Function SetDEPOptOut {
Write-Output "Setting Data Execution Prevention (DEP) policy to OptOut..."
bcdedit /set `{current`} nx OptOut | Out-Null
}

# Set Data Execution Prevention (DEP) policy to OptIn (Turn on DEP for essential Windows programs and services only)
# Set Data Execution Prevention (DEP) policy to OptIn - Turn on DEP only for essential 32-bit Windows executables and manually included applications. 64-bit applications have DEP always on.
Function SetDEPOptIn {
Write-Output "Setting Data Execution Prevention (DEP) policy to OptIn..."
bcdedit /set `{current`} nx OptIn | Out-Null
Expand Down

0 comments on commit 68f94a9

Please sign in to comment.