#http://www.chdb.eu/?n=1288 function CheckQuestActiveRolesADM() { #Test la présence des outils Quest $Error.Clear() Get-PSSnapin Quest.ActiveRoles.ADManagement if($Error.Count -ne 0) { Clear-Host Write-Host "`n`n`t`t ERROR - To run this script, the Quest.ActiveRoles.ADManagement must be installed and registered with Powershell." -foregroundcolor red -backgroundColor yellow Write-Host "`t`t go to the Settings menu in Powershell Plus and click on Manage Snapins." -foregroundcolor red -backgroundColor yellow break } } #Test de la présence des outils Quest CheckQuestActiveRolesADM