From 83ef15ccafab3980e523957339d0959a701dc543 Mon Sep 17 00:00:00 2001 From: "Mr.k" Date: Fri, 28 Jun 2024 17:47:59 +0300 Subject: [PATCH] Fix 'Invoke-WPFPanelAutologin.ps1' Public Function (#2184) --- functions/public/Invoke-WPFPanelAutologin.ps1 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 +}