added verbose logic

This commit is contained in:
2021-11-24 13:17:30 -05:00
parent b0a66bc34c
commit 57ca206045

View File

@@ -1,7 +1,14 @@
param (
[switch]$zip,
[switch]$encrypt
)
[switch]$encrypt,
[switch]$verbose
)
# Verbose output
if ($verbose) {
$oldverbose = $VerbosePreference
$VerbosePreference = "continue"
}
# get the date/time for the back filename
$dateTime = get-date -format ("yyyyMMdd-HHmmss")