?
Solved

Terminal Services 2000, prevent logon scripts from running

Posted on 2004-08-24
6
Medium Priority
?
735 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 2

Accepted Solution

by:
MarinusVD earned 500 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

Does Your Cloud Backup Use Blockchain Technology?

Blockchain technology has already revolutionized finance thanks to Bitcoin. Now it's disrupting other areas, including the realm of data protection. Learn how blockchain is now being used to authenticate backup files and keep them safe from hackers.

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…
In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
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.
Suggested Courses

762 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