Skip to content

bitwire-it/scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Invoke-ScheduledShutdownPrompt.ps1

Exit Codes

Code Meaning Trigger
0 User requested 30-minute extension "Keep Working" / "Lavora ancora" clicked
1 Machine shut down Timeout, "Shut Down Now" / "Spegni ora" clicked, or unhandled error

Behavior

  • On launch a dialog appears on top of all windows and cannot be minimized or dismissed via the title bar.
  • A 60-second countdown timer with a draining progress bar gives the user a clear visual of remaining time.
  • At 30 seconds remaining the UI shifts to red and prompts the user to save their files immediately.
  • On timeout or "Shut Down Now" the script executes shutdown.exe /s /t 0 and exits with code 1.
  • On "Keep Working" the script exits with code 0 and does nothing — the RMM operator is expected to handle the extension workflow based on the exit code.
Prompt_EN

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors