autologon changes
This commit is contained in:
parent
3ab6bb6577
commit
14394caa4d
10
tools/autologon.cmd
Normal file
10
tools/autologon.cmd
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
@echo off
|
||||||
|
set TOOLS=c:\tools
|
||||||
|
|
||||||
|
echo ####### %0 #######
|
||||||
|
|
||||||
|
echo Activating Auto Logon for a user ...
|
||||||
|
powershell -command %TOOLS%\autologon.ps1
|
||||||
|
|
||||||
|
echo ####### %0 #######
|
||||||
|
|
@ -1,3 +1,4 @@
|
|||||||
|
# Activate Auto-Logon
|
||||||
|
|
||||||
$Username = Read-Host 'USER ? '
|
$Username = Read-Host 'USER ? '
|
||||||
$Password = Read-Host 'PASSWORD ? '
|
$Password = Read-Host 'PASSWORD ? '
|
@ -2,10 +2,12 @@
|
|||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
echo disabling autologon for admin ...
|
echo disabling autologon ...
|
||||||
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /f 2>nul
|
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /f 2>nul
|
||||||
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /f 2>nul
|
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /f 2>nul
|
||||||
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /f 2>nul
|
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /f 2>nul
|
||||||
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" ^
|
||||||
|
/v "AutoAdminLogon" /t REG_SZ /d 0 /f 2>nul
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
Loading…
Reference in New Issue
Block a user