csv - powershell - empty list of group's members -
i'm trying export csv file list (or table doesn't matter) members of group . after many searches , tried :
get-adgroupmember -identity **genericgroupname** -recursive | select name | export-csv output.csv -notypeinformation
i tried change things in command- remove -recursive
.
i tried find problem in command , remove -export-csv output.csv -notypeinformation
but showed nothing (in nothing mean - show command , nothing)
my problem got output.csv , empty.
if matters : genericgroupname :
$group = (get-aduser -identity username -properties memberof | select memberof).memberof
and
genericgroupname --> $group[0]
this command works well.
i fixed problem (accidentally) closing powershell ise , open it. still don't know problem somehow fixed closing powershell
Comments
Post a Comment