• Creator
  • #2150331

    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)

All Answers

  • Author
    • #2922621


      by blair.gardiner ·

      In reply to suppress logon script


    • #2922309

      Talk to the domain administrator……

      by thumbsup2 ·

      In reply to suppress logon script


    • #2908035

      I can think of 2 ways

      by churdoo ·

      In reply to suppress logon script

      I can think of 2 ways. And I’m assuming your logon script is a .bat or .cmd file.

      1) Apply a Group Policy to that server which will override the typical logon script setting so the server will not process the typical script.

      2) The second and easiest, is in your logon script, test for the COMPUTERNAME environment variable and skip the working part of the script if COMPUTERNAME equals the particular server name, something like this

      if “%COMPUTERNAME%”==”THISSERVER” goto end
      (normal script statements here)

      This of course will not stop the script from processing, but will skip all of the statements within the script that do anything.

Viewing 2 reply threads