Solved

Win2k3 TS logon script

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

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

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…
I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

726 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