diff --git a/bitwardenBackup.ps1 b/bitwardenBackup.ps1 index 6989a46..2bb0c83 100644 --- a/bitwardenBackup.ps1 +++ b/bitwardenBackup.ps1 @@ -6,7 +6,6 @@ param ( # Verbose output if ($verbose) { - $oldverbose = $VerbosePreference $VerbosePreference = "continue" } @@ -42,7 +41,8 @@ if ($($compareObjects | measure).count -gt 0) { } # get the date/time for the back filename -$dateTime = get-date -format ("yyyyMMdd-HHmmss") +$dateTime = Get-Date -format ("yyyyMMdd-HHmmss") +# set the binaries path, do not rely on the path variables as they are not hashed $bw = "$PSScriptRoot\lib\bw.exe" $gpg = "$PSScriptRoot\lib\gpg\bin\gpg.exe" $sdelete = "$PSScriptRoot\lib\sdelete.exe"