Runas shortcut target w/variables

GreenMachine

In Runtime
Messages
285
Hello,

I'm having trouble with launching shortcuts but only when I include its needed target variables in Windows 10 (same issue in Win 7). I'm trying to permanently run a shortcut as a different local Windows account. I'm not entirely sure this is even possible or not and hopefully this is the right forum subsection for this sort of question! An example of the trouble..

[Working] Launch shortcut without variables:

C:\WINDOWS\System32\runas.exe /user:pCName\GreenMachine /savecred "C:\Program Files (x86)\Ventrilo\Ventrilo.exe"

[Not working] Include a parameter allowing multiple instances of the application:

C:\WINDOWS\System32\runas.exe /user:pCName\GreenMachine /savecred "C:\Program Files (x86)\Ventrilo\Ventrilo.exe" -m
 
You need to put the program parameter inside the quotes, e.g.:

C:\WINDOWS\System32\runas.exe /user:pCName\GreenMachine /savecred "C:\Program Files (x86)\Ventrilo\Ventrilo.exe -m"
 
Back
Top Bottom