Simple script to find Term Server users?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a simple way to find and output all of my users that currently have
the "allow terminal server access" check box checked?

Thanks
 
here is an example that I've created now:

Set objOU = GetObject("LDAP://OU=andrei, DC=test, DC=local")
objOU.Filter = Array("user")

For each objuser in objou

WScript.Echo objuser.Name & " Allow Logon: " & objUser.AllowLogon

Next

This will enumerate all the user in the Andrei OU and if that checkbox is
checked the returned value will be 1 ... if not .. 0
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top