nathgreco Posted July 7, 2017 Posted July 7, 2017 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 Quote
nathgreco Posted July 7, 2017 Author Posted July 7, 2017 never mind found this and switching the language to Us English works like a treat Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.