HI, I have made a PowerShell script to enable USB drive access ( as some machines I work with have usb drives disabled,
the PowerShell command works fine however when I use the website to create the inject.bin file using the website it places an @ in the PowerShell code, causing the code to fail
the @ is not in my code, I'm guessing it's being added during compiling,
any ideas would be greatly appreciated
Code:
REM let the HID enumerate
DELAY 1000
GUI r
DELAY 200
REM my best attempt at a elevated powershell instance
STRING powershell Start-Process powershell -Verb runAs
ENTER
DELAY 1000
REM Run Unlock Script
STRING Set-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\services\USBSTOR" -name start -Value 3
ENTER
DELAY 200