cschneegans/unattend-generator

Script disable-defender-pe.cmd should also check drive letters other than C:

cschneegans opened this issue · 0 comments

disable-defender-pe.cmd currently uses the hard-coded C:\$Windows.~BT\NewOS\Windows\System32\config\SYSTEM path.

This works in most cases, as Windows Setup will typically assign the C: letter to the target drive it installs Windows to. However, there are hardware configurations where the target drive is assigned another drive letter. In particular, this seems to happen with eMMC drives.

Therefore, the script must check those drive letters as well.