Solved

Terminal Services 2000, prevent logon scripts from running

Posted on 2004-08-24
6
728 Views
Last Modified: 2013-11-21
I have a windows 2000 terminal server, when my users connect they run their default login script which in some cases maps drives across the WAN.  The users do not need any information from the logon script when connected to the terminal server so I would like to prevent the logon script from running when connect to the terminal server. Any suggestions?
0
Comment
Question by:gbrown1006
  • 4
  • 2
6 Comments
 
LVL 2

Expert Comment

by:MarinusVD
ID: 11882343
What do you use as a logon script? Batch, Kix etc.
0
 
LVL 2

Expert Comment

by:MarinusVD
ID: 11882645
If you run a batch file you can add this line at the top
IF %computername% == YOURTERMINALSERVERNAME Exit

What this will do is check the local machine name where the user logon and if it's the same as the server name it will exit the script therefore not running anymore commands.

Let me know if you use something other than Batch and I will see if I can help.
0
 

Author Comment

by:gbrown1006
ID: 11885285
We use both Batch and VBS.  I have added this to the batch file and it seems to work.  I would like something for the VBS or a way to stop login script from processing at all, maybe group policy setting or such.

gbrown1006
0
Are your corporate email signatures appalling?

Is it scary how unprofessional your email signatures look? Do users create their own terrible designs and give themselves stupid job titles? You can make this a lot easier for yourself by choosing an email signature management solution from Exclaimer today.

 
LVL 2

Accepted Solution

by:
MarinusVD earned 125 total points
ID: 11885668
Hi,
Here is how to stop VBS login script.

Set WshNetwork = WScript.CreateObject("WScript.Network")
IF WshNetwork.ComputerName = "YOURTERMINALSERVERNAME" Then
WScript.Quit
Else
The Rest of your login script Here.
End If

Remember to test it before you make the change on the live network.

Marinus
0
 

Author Comment

by:gbrown1006
ID: 11902890
Marinus,

Thanks Answer Accepted 125pts rewarded.
0
 
LVL 2

Expert Comment

by:MarinusVD
ID: 11902930
Thank you
0

Featured Post

Are end users causing IT problems again?

You’ve taken the time to design and update all your end user’s email signatures, only to find out they’re messing up the HTML, changing the font and ruining the imagery. What can you do to prevent this? Find out how you can save your signatures from end users today.

Join & Write a Comment

Welcome to my series of short tips on migrations. Whilst based on Microsoft migrations the same principles can be applied to any type of migration. My first tip is around source server preparation. No migration is an easy migration, there is a…
Remote Apps is a feature in server 2008 which allows users to run applications off Remote Desktop Servers without having to log into them to run the applications.  The user can either have a desktop shortcut installed or go through the web portal to…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

744 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

15 Experts available now in Live!

Get 1:1 Help Now