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:
Import-Module ServerManager
Add-WindowsFeature RSAT-AD-PowerShell
Any advice how I get the modules loaded, or a script you have that works?
Thanks.