Microsoft Virtualization Discussions

Re: Powershell script for listing domain users in vfiler local groups

Is what I wrote, what you typed?  NO

 

You need to hit enter after each line, exactly what you see above

Re: Powershell script for listing domain users in vfiler local groups

and this is basic powershell at this point.. 

 

Sorry I can't assist anymore from here

Re: Powershell script for listing domain users in vfiler local groups

 

 

 

I know it's very basic powershell and that somone from forum might know how to do it.

Yes, i wrote line by line, but  doesn't work anyway

 

It doesn't matter now because using function from

 

http://www.rlmueller.net/PowerShell/PSEnumLocalGro​up.txt

 

works exactly as i needed 

 

Get-NAGroup | %{ $Group = [ADSI]"WinNT://<MY_VFILER_NAME>/$_,group"; EnumLocalGroup $Group

Re: Powershell script for listing domain users in vfiler local groups

 

 

thank you for your help

 

Cheers

Explorer

Re: Powershell script for listing domain users in vfiler local groups

Hi,

 

Have you tried this?

 

Connect-NaController -Name <controller name> -Vfiler <vfiler name>

Get-NaGroup|ForEach-Object{
    "Group: $($_.Name)" 
    (Get-NaDomainUser -Group $_.Name).Name
}

I hope it helps you.

Forums