Logon script runs at startup and not at user logon


  1. Posts : 4
    Windows 10
       #1

    Logon script runs at startup and not at user logon


    I have 3 PCs, and my logon script in my Group Policy (C:\WINDOWS\System32\GroupPolicy\User\Scripts\Logon) runs as expected at user logon in all 3 PCs. However, in my fourth PC, the logon script runs at startup prior to a user logging onto this PC. I cannot seem to figure out the reason; can anyone please help me?
      My Computer


  2. Posts : 456
    Windows 10
       #2

    Maybe the PC where the script runs right away has only 1 user.
      My Computer


  3. Posts : 4
    Windows 10
    Thread Starter
       #3

    It has 3 users
      My Computer


  4. Posts : 3,274
    Win10
       #4

    Presumably, in the GPO GUI, you have made sure that the script is under User Configuration > Windows Settings > Scripts and NOT under Computer Configuration > Windows Settings > Scripts by mistake ?
      My Computers


  5. Posts : 4
    Windows 10
    Thread Starter
       #5

    I checked that multiple times, and it is correct; I have nothing under the Computer Configuration > Windows Settings > because I don’t want any scripts to run at startup.
      My Computer


  6. Posts : 668
    Win 10 pro
       #6

    sbello said:
    I checked that multiple times, and it is correct; I have nothing under the Computer Configuration > Windows Settings > because I don’t want any scripts to run at startup.
    Try to disable the setting below (if active)

    Logon script runs at startup and not at user logon-accesso.png
      My Computer


  7. Posts : 4
    Windows 10
    Thread Starter
       #7

    Problem solved! Even though there are 3 users, the other 2 users never logged in, so their accounts weren't fully created and the OS only s ees it as a 1 user PC. Therefore, as "ricardobonner" suggested the script runs right away because it sees only 1 user.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 23:14.
Find Us




Windows 10 Forums