I have no words...

Igor.
Moderators: Hacker, petermad, Stefan2, white
I gave a recommendation, but this doesn't mean that I use it myself. I am not afraid of opening pdf files in any mode. If necessary, I use a hotkey that launches a file with restricted rights via vbs. I would not open files in this way by Enter, because it takes extra time to start, especially since I open many files through ***cm_List "%1". Believe me, this theme is definitely not enough to compare our styles.iG0R wrote: 2023-11-07, 22:52 UTC As it turned out, we have the same working style, so this topic was close to him and he already solved it for himself.
I paid attention to both, just didn't focus on the error, because here it is unnecessary demagoguery.iG0R wrote: 2023-11-07, 22:52 UTCHe also had no objections to the wording of my request, as he only paid attention to the essence of my question.
Code: Select all
runas /trustlevel:0x20000 ""f:\SumatraPDF (Reader DjVu ePub etc)\SumatraPDF-prerel-64-13.6.5876-portable.exe" "%1""
Code: Select all
runas /trustlevel:0x20000 ""f:\SumatraPDF (Reader DjVu ePub etc)\SumatraPDF-prerel-64-13.6.5876-portable.exe" "f:\Temp\To be or not to be.pdf""
Code: Select all
"f:\PsTools (Windows tools)\PSTools-30.03.2023\PsExec64.exe" -d -l rundll32.exe shell32.dll,ShellExec_RunDLL "%1"
"f:\PsTools (Windows tools)\PSTools-30.03.2023\PsExec64.exe" -d -l rundll32.exe shell32.dll,ShellExec_RunDLLA "%1"
"f:\PsTools (Windows tools)\PSTools-30.03.2023\PsExec64.exe" -d -l rundll32.exe url.dll, OpenURL "%1"
"f:\PsTools (Windows tools)\PSTools-30.03.2023\PsExec64.exe" -d -l rundll32.exe url.dll, FileProtocolHandler "%1"
If you run "runas /?" at the Windows Command prompt, you will see this among the examples:iG0R wrote: 2023-11-09, 01:15 UTC 1st oddity.
Regarding "runas" command - no matter what argument is placed after the program name, this argument is completely ignored, i.e., for example, when executing the following commandCode: Select all
runas /trustlevel:0x20000 ""f:\SumatraPDF (Reader DjVu ePub etc)\SumatraPDF-prerel-64-13.6.5876-portable.exe" "%1""
Code: Select all
> runas /env /user:user@domain.microsoft.com "notepad \"my file.txt\""
Code: Select all
runas /trustlevel:0x20000 "\"f:\SumatraPDF (Reader DjVu ePub etc)\SumatraPDF-prerel-64-13.6.5876-portable.exe\" \"%1\""
Some application setups allow installing for all users.iG0R wrote: 2023-11-09, 14:58 UTC 2 Horst.Epp
Thanks a lot!
Maybe you can give me a hint, is there any way to use the set of installed default programs that the system uses when opening files in standard conditions?
Actually, when specifying commands by link, I did not mention the interaction with PsExec. On the contrary, I wrote "without using the console".But if I open a pdf document using any of the following commands:
Is it installed only for the current user or all?Then FoxitPhantomPDF launches, but it tells me that it is not registered, the trial period has passed and an activation code is required.
From programs that are not running from TC?But this time everything worked as it should - copying and pasting were possible.
Perhaps the task manager is checking the inherited rights from the parent process, so it shows the wrong status.And here is the question of what to believe - the system, which claims that SumatraPDF and FoxitPhantomPDF are still opened with elevated privileges, or the fact that programs with reduced rights can work with them.
Yes, I saw that, but I had already decided to try everything when I had a strange situation with the privilege level in TaskManager.Fla$her wrote: 2023-11-09, 17:29 UTC Actually, when specifying commands by link, I did not mention the interaction with PsExec. On the contrary, I wrote "without using the console".
That's the strangeness of it, yes, only for one user - me.
Yes, there are 2 programs that run at startup, and TC has nothing to do with their loading - one is the QTranslate translator and the other is a floating panel with handy tools called SnipDo (similar to MacOS's PopClip).
Is there anything more reliable than Task Manager that accurately shows the privilege level?Fla$her wrote: 2023-11-09, 17:29 UTC Perhaps the task manager is checking the inherited rights from the parent process, so it shows the wrong status.
I asked to talk about the results (are there any differences) without PsExec.
This is not strange, because there is interaction with different registry hives (HKLM/HKCU/HKU\<SID>) when searching for registration and settings.
I can't say for sure, but you can try the "Elevation" column in ProcessHacker.iG0R wrote: 2023-11-09, 19:24 UTCIs there anything more reliable than Task Manager that accurately shows the privilege level?
But they don't edit any documents except their configs, but you wrote:iG0R wrote: 2023-11-09, 19:24 UTCone is the QTranslate translator and the other is a floating panel with handy tools called SnipDo
iG0R wrote: 2023-11-09, 01:15 UTCno external program with reduced rights could copy or paste anything from/into this document.
The way QTranslate and SnipDo work is as follows: After selecting a text, their pop-up icon (QTranslate) and panel (SnipDo) appear next to it, which, when clicked, certain actions are performed.Fla$her wrote: 2023-11-09, 20:20 UTC But they don't edit any documents except their configs, but you wrote:
Process Hacker, Process Explorer (SysInternals), Process Lasso - non of them correctly display the rights in this case.Fla$her wrote: 2023-11-09, 20:20 UTC I can't say for sure, but you can try the "Elevation" column in ProcessHacker.
Yes, they do. The program is run as administrator, but in restricted mode, also known as "Limited User Mode" or "Restricted Token Mode".iG0R wrote: 2023-11-09, 21:00 UTC Process Hacker, Process Explorer (SysInternals), Process Lasso - non of them correctly display the rights in this case.
Code: Select all
runas /trustlevel:0x20000 cmd
Code: Select all
runas /machine:amd64 /trustlevel:0x20000 cmd
For more info, see:Administrator: cmd (running as <machine\user> with restricted privileges)