suppress logon script

By blair.gardiner ·
How do I stop logon scripts from running on a particular server when users logon to using their domain credentials (which normally triggers logon script to run)

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -

Stop logon scripts from running. This might work for you...

Within the vbscript, put in something like this at the top.
Assuming that the terminal server isn't XP, the script will continue.
If it is XP, the script will quit.

strComputer = "."
Set objWMIService = GetObject("winmgmts:" &
Set colOperatingSystems = objWMIService.ExecQuery("SELECT * FROM
For Each objOperatingSystem in colOperatingSystems
strOSType = objOperatingSystem.Caption
If strOSType = "Microsoft Windows XP Professional" Then
End If

Please post back if you have any more problems or questions.

Related Discussions

Related Forums