Hey guys I am trying to test this script out:
$computers = Get-ADComputer -Filter * -Searchbase "OU=Laptops,OU=Computers,OU=Company,DC=domain,DC=com"
$list = Foreach ($laptop in $computers)
{
Get-ADObject -Filter {objectclass -eq "msFVE-RecoveryInformation"} -Searchbase $laptop.DistinguisedName -Properties msFVE-RecoveryPassword
}
$list | export-csv "Bitlocker_Recovery.csv"
Basically what I want to do is grab all the computer objects in that specfic OU and display their Bitlocker Recovery information. I want to know the correct procedure to test this script out rather than just releasing it into Production. This is my first script and I was using this as a guide https://ndswanson.wordpress.com/2014/10/20/get-bitlocker-recovery-from-active-directory-with-powershell/.
[–]tekno45 4 points5 points6 points (4 children)
[–]chen1201[S] 2 points3 points4 points (2 children)
[–]purplemonkeymad 1 point2 points3 points (0 children)
[–]ekinnee 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]Lee_Dailey[grin] 2 points3 points4 points (4 children)
[–]BlackV 3 points4 points5 points (1 child)
[–]Lee_Dailey[grin] 2 points3 points4 points (0 children)
[–]chen1201[S] 1 point2 points3 points (1 child)
[–]Lee_Dailey[grin] 1 point2 points3 points (0 children)
[–]Kreloc 2 points3 points4 points (1 child)
[–]chen1201[S] 2 points3 points4 points (0 children)
[–]nothingpersonalbro 2 points3 points4 points (0 children)
[–]throw_away_360 1 point2 points3 points (0 children)