Question

  • Creator
    Topic
  • #2150330

    suppress logon script

    Locked

    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)

All Answers

  • Author
    Replies
    • #2922620

      Clarifications

      by blair.gardiner ·

      In reply to suppress logon script

      Clarifications

    • #2922594

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

      by Anonymous ·

      In reply to suppress logon script

      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
      Win32_OperatingSystem”)
      For Each objOperatingSystem in colOperatingSystems
      strOSType = objOperatingSystem.Caption
      Next
      If strOSType = “Microsoft Windows XP Professional” Then
      Wscript.quit
      End If

      http://www.eggheadcafe.com/software/aspnet/29696265/how-to-stop-the-logon-scr.aspx

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

Viewing 1 reply thread