Active Directory – Creating Install From Media dump

function Backup-ActiveDirectoryIFM { param ( [string]$IFMPath, [switch]$NoDefrag ) $errorAction = ‘stop’ $minimumFreeSpace = 0.5TB $Mode = ‘Full’ if (!$IFMPath) { $driveObject = Get-PSDrive | ? { $_.Free } | Sort-Object -Descending Free | Select-Object -First 1 if ($driveObject.Free -lt $minimumFreeSpace) { Write-Error “Drive with largest free space $($driveObject.Name): has only $([int]($driveObject.Free/1GB))GB free, which is less…

1