Welcome on my blog

We use cookies to ensure you get the best experience on our website.

Powershell – Ustawianie Automatycznego Logowania do Komputera

Autor: chmajster 18.03.2023
## Run always as admin

Write-Host "Setting autologin - Start"

$Login = "TEST" // User Login 
$Password_clear ="TEST"  // User Password
$Password = ConvertTo-SecureString  $Password_clear -AsPlainText -Force

# Ustaw automatyczne logowanie
$RegPath = "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"
Set-ItemProperty -Path $RegPath "AutoAdminLogon" -Value "1" -type String 
Set-ItemProperty -Path $RegPath "DefaultUsername" -Value $Login -type String 
Set-ItemProperty -Path $RegPath "DefaultPassword" -Value $Password_clear -type String

Write-Host "Setting autologin - end "
Dodaj komentarz

Search
Categories
O Blogu

Cześć Podróżniku!

Ta strona ma nie być typowym poradnikiem w IT, Głównym jej cel to zapisanie krótkich notatek, które mogą się przydać w codziennym życiu podczas korzystania/konfiguracji różnych urządzeń np. Ustawienia DHCP na Routerze Cisco, Ustawieniu Karty sieciowej na Linuxie itp.

Buy me A coffee
[Empty]

Wszelkie prawa zastrzeżone