If you are running logon scripts you may want to bail, or do something special if the server the user is logging onto is a terminal server. isTermServer.vbs will allow you to test/determine whether a local or remote server is a terminal server, and returns an errorlevel for batch handling. Run without arguments for syntax.