I am trying to start Performance monitor as different user. I found runas.exe
but syntax for program arguments makes me go crazy.
The following syntax works:
C:\Windows\System32\runas.exe /user:domain\username perfmon.exe
But since perfmon.exe
has the argument */res*
the following line doesn't work:
C:\Windows\System32\runas.exe /user:domain\username perfmon.exe /res
I tried to escape */res*
but without any success. I tried:
"/res"
\"/res\""
\"\/res\""
Any ideas?