
I am trying to take users from AD with some filter criteria but while executing Get-QADUser' command I am getting following error.
Get-QADUser : The term 'Get-QADUser' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + Get-QADUser + ~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Get-QADUser:String) [], CommandNotFoundExce ption + FullyQualifiedErrorId : CommandNotFoundException
Can Anybody tel me how to resolve this?
I using following reference link
http://wiki.powergui.org/index.php/Get-QADUser
11 Answer
To load QAD cmdlets for one particular script:
Add this line in the beginning of the script:
Add-PSSnapin Quest.ActiveRoles.ADManagement -ErrorAction Stop
To make QAD cmdlets available for all your scripts on a particular computer:
Open your PowerShell profile (for example, by starting PowerGUI Script Editor and selecting File / Open Current User Profile). Add this line to the profile code:
Add-PSSnapin Quest.ActiveRoles.ADManagement -ErrorAction Stop
PS. Original Quest article was recommending -ErrorAction SilentlyContinue
but I cannot agree with such.
ncG1vNJzZmirpJawrLvVnqmfpJ%2Bse6S7zGiorp2jqbawutJoaW1vZWaEdXyOoJytZaGWsba%2FxKtkoqtdo7y1edGemqifnp7HprCMmqpmrJiaeq%2BtzJ5kqJ5dlnqkucOlnK0%3D