Solved

Terminal Services 2000, prevent logon scripts from running

Posted on 2004-08-24
6
734 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
[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
  • 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
Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

 
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

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

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

Some time ago I faced the need to use a uniform folder structure that spanned across numerous sites of an enterprise to be used as a common repository for the Software packages of the Configuration Manager 2007 infrastructure. Because the procedu…
Have you considered what group policies are backwards and forwards compatible? Windows Active Directory servers and clients use group policy templates to deploy sets of policies within your domain. But, there is a catch to deploying policies. The…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

691 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