I'm trying get a script I found that pulls AD info into SqlServer table. A few of the problems are this:
import-module activedirectory -- Not loaded.
Then I tried:
Any advice how I get the modules loaded, or a script you have that works?