Solved

Win2k3 TS logon script

Posted on 2004-08-04
2
686 Views
Last Modified: 2010-05-18
Back in the day with an NT4 Terminal server I could create a logon script that would run for all users on the terminal server and only on the TS by putting it into the system32 directory and setting it in the registry. That capability appears to no longer exist. That registry key doesn't even exist. I could move the TS out of the computers folder in AD and put it in an OU, but if I had multiple TS's needing different scripts, I'd have an OU for each. Any alternatives?
Thanks
0
Comment
Question by:Derf238
2 Comments
 
LVL 83

Assisted Solution

by:oBdA
oBdA earned 125 total points
ID: 11719498
Why not check for the computer name in the script? In batch, it could look like that:

@echo off
if /i %ComputerName%==TerminalServer goto TerminalServer
:: *** Logon at a workstation
:: ...
goto leave

:TerminalServer
:: *** Logon at a Terminal Server
:: ...

:leave
0
 
LVL 9

Accepted Solution

by:
SamuraiCrow earned 125 total points
ID: 11739677
There is a batch file that runs called usrlogon.cmd when someone logs on to a terminal server.  It is located in the c:\windows\system32 directory (or c:\winnt\system32 on windows 2000).  I edit this command file in notepad with the batch/script information that I want to execute.  There is a lot of info already located in this file, you just need to add whatever you want at the beginning.  Let me know how it works.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Copy an entire Active Directory Domain to a dev environment 4 126
Best practice DHCP migration 7 67
Backup DHCP Server 8 105
Can’t delete a file 14 161
I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question