Re: how to find users with the checkmark on allow to logon to terminal servers

Tech-Archive recommends: Speed Up your PC by fixing your registry




Spundae wrote:

Hello,

I am looking for a way to find all my users in active directory that
have a checkmark set at the terminal server tab where you can specify
that the user is allowed to logon to terminal server.
I tried to do this with adfind or a script with ldap but failed.

Is there a way because I also read that this information is in
binairy.

Thanks in advance

H.S.

If you take a look using ADSIEdit you will find that the terminal
services properties are nto actually part of the AD attributes of the
user. ADUC merely has some hooks in it to make that configuration
easier.

There is a Microsoft DLL you can hunt for called wtsadmin.dll that when
registered will let you query these properties.

I wasn't able to find a copy of that DLL with a quick search so you may
need to do some digging. I did find a third party freeware version
called wts_admin.dll but looks like that hasn't been updated to newer
versions and the DLL would not register on my Windows 7 x64 machine.
May work fine for you on a 32 bit machine though.
http://cwashington.netreach.net/main/tools/default.asp?topic=n-z

Hope that helps,

Mark D. MacLachlan

--

.



Relevant Pages

  • Re: Winlogon notification dll doesnt work on 2003 server
    ... spelling of the entry functions is correct in the notification package reg ... The code I use for testing the dll is ... but I cannot get it to work on Windows 2003 Terminal Server. ... log in from a remote XP machine using the Remote Desktop Connection ...
    (microsoft.public.platformsdk.security)
  • Winlogon notification dll doesnt work on 2003 server
    ... I am implementing a Winlogon notification dll. ... but I cannot get it to work on Windows 2003 Terminal Server. ... log in from a remote XP machine using the Remote Desktop Connection as ...
    (microsoft.public.platformsdk.security)
  • Re: Total Terminal Server connections
    ... DLL it imports WinStationGetTermSrvCountersValue which is probably the ... MCSE, CCEA, Microsoft MVP - Terminal Server ... I can get this information via the "qwinsta /counter" command, ...
    (microsoft.public.windows.terminal_services)
  • RE: dllimport got error 126 on Win2K terminal server
    ... worked well both on my XP machine and my W2K Terminal Server. ... lpszDomain, String lpszPassword, int dwLogonType, int dwLogonProvider, out ... works for Win2K Terminal Server but not on my XP Pro, ... find the dll without explicit path. ...
    (microsoft.public.dotnet.security)
  • RE: 800a01ad error while debugging VB6 DLL under IIS6.0 on Win2003SP1
    ... I am looking for possible solutions to debug it using terminal server. ... A VB6.0 DLL works fine when called from ASP page without debug mode. ...
    (microsoft.public.win32.programmer.ole)