Solved

Win2k3 TS logon script

Posted on 2004-08-04
2
680 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

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

by Batuhan Cetin In this article I will be guiding through the process of removing a failed DC metadata from Active Directory (hereafter, AD) using the ntdsutil tool in a Windows Server 2003 environment. These steps are not necessary in a Win…
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,…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

760 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now