Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Win2k3 TS logon script

Posted on 2004-08-04
2
Medium Priority
?
691 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

So you have two Windows Servers and you have a directory/folder/files on one that you'd like to mirror to the other?  You don't really want to deal with DFS or a 3rd party solution like Doubletake. You can use Robocopy from the Windows Server 200…
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

636 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