Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Terminal Services 2000, prevent logon scripts from running

Posted on 2004-08-24
6
Medium Priority
?
736 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
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.

609 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