added verbose logic
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user