This is an old revision of the document!
Скрипты AD
Найти все машины с Windows в домене AD, которые включены, и у которых не задан пароль восстановления Bitlocker
Import-Module ActiveDirectory
$pcs = Get-ADComputer -Filter 'Enabled -eq $true -and OperatingSystem -like "*Windows*"'
foreach ($pc in $pcs) {
$dn = $pc.DistinguishedName
$ldPath = "AD:\",$dn -join ""
if ((Get-ChildItem $ldPath | where {$_.objectClass -eq "msFVE-RecoveryInformation"}) -eq $null) {echo $pc.name}}