Comparison9 min
Scheduled Job vs. Scheduled Task in PowerShell 7
PowerShell 7 can register a scheduled task but not a scheduled job. The job cmdlets load only in Windows PowerShell, where a job saves each run's output.
Any Windows Server edition, as a VM or on hardware.
22 articles
Comparison9 min
PowerShell 7 can register a scheduled task but not a scheduled job. The job cmdlets load only in Windows PowerShell, where a job saves each run's output.
Guide22 min
Configure an Azure server VM to start itself daily, update Windows, and deallocate when idle, so it runs about an hour or two a day instead of 24/7.
Answer11 min
Under -File the caller receives the exit code your script chose; under -Command, any script code other than 0 or 1 reaches the caller as 1.
Guide9 min
You get the old disk's top-level folders with the size and last-modified date of each, so you can decide what to keep before the disk is gone.
Troubleshooting18 min
Task Scheduler records the exit code of powershell.exe, not whether the script worked, so a script that hit an error and carried on is recorded as a success.
Guide14 min
All eleven WN25-SH OpenSSH checks run before and after, and the seven that fail on a fresh Server 2025 image end up printing what their check text expects.
Guide12 min
A 7 Days to Die dedicated server running the old world on a new Windows Server, its build and save files checked against the old one before players move.
Guide13 min
Run a 7 Days to Die server from a Windows scheduled task with no time limit, and stop it over telnet so the shutdown finishes and the world is saved.
Guide11 min
Compare the buildid in the appmanifest with SteamCMD's app_info_print and run app_update only when they differ. Success! and exit code 0 prove nothing.
Guide7 min
Each server's app ID comes with whether an anonymous SteamCMD install starts, and only two of the 25 were refused with No subscription.
Guide11 min
A copied restore such as xcopy /E keeps files the backup lacks. Rename the live Saves folder aside and move the archive's in; the old world stays beside it.
Guide9 min
SteamCMD and a dedicated server installed on Windows Server, checked by the success line, the executable and the build ID rather than the exit code.
Guide14 min
A 7 Days to Die server that starts on a clean Windows Server, with its saves where you choose and TCP 26900 and UDP 26900 to 26902 open in Windows Firewall.
Troubleshooting5 min
Cmdlets never set LASTEXITCODE, so after a failed cmdlet it still holds whatever the last native program returned, often zero.
Troubleshooting4 min
The subroutine runs before anything calls it, and its goto :eof ends the whole script, because cmd.exe reads straight down through a label.
Guide7 min
You end up with AWS.Tools in Program Files, where a task running as SYSTEM finds it; SYSTEM's module path never includes your Documents folder.
Guideupdated Oct 202622 min
The world lands in S3 every morning as an archive that restores onto a fresh server, and the task's result says whether that morning's copy arrived.
Guideupdated Sep 20266 min
Enabling SSH on Windows Server 2025 lets only Administrators and the OpenSSH Users group sign in. You turn it on with PowerShell, then choose who's in it.
Guideupdated Oct 202612 min
Automate fetching the month's Patch Tuesday KBs and CVEs in plain PowerShell, as objects you can filter by product, severity or exploit status.
Guideupdated Sep 20265 min
Windows OpenSSH ignores an administrator's authorized_keys. Put the key in administrators_authorized_keys with the right ACL, scripted for a fresh server.
Guideupdated Sep 20265 min
Install the OpenSSH server with PowerShell, start sshd at boot, confirm the port 22 rule, and connect, plus where an administrator's key really goes.
Guide4 min
Windows Server 2022 has no winget, but VS Code's own installer takes switches that install it for every account without showing a window.