fix usb unlock
This commit is contained in:
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
@ -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%"'
|
||||||
|
|||||||
Reference in New Issue
Block a user