Author Posts

May 11, 2016 at 12:47 pm

I have a script that is trying to get-aduser but I keep getting the term is not recognized as a cmdlet. I understand why but how can I get around this. Can I import it from a server? Can I do Implicit Remoting to run the GPO? Can I use adsisearcher instead?

May 11, 2016 at 12:58 pm

You can implicitly remoting it IF the user running the script has authority to remote into the server containing the module. You could also just do an Invoke-Command under the same conditions. Or, install the RSAT, which contains the module.