mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-14 14:45:52 -06:00
13 lines
393 B
PowerShell
13 lines
393 B
PowerShell
function Invoke-WPFPanelAutologin {
|
|
<#
|
|
|
|
.SYNOPSIS
|
|
Enables autologin using Sysinternals Autologon.exe
|
|
|
|
#>
|
|
|
|
# Official Microsoft recommendation: https://learn.microsoft.com/en-us/sysinternals/downloads/autologon
|
|
Invoke-WebRequest -Uri "https://live.sysinternals.com/Autologon.exe" -OutFile "$env:temp\autologin.exe"
|
|
cmd /c "$env:temp\autologin.exe" /accepteula
|
|
}
|