?
Solved

Win2k3 TS logon script

Posted on 2004-08-04
2
Medium Priority
?
690 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 85

Assisted Solution

by:oBdA
oBdA earned 500 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 500 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

The HP utility "HP Lights-Out Online Configuration Utility for Windows Server 2003/2008" could be of great use when it comes to remotely configure a HP servers ILO WITHOUT rebooting the server. We would only need to create and run scripts using thi…
Many of us need to configure DHCP server(s) in their environment. We can do that simply via DHCP console on server or using MMC snap-in on each computer with Administrative Tools installed in a network. But what if we have to configure many DHCP ser…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

743 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