get_hardening() reads Secure Boot, the TPM, BitLocker per volume, Defender, the firewall profiles' state and virtualization-based security in one script, each part caught on its own and each cmdlet probed with Get-Command first. BitLocker through Win32_EncryptableVolume, never Get-BitLockerVolume: no recovery password or key protector is read.
2 lines
492 B
JSON
2 lines
492 B
JSON
{"system_drive":"C:","secure_boot":"unsupported","tpm":{"present":false},"bitlocker":{"installed":false,"volumes":[]},"defender":{"am_service":true,"antivirus":true,"real_time":false,"running_mode":"Passive Mode","signature_updated":1763942400,"signature_age":7,"signature_version":"1.443.300.0","tamper_protected":false},"firewall":[{"name":"Domain","enabled":"True"},{"name":"Private","enabled":"False"},{"name":"Public","enabled":"True"}],"vbs":{"status":"0","running":["0"]},"errors":{}}
|