diff --git a/functions/public/Invoke-WPFPanelAutologin.ps1 b/functions/public/Invoke-WPFPanelAutologin.ps1 index 5291869a..6a2da7b7 100644 --- a/functions/public/Invoke-WPFPanelAutologin.ps1 +++ b/functions/public/Invoke-WPFPanelAutologin.ps1 @@ -5,6 +5,8 @@ function Invoke-WPFPanelAutologin { Enables autologin using Sysinternals Autologon.exe #> - curl.exe -ss "https://live.sysinternals.com/Autologon.exe" -o $env:temp\autologin.exe # Official Microsoft recommendation https://learn.microsoft.com/en-us/sysinternals/downloads/autologon - cmd /c $env:temp\autologin.exe /accepteula -} \ No newline at end of file + + # 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 +}