Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - List everyone group members ?

Reply
 
Old 08-26-2009   #1 (permalink)
Vilius Mockûnas


 
 

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 SpecsSystem Spec
Old 08-27-2009   #2 (permalink)
MassimoP


 
 

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
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.

--

My System SpecsSystem Spec
Old 08-27-2009   #3 (permalink)
Richard Mueller [MVP]


 
 

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.
>
> --
>
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 SpecsSystem Spec
Old 09-14-2009   #4 (permalink)
Charles McFarland


 
 

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 SpecsSystem Spec
Old 09-14-2009   #5 (permalink)
Al Dunbar


 
 

Re: List everyone group members ?


"Charles McFarland" <icuenterprise5000@newsgroup> wrote in message
news:ut9yckUNKHA.352@newsgroup
Quote:

>
> Grammar needs work
Whose grammar needs work? Of the posts in this thread, yours seem the least
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 SpecsSystem Spec
Reply

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


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46