▲ | jve 3 days ago | ||||||||||||||||
Actually great intro for step-by-step powershell scripting. I thought I didn't know about "Throw-And-Exit" command, but no, my powershell doesn't have that and google also doesn't know a thing, so wonder what's up with that. And instead of manual confirmations, one can write script with ShouldProcess support to have support for builtin -Confirm/-WhatIf/-Force parameters. And it would actually be a great use case for that scheduled task to run with -Force parameter instead of changing code to strip out confirmations. https://learn.microsoft.com/en-us/powershell/scripting/learn... | |||||||||||||||||
▲ | TacticalMalice 3 days ago | parent [-] | ||||||||||||||||
Throw-And-Exit is a custom function in the script @ https://github.com/brooks-code/WSL-VHDX-Compact/blob/main/ws... | |||||||||||||||||
|