Create a shutdown shortcut on your desktop
קוד:
$URI = "https://www.dropbox.com/scl/fi/zxjd4sn7l54smekbt8783/Shutdown-icon-11813.ico?rlkey=e30xwqpp6hptz220e86wbjp1b&st=juc6ghzf&dl=1"
$FullPath = "$Env:Temp\Shutdown1.ico"
$Action = IWR -URI $URI -OutFile $FullPath
# Edit Shortcut
$FullName = "$Env:UserProfile\Desktop\Shutdown1.lnk"
$WshShell = New-Object -ComObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut($FullName)
$Shortcut.TargetPath = "C:\Windows\System32\Shutdown.exe"
$Shortcut.Arguments = "'/P', '/F'"
$Shortcut.Description = "Shutdown_Now (!)"
$Shortcut.WorkingDirectory = "C:\Windows\System32"
$Shortcut.IconLocation = $FullPath
$Shortcut.WindowStyle = "7"
$Shortcut.Save()
#
נערך לאחרונה ב: