For a normal domain logon:
IF %COMPUTERNAME% == XXXXX logoff.exe
For logon to a Terminal Server:
IF %CLIENTNAME% == XXXXX logoff.exe
--
Vera Noest
MCSE,CCEA, Microsoft MVP - Terminal Server
http://hem.fyristorg.com/vera/IT
*----------- Please reply in newsgroup -------------*
max chen <(E-Mail Removed)> wrote in
news:(E-Mail Removed):
> Hello
>
> I want to deny some login of terminal users if the name of
> client PC is not in the list.
>
> How to write the logon script to do this?
>
> Plz help, i am an newbird.
>
> Thank u very much.
>
> max.
> email: (E-Mail Removed)
>