I am trying to run a script from the run box in windows. The problem is that this is on a usb and I want to be able to do this on different computers. The usb is called "bashbunny", but the drive letter will change depending on the computer. How do i find the drive letter and launch the script that is on the usb through the Run box?
Sorry if im not able to explain better :)
What I have done so far:
powershell ".((gwmi win32_volume -f 'label=''BashBunny''').Name+'payloads\switch1\r.cmd')"