Tuesday, 24 November 2015

Useful AD commands in View

Command 101 :

We have option to Add AD group in view pool entitlement. we can't export user details in group as we do in view manager. if required any details like user count or user name details, need to open AD user and computer and search manually whenever required.

As a best practice always keep this details handy. i have tried out one simple command to import all  user in group to csv file.


Get-ADGroupMember -identity “<AD-group>” | select name | Export-csv -path e:\Myfile\<filename>.csv

Note : Make sure you don't keep any space in destination path folder


import-module activedirectory

Get-ADGroupMember -identity “VDI-DD-STD1” | select name | Export-csv -path e:\Myfile\groupcount.csv