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:"
394394Copy-Item - Path " $PSScriptRoot \autounattend.xml" - Destination " $mainOSDrive \scratchdir\Windows\System32\Sysprep\autounattend.xml" - Force > null
395395Write-Host " Disabling Reserved Storage:"
396396& ' 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
397399Write-Host " Disabling Chat icon:"
398400& ' reg' ' add' ' HKLM\zSOFTWARE\Policies\Microsoft\Windows\Windows Chat' ' /v' ' ChatIcon' ' /t' ' REG_DWORD' ' /d' ' 3' ' /f'
399401& ' 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:"
220220Copy-Item - Path " $PSScriptRoot \autounattend.xml" - Destination " $ScratchDisk \scratchdir\Windows\System32\Sysprep\autounattend.xml" - Force > null
221221Write-Host " Disabling Reserved Storage:"
222222& ' 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
223225Write-Host " Disabling Chat icon:"
224226& ' reg' ' add' ' HKLM\zSOFTWARE\Policies\Microsoft\Windows\Windows Chat' ' /v' ' ChatIcon' ' /t' ' REG_DWORD' ' /d' ' 3' ' /f' > null
225227& ' 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