I am trying to have powershell spit out the output file from a command to the current folder as I am trying to create a printer migration that can be run from a USB stick.
My command is simply: C:\Windows\System32\spool\tools\Printbrm.exe /b /f C:\Temp\Print
but I want the file to save to the directory that the script is being run from which can very between D: and and E: because the USB path changes on different computers in our organization.
Anyone able to help with this? I am guessing it is simple but can't figure it out.