![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | List everyone group members ? Hello, Possible to list everyone group members using vbscript ? I know that everyone contains authenticated users and guest but still possible to list ? Something like: dim o_adsi_group set o_adsi_group = getobject( "WinNT://comp_name/administrators" ) for each m in o_adsi_group msgbox( m.name ) next If I replace administrators with everyone this doesn't work. thanks Vilius |
My System Specs![]() |
| | #2 (permalink) |
| | Re: List everyone group members ? Vilius Mock{nas wrote: Quote: > Hello, > > Possible to list everyone group members using vbscript ? > I know that everyone contains authenticated users and guest but still > possible to list ? > > Something like: > dim o_adsi_group > set o_adsi_group = getobject( "WinNT://comp_name/administrators" ) > for each m in o_adsi_group > msgbox( m.name ) > next > > If I replace administrators with everyone this doesn't work. > > thanks > Vilius as far as I know, Everyone is not a real group, so I think there's no way to list its members (exactly as you can't add or remove users from it). Anyway, by design, Everyone should contain all the users, so listing all users does pretty much the same thing. Take a look at this: http://www.microsoft.com/technet/scr...nda/apr07/hey0 419.mspx just remove the If condition inside the For Each loop, and you get all local users. Massimo. -- |
My System Specs![]() |
| | #3 (permalink) |
| | Re: List everyone group members ? "MassimoP" <nospam@xxxxxx> wrote in message news:%23fqKQ6xJKHA.3708@xxxxxx Quote: > Vilius Mock{nas wrote: > Quote: >> Hello, >> >> Possible to list everyone group members using vbscript ? >> I know that everyone contains authenticated users and guest but still >> possible to list ? >> >> Something like: >> dim o_adsi_group >> set o_adsi_group = getobject( "WinNT://comp_name/administrators" ) >> for each m in o_adsi_group >> msgbox( m.name ) >> next >> >> If I replace administrators with everyone this doesn't work. >> >> thanks >> Vilius > Hi Vilius, > > as far as I know, Everyone is not a real group, so I think > there's no way to list its members (exactly as you can't > add or remove users from it). > Anyway, by design, Everyone should contain all the users, > so listing all users does pretty much the same thing. > Take a look at this: > http://www.microsoft.com/technet/scr...nda/apr07/hey0 > 419.mspx > just remove the If condition inside the For Each loop, and > you get all local users. > > Massimo. > > -- > can assign permissions to an implicit group, but that's about it. All interactive, network, dial-up, and authenticated users are members of the Everyone group. -- Richard Mueller MVP Directory Services Hilltop Lab - http://www.rlmueller.net -- |
My System Specs![]() |
| | #4 (permalink) |
| | Re: List everyone group members ? Grammar needs work "Richard Mueller [MVP]" <rlmueller-nospam@newsgroup> wrote in message news:u1aiGuyJKHA.1724@newsgroup Quote: > > "MassimoP" <nospam@newsgroup> wrote in message > news:%23fqKQ6xJKHA.3708@newsgroup Quote: >> Vilius Mock{nas wrote: >> Quote: >>> Hello, >>> >>> Possible to list everyone group members using vbscript ? >>> I know that everyone contains authenticated users and guest but still >>> possible to list ? >>> >>> Something like: >>> dim o_adsi_group >>> set o_adsi_group = getobject( "WinNT://comp_name/administrators" ) >>> for each m in o_adsi_group >>> msgbox( m.name ) >>> next >>> >>> If I replace administrators with everyone this doesn't work. >>> >>> thanks >>> Vilius >> Hi Vilius, >> >> as far as I know, Everyone is not a real group, so I think >> there's no way to list its members (exactly as you can't >> add or remove users from it). >> Anyway, by design, Everyone should contain all the users, >> so listing all users does pretty much the same thing. >> Take a look at this: >> http://www.microsoft.com/technet/scr...nda/apr07/hey0 >> 419.mspx >> just remove the If condition inside the For Each loop, and >> you get all local users. >> >> Massimo. >> >> -- >> > The Everyone group is a special identity, also called an implicit group. > You can assign permissions to an implicit group, but that's about it. All > interactive, network, dial-up, and authenticated users are members of the > Everyone group. > > -- > Richard Mueller > MVP Directory Services > Hilltop Lab - http://www.rlmueller.net > -- > > |
My System Specs![]() |
| | #5 (permalink) |
| | Re: List everyone group members ? "Charles McFarland" <icuenterprise5000@newsgroup> wrote in message news:ut9yckUNKHA.352@newsgroup Quote: > > Grammar needs work communicative, and perhaps the least grammatically sound. /Al Quote: > "Richard Mueller [MVP]" <rlmueller-nospam@newsgroup> wrote in > message news:u1aiGuyJKHA.1724@newsgroup Quote: >> >> "MassimoP" <nospam@newsgroup> wrote in message >> news:%23fqKQ6xJKHA.3708@newsgroup Quote: >>> Vilius Mock{nas wrote: >>> >>>> Hello, >>>> >>>> Possible to list everyone group members using vbscript ? >>>> I know that everyone contains authenticated users and guest but still >>>> possible to list ? >>>> >>>> Something like: >>>> dim o_adsi_group >>>> set o_adsi_group = getobject( "WinNT://comp_name/administrators" ) >>>> for each m in o_adsi_group >>>> msgbox( m.name ) >>>> next >>>> >>>> If I replace administrators with everyone this doesn't work. >>>> >>>> thanks >>>> Vilius >>> >>> Hi Vilius, >>> >>> as far as I know, Everyone is not a real group, so I think >>> there's no way to list its members (exactly as you can't >>> add or remove users from it). >>> Anyway, by design, Everyone should contain all the users, >>> so listing all users does pretty much the same thing. >>> Take a look at this: >>> http://www.microsoft.com/technet/scr...nda/apr07/hey0 >>> 419.mspx >>> just remove the If condition inside the For Each loop, and >>> you get all local users. >>> >>> Massimo. >>> >>> -- >>> >> The Everyone group is a special identity, also called an implicit group. >> You can assign permissions to an implicit group, but that's about it. All >> interactive, network, dial-up, and authenticated users are members of the >> Everyone group. >> >> -- >> Richard Mueller >> MVP Directory Services >> Hilltop Lab - http://www.rlmueller.net >> -- >> >> |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| list users, NOT members of a group | PowerShell | |||
| Remove members of the group. Members are from different domains | PowerShell | |||
| Why this script list a local administrator group members? | PowerShell | |||
| Exporting full list of members of a group (including groups andexternal accounts), but filtered and sorted | VB Script | |||
| Members of Group | PowerShell | |||