Solved

Terminal Services 2000, prevent logon scripts from running

Posted on 2004-08-24
6
733 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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
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

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

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

Suggested Solutions

As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, (http://www.experts-exchange.com/articles/18084/Upgrading-to-Android-5-0-Lollipop.html) because one time I did this and I essentially had a bricked …
Know what services you can and cannot, should and should not combine on your server.
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.

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