jskfan
asked on
Retrieve Enable AD user Accounts
Retrieve Enable AD user Accounts
I need a script that retrieves all AD user Accounts that are enabled.
I need to display First name , Last name, login account name
Any help will be very much appreciated
Thank you
I need a script that retrieves all AD user Accounts that are enabled.
I need to display First name , Last name, login account name
Any help will be very much appreciated
Thank you
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I got the error above
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Active Directory Module for Windows PowerShell, is already showing as checked in program features
I am not sure where I can get KB958830 to install
I am not sure where I can get KB958830 to install
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
run this command before executing the above mentioned command
Import-Module ActiveDirectory
Import-Module ActiveDirectory
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
it works thank you Guys...
ASKER
Thank you
ASKER
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:11
+ get-aduser <<<< -filter 'enabled -eq $true' | format-table givenanme, surname, samaccountname -autosize
+ CategoryInfo : ObjectNotFound: (get-aduser:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException