Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

Accessing the user names of the group from shared folder

$
0
0

Hi,

The input for the powershell script is the shared folder path C:\Temp\Payroll and I could able to populate the groups of the directory as below with access rights.
EE\Domain Admins(Full Control),EE\AKOZLOWS(RW) ,EE\CFO_FinSy_GrpPayRoll_RW(RW)

 

But I am struggling to get list the usernames mapped under those groups.

My Expected output:      

EE\Domain Admins                      Full Control             
EE\AKOZLOWS                            RW        
                                                            Kozlowski, Anna    RW               
EE\CFO_FinSy_GrpPayRoll_RW   RW    
                                                           Celecia, Julie    RW    
       CFO_FinSy_GrpPayRoll_A    RW    
                                                           langelo, Jessica    RW
                                                           Ngen, Thpos    RW
        riker, Gardy    RW
        eewitt, Noedl    RW
        eeuyen, Hannfah    RW
        Kozlowski, Ang    RW

I have only used Get-Acl cmdlet in my script for getting the above mentioned group names.

Can anyone can help on populating usernames like my expected output.

Thanks in Advance



Viewing all articles
Browse latest Browse all 2562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>