fix usb unlock

This commit is contained in:
USER
2024-01-06 21:18:44 +00:00
parent f15d6623e8
commit 17a47fccd2
3 changed files with 3 additions and 2 deletions

View File

@ -4,5 +4,5 @@ Get-Content C:\Scripts\Secrets\unlockusb.txt | Where-Object {$_.length -gt 0} |
} }
$SecureString = ConvertTo-SecureString $mystring -AsPlainText -Force $SecureString = ConvertTo-SecureString $mystring -AsPlainText -Force
Unlock-BitLocker -MountPoint "E:" -Password $SecureString Unlock-BitLocker -MountPoint "Z:" -Password $SecureString

View File

@ -3,7 +3,7 @@ call C:\Scripts\wLocal\localENV.bat
@REM xxxxxxx @REM xxxxxxx
echo "START: %~n0" echo "START: %~n0"
set UNLOCKPS="%LOCAL%\PS\pUnlock.ps1" set UNLOCKPS="%LOCAL%\PS\pUnlockUSB.ps1"
set EXE="Powershell.exe" set EXE="Powershell.exe"
@REM set variables to ensure they are set, @REM set variables to ensure they are set,

View File

@ -5,6 +5,7 @@ echo "%~n0: Start"
if exist Z:\LocalBackups\ ( if exist Z:\LocalBackups\ (
echo "Backup disk found" echo "Backup disk found"
call C:\Scripts\wLocal\bin\l_UnlockUSB.bat
) else ( ) else (
echo "Backup disk NOT found" echo "Backup disk NOT found"
call %TMESSAGEH% '"Friday backup disk missing on %check_computername%"' call %TMESSAGEH% '"Friday backup disk missing on %check_computername%"'