Browse Source

Active Directory script to auto-login user to a Domain

David Yurkiewicz 6 years ago
parent
commit
216d4d71f3
1 changed files with 27 additions and 0 deletions
  1. 27 0
      windows/active_directory/auto_login_domain.bat

+ 27 - 0
windows/active_directory/auto_login_domain.bat

@@ -0,0 +1,27 @@
1
+@ECHO OFF
2
+
3
+echo ********************************************************
4
+
5
+echo        Auto Login on Domain by D87tech [David Yurkiewicz]
6
+
7
+echo ********************************************************
8
+
9
+reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /t REG_SZ /d 1 /f
10
+
11
+reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /t REG_SZ /d DOMAIN_NAME /f
12
+
13
+reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /t REG_SZ /d USERNAME /f
14
+
15
+reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /t REG_SZ /d PASSWORD /f
16
+
17
+
18
+
19
+
20
+
21
+SHUTDOWN -r
22
+
23
+
24
+
25
+
26
+
27
+pause