Re: Script needed: Users with Remote Access permissions on a server




"eaguilar" <eaguilar@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:62352391-0004-4706-A6B3-4400EADDCD4E@xxxxxxxxxxxxxxxx
Does anybody have an idea how to write a vbs script to list all users with
Remote Access permissions on a server?

Microsoft's "Scripting guy" archive has a script that lists all users with
such permission, but it queries the domain controller for the full list:

<code>
objCommand.CommandText = _
"SELECT Name FROM 'LDAP://dc=fabrikam,dc=com' WHERE
objectCategory='user' " & "AND msNPAllowDialin = TRUE"
</code>

I need to query a particular server or list of servers.

Permissions for "Remote Desktop" and Terminal Services are for the domain,
not specific computers or servers. I believe a user must have
msNPAllowDialin set equal to TRUE and they must be members of the builtin
group "Remote Desktop Users". The later is a domain local group.

To access any machine remotely with WMI you must be a member of the local
Administrators group on the computer. By default when the computer is joined
to the domain the group "Domain Admins" is added to the local Administrators
group. If you need to enumerate all members of the local Administrators
group, you can use the script linked here:

http://www.rlmueller.net/Enumerate%20Local%20Group.htm

--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--


.



Relevant Pages

  • RE: Remote Web Workplace
    ... lists that are displayed for remote control access. ... > the RWW and the list of server name. ...
    (microsoft.public.windows.server.sbs)
  • Re: Script needed: Users with Remote Access permissions on a server
    ... Remote Access permissions on a server? ... I need to query a particular server or list of servers. ... Microsoft MVP Scripting and ADSI ...
    (microsoft.public.scripting.vbscript)
  • Re: remotely manage clients in domain
    ... that Remote Desktop is in the exception lists of the XP SP2 Firewall. ... Where is the Server managment consol? ... >> If you are setting at the server can you connect to the clients via ...
    (microsoft.public.windows.server.sbs)
  • Re: Best way to execute a shell command remotely
    ... > I need to execute a program that can be ran from the command prompt normally ... > on the server but from a remote machine. ... Administration scripting examples and a ONLINE version of the 1328 page ...
    (microsoft.public.windowsxp.security_admin)
  • SecurityFocus Microsoft Newsletter #152
    ... MICROSOFT VULNERABILITY SUMMARY ... Real Networks Helix Universal Server Remote Buffer Overflow ... ... NEW PRODUCTS FOR MICROSOFT PLATFORMS ...
    (Focus-Microsoft)