Long story short, we have going to deploy BitLocker to our environment and below are the prerequisites that needs to be pulled before we can start testing.<\/p>\n
\n
\n
Advertisement
TMP Version<\/p>\n<\/li>\n
\n
BIOS / EFI Mode<\/p>\n<\/li>\n
\n
Secure Boot<\/p>\n<\/li>\n<\/ol>\n
I am able to pull TMP using a one liner:<\/p>\n
wmic /namespace:\\root\\CIMV2\\Security\\MicrosoftTpm path Win32_Tpm get /value<\/p>\n
and for Bios, bcdedit<\/p>\n
Can you please help me with a script so i can run it for multiple machines.<\/p>\n
Thank you very much!<\/p>","upvoteCount":5,"answerCount":11,"datePublished":"2021-01-25T07:04:20.000Z","author":{"@type":"Person","name":"brainspark","url":"https://community.spiceworks.com/u/brainspark"},"suggestedAnswer":[{"@type":"Answer","text":"
Hello Guys,<\/p>\n
Long story short, we have going to deploy BitLocker to our environment and below are the prerequisites that needs to be pulled before we can start testing.<\/p>\n
\n
\n
TMP Version<\/p>\n<\/li>\n
\n
BIOS / EFI Mode<\/p>\n<\/li>\n
\n
Secure Boot<\/p>\n<\/li>\n<\/ol>\n
I am able to pull TMP using a one liner:<\/p>\n
wmic /namespace:\\root\\CIMV2\\Security\\MicrosoftTpm path Win32_Tpm get /value<\/p>\n
and for Bios, bcdedit<\/p>\n
Can you please help me with a script so i can run it for multiple machines.<\/p>\n
Thank you very much!<\/p>","upvoteCount":5,"datePublished":"2021-01-25T07:04:20.000Z","url":"https://community.spiceworks.com/t/powershell-to-check-tmp-bios-and-secure-boot/788457/1","author":{"@type":"Person","name":"brainspark","url":"https://community.spiceworks.com/u/brainspark"}},{"@type":"Answer","text":"
What have you tried? Where are you stuck?<\/p>\n
You can use e.g. ‘invoke-command’ if winrm is setup right to get all that info.<\/p>","upvoteCount":0,"datePublished":"2021-01-25T07:12:26.000Z","url":"https://community.spiceworks.com/t/powershell-to-check-tmp-bios-and-secure-boot/788457/2","author":{"@type":"Person","name":"Neally","url":"https://community.spiceworks.com/u/Neally"}},{"@type":"Answer","text":"
if (!$reg) \n{ \nWrite-Host “Secure Boot not enabled on $Computer” \n}<\/p>\n
else \n{ \nWrite-Host “Secure Boot is enabled on $Computer” -f green \n}<\/p>\n
} \n}<\/p>\n
I have tried this, it will let us know if Secure boot is enabled or not. But i need TMP, BIOS / EFI and secureboot in one script<\/p>","upvoteCount":0,"datePublished":"2021-01-25T07:41:48.000Z","url":"https://community.spiceworks.com/t/powershell-to-check-tmp-bios-and-secure-boot/788457/3","author":{"@type":"Person","name":"brainspark","url":"https://community.spiceworks.com/u/brainspark"}},{"@type":"Answer","text":"
Yes, you can add all those into one script e.g. with invoke-command \nbasically you need the code how to get the info you need locally , then you just invoke it on the remote machines<\/p>