Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I find out where login scripts live?

I am looking for a way (manual or progamatic) to find out where the user's activer directory login script is located.

I can parse the results of "net user" to get the script name, but that doesn't tell me what file share the script lives on.

like image 491
Jonathan Allen Avatar asked Mar 19 '09 18:03

Jonathan Allen


People also ask

Where do login scripts live?

The default location for local logon scripts is the Systemroot\System32\Repl\Imports\Scripts folder. This folder is not created on a new installation of Windows. Therefore, the SystemRoot\System32\Repl\Imports\Scripts folder must be created and shared out by using the Netlogon share name.

Where are GPO logon scripts stored?

GPO's are stored partly in your Active Directory database and partly in the replicated Sysvol folder shared by domain controllers.

Where are logon bats stored?

NOTE: If the logon script is stored in a subfolder of the default logon script path, put the relative path to that folder in front of the file name. For example, if the Startup. bat logon script is stored in \\ComputerName\Netlogon\FolderName, type FolderName\Startup. bat.

Where are Windows startup scripts?

The path is Computer Configuration\Windows Settings\Scripts (Startup/Shutdown).


1 Answers

In addition from the command prompt run SET.

This displayed the "LOGONSERVER" value which indicates the specific domain controller you are using (there can be more than one).

Then you got to that server's NetBios Share \Servername\SYSVOL\domain.local\scripts.

like image 66
Rob Bergin Avatar answered Oct 18 '22 14:10

Rob Bergin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!