Issue #16632: Enable DEP and ASLR on Windows.
diff --git a/Misc/NEWS b/Misc/NEWS
index d39e65c..146d46a 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -307,6 +307,8 @@
 Build
 -----
 
+- Issue #16632: Enable DEP and ASLR on Windows.
+
 - Issue #17791: Drop PREFIX and EXEC_PREFIX definitions from PC/pyconfig.h
 
 - Add workaround for VS 2010 nmake clean issue. VS 2010 doesn't set up PATH
diff --git a/PCbuild/pyproject.props b/PCbuild/pyproject.props
index 6be0ba2..7c8e053 100644
--- a/PCbuild/pyproject.props
+++ b/PCbuild/pyproject.props
@@ -49,9 +49,8 @@
       <GenerateDebugInformation>true</GenerateDebugInformation>
       <ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile>
       <SubSystem>Windows</SubSystem>
-      <RandomizedBaseAddress>false</RandomizedBaseAddress>
-      <DataExecutionPrevention>
-      </DataExecutionPrevention>
+      <RandomizedBaseAddress>true</RandomizedBaseAddress>
+      <DataExecutionPrevention>true</DataExecutionPrevention>
       <TargetMachine>MachineX86</TargetMachine>
     </Link>
     <ResourceCompile>