I want to extract the ID from this command:
manage-bde -protectors c: -get
The result of this command is:
Volume C: [Windows]
Tous les protecteurs de clés
Mot de passe numérique :
ID : {XXXXXXX-A315-42C6-9754-XXXXXXXXXX}
Mot de passe :
XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX
TPM :
ID : {XXXXXX-99B3-481B-B3FA-XXXXXXXXXXX}
Profil de validation PCR :
7, 11
(Utilise le démarrage sécurisé pour la validation d’intégrité.)
I want only the ID from the "Mot de passe numérique" (first one, but on some PC, it's the second one) and not the "TPM"
I tried to do that with select-string, but it return both :/
Is there a way to "tell" to select-string to print only the ID after the "mot de passe numérique" expression ?
Thx :)