File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -394,6 +394,8 @@ Write-Host "Enabling Local Accounts on OOBE:"
394
394
Copy-Item - Path " $PSScriptRoot \autounattend.xml" - Destination " $mainOSDrive \scratchdir\Windows\System32\Sysprep\autounattend.xml" - Force > null
395
395
Write-Host " Disabling Reserved Storage:"
396
396
& ' reg' ' add' ' HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\ReserveManager' ' /v' ' ShippedWithReserves' ' /t' ' REG_DWORD' ' /d' ' 0' ' /f' > null
397
+ Write-Host " Disabling BitLocker Device Encryption"
398
+ & ' reg' ' add' ' HKLM\zSYSTEM\ControlSet001\Control\BitLocker' ' /v' ' PreventDeviceEncryption' ' /t' ' REG_DWORD' ' /d' ' 1' ' /f' > null
397
399
Write-Host " Disabling Chat icon:"
398
400
& ' reg' ' add' ' HKLM\zSOFTWARE\Policies\Microsoft\Windows\Windows Chat' ' /v' ' ChatIcon' ' /t' ' REG_DWORD' ' /d' ' 3' ' /f'
399
401
& ' reg' ' add' ' HKLM\zNTUSER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced' ' /v' ' TaskbarMn' ' /t' ' REG_DWORD' ' /d' ' 0' ' /f'
Original file line number Diff line number Diff line change @@ -220,6 +220,8 @@ Write-Host "Enabling Local Accounts on OOBE:"
220
220
Copy-Item - Path " $PSScriptRoot \autounattend.xml" - Destination " $ScratchDisk \scratchdir\Windows\System32\Sysprep\autounattend.xml" - Force > null
221
221
Write-Host " Disabling Reserved Storage:"
222
222
& ' reg' ' add' ' HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\ReserveManager' ' /v' ' ShippedWithReserves' ' /t' ' REG_DWORD' ' /d' ' 0' ' /f' > null
223
+ Write-Host " Disabling BitLocker Device Encryption"
224
+ & ' reg' ' add' ' HKLM\zSYSTEM\ControlSet001\Control\BitLocker' ' /v' ' PreventDeviceEncryption' ' /t' ' REG_DWORD' ' /d' ' 1' ' /f' > null
223
225
Write-Host " Disabling Chat icon:"
224
226
& ' reg' ' add' ' HKLM\zSOFTWARE\Policies\Microsoft\Windows\Windows Chat' ' /v' ' ChatIcon' ' /t' ' REG_DWORD' ' /d' ' 3' ' /f' > null
225
227
& ' reg' ' add' ' HKLM\zNTUSER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced' ' /v' ' TaskbarMn' ' /t' ' REG_DWORD' ' /d' ' 0' ' /f' > null
You can’t perform that action at this time.
0 commit comments