Find Windows workstation logon script

If you’re looking for the location of the active logon script in a Windows domain network on a workstation, or just to figure out which logon script is being used for a workstation

TLDR; ‘Get to the point, where is the bleeding thing?!’:

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”

Standard location

The logon scripts themselves can be found on the network in the standard domain network share location:

\\%USERDOMAIN%\netlogon

Additionally, the commands:

net user “%USERNAME%” /domain

and

gpresult /r

Give interesting results for the current user and what Group policy rules are active for the currently logged in user/(machine?) respectively.

Obviously this is only relevant to windows computers in active directory with primary domain controller and group policy ordaining that each machine should run a logon script.

Search Terms:

Things i searched for in order to try and find this out:

find out what logon script a computer is using

find path of logon script from workstation

find path of logon script from workstation registry

(I couldn’t find the registry location as it turns out!)

If this post helped you, or you have additional tips, please leave them in the comments!

Cool links

Privacy & Cookies. This site uses cookies, and stores data you provide. I have to tell you this now because reasons. To request I delete your data (email address, commenter name) email me surrik@kirr.us. Accept to hide this warning. Read more on the cookies in the link;
Cookie Policy