Where is the location for the windows logon script?

Page 1 of 2 12 LastLast

  1. Posts : 6
    Windows 7 Enterprise 64bit
       #1

    Where is the location for the windows logon script?


    I am looking for the location for the windows logon script file. I need to compare two script files
    The issue that I am having is that one laptop is not automatically mapping network drives even though the user is in the correct active directory group.
    Another user is in the same group and has the network drive mapped, so I need to compare both logon scripts from both laptops.
    Maybe these scripts can be read or edited in notepad but I need the location if anybody can help?
      My Computer


  2. Posts : 721
    Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
       #2

    Hello Tomcolgan,

    To find the location of a user's logon script, while logged in as the user, run the command:
    net user "%USERNAME%" | find "Logon script"
    or for a domain user,
    net user "%USERNAME%" /domain | find "Logon script"
      My Computer


  3. Posts : 6
    Windows 7 Enterprise 64bit
    Thread Starter
       #3

    Thanks for your reply but can you check my screenshot it doesn't seem to work

    in the username part am I to use only LDAP or full email address for domain user

    also in the domain part do I put in my domain or leave it as domain
    Attached Thumbnails Attached Thumbnails Where is the location for the windows logon script?-capture.png  
      My Computer


  4. Posts : 1,049
    Windows 7 Pro 32
       #4

    You should use the exact command as Pyprohly suggested in bold. Copy and paste it :)
      My Computer


  5. Posts : 6
    Windows 7 Enterprise 64bit
    Thread Starter
       #5

    Okay thanks I'll give this a try in work tomorrow! And I will revert back :)
      My Computer


  6. Posts : 6
    Windows 7 Enterprise 64bit
    Thread Starter
       #6

    Okay so I copied and pasted it in and nothing came back only the words Logon Script
    Attached Thumbnails Attached Thumbnails Where is the location for the windows logon script?-capture7.png  
      My Computer


  7. Posts : 1,514
    Win 7 Home Premium SP1 32 bit
       #7

    Hello.. have you looked at this to make sure all is good ? : Internet Troubleshooting Guide
      My Computer


  8. Posts : 721
    Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
       #8

    tomcolgan said:
    Okay so I copied and pasted it in and nothing came back only the words Logon Script
    Then there is no logon script assigned to the user. However, this logon script feature isn't the only method one can go about for executing a script during logon.

    Every user has a Startup folder. Each item in this Startup folder is invoked during a user's logon phase. It's rather informal for a domain administrator to setup user accounts this way, but it does get the job done.

    The location of a user's Startup folder is
    C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
    or the Startup folder for all users on the machine,
    C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup

    Try checking those locations for the logon script.
      My Computer


  9. Posts : 6
    Windows 7 Enterprise 64bit
    Thread Starter
       #9

    Pyprohly said:
    tomcolgan said:
    Okay so I copied and pasted it in and nothing came back only the words Logon Script
    Then there is no logon script assigned to the user. However, this logon script feature isn't the only method one can go about for executing a script during logon.

    Every user has a Startup folder. Each item in this Startup folder is invoked during a user's logon phase. It's rather informal for a domain administrator to setup user accounts this way, but it does get the job done.

    The location of a user's Startup folder is
    C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
    or the Startup folder for all users on the machine,
    C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup

    Try checking those locations for the logon script.

    Found nothing, would you know what the script file is? e.g .bat .exe .ini
      My Computer


  10. Posts : 6,330
    Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
       #10

    Can you run the commands Pyprohly gave you for the PC/user that does work correctly ?
    If you find the working script, can you copy it to the PC/user (same location) that doesn't work?
    Maybe that will help ???
      My Computer


 
Page 1 of 2 12 LastLast

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

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