From ceec8aeb534827e91ac2ba9aeceec332836fcee0 Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Wed, 3 Jun 2026 21:45:16 +0300 Subject: [PATCH] Update Invoke-WPFPanelAutologin.ps1 (#4596) --- functions/public/Invoke-WPFPanelAutologin.ps1 | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/functions/public/Invoke-WPFPanelAutologin.ps1 b/functions/public/Invoke-WPFPanelAutologin.ps1 index 6a2da7b7..10d5e56f 100644 --- a/functions/public/Invoke-WPFPanelAutologin.ps1 +++ b/functions/public/Invoke-WPFPanelAutologin.ps1 @@ -1,12 +1,4 @@ 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 + Invoke-WebRequest -Uri https://live.sysinternals.com/Autologon.exe -OutFile "$Env:Temp\autologin.exe" + Start-Process -FilePath "$Env:Temp\autologin.exe" -ArgumentList /accepteula }