ok, any idea what those condition statements would be - I have very little experience with scripting, I'm very much point and click!!
Main Topics
Browse All TopicsOUr support and Infrastructure team have their own logon accounts which, when they log onto their laptops, run a log on script, which is fine. Howwever, when they logon on to servers, the logon scripts run as well.
The logon scripts are assigned in A.D. on their user account, not in a GPO
|The scripts are batch files, is there anyway to prevent them running if the user is logging onto on of our servers? Luckily the server names are all tog* or vm*
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi,
You have another solution to prevent Logon Script execution :
- Create a batch file on your server noscript.cmd :
@echo off
Set UserInitLogonScript=
Start %systemroot%\system32\user
exit
- Edit in your registry HKLM\SOFTWARE\Microsoft\Wi
Please find the answer at following KB :
http://support.microsoft.c
Business Accounts
Answer for Membership
by: mrmarkfuryPosted on 2009-10-19 at 08:36:07ID: 25606157
You could assign GPOs based on computers to run the scripts, but that would require going into each user's properties and changing them.
Probably the easiest, is to run some conditional statements, check if the computer currently running the script is tog* or bm* and if it is, exit.