kuzum
asked on
home folder path for users
dear experts
I'm working on this script and partly working but it pulls AD accounts that is not in csv file
What I would like to have is the home drive path for given users in csv file. Could you help me with this please?
csv file has colun header "SamAccountNAme" and users are listed as Mike.Beach (firstname.Surname)
import-module activedirectory
$list =import-csv "H:\temp\userlist.csv"
ForEach ($User in $UserList)
{Get-Aduser -Filter * -properties Name,homedirectory,homedri ve |export-csv -path H:\temp\export\result.csv}
I'm working on this script and partly working but it pulls AD accounts that is not in csv file
What I would like to have is the home drive path for given users in csv file. Could you help me with this please?
csv file has colun header "SamAccountNAme" and users are listed as Mike.Beach (firstname.Surname)
import-module activedirectory
$list =import-csv "H:\temp\userlist.csv"
ForEach ($User in $UserList)
{Get-Aduser -Filter * -properties Name,homedirectory,homedri
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Sure.. post the link to question.. and don't forget to close this question.. :-)
ASKER
excellent result!
ASKER