forderud / ComSamples

Examples of language-neutral COM interfaces for IPC and language interop.
MIT License
0 stars 2 forks source link

Learn how to RunAs authority\system #24

Closed forderud closed 2 months ago

forderud commented 2 months ago

Figure out how to get RunAs = "nt authority\system" working as described on https://learn.microsoft.com/en-us/windows/win32/com/runas . Relevant quote:

Can use "nt authority\system" with a COM server that is already started or that has an entry in the class table. However, you cannot use "nt authority\system" with a COM server that is not already started.

Untested startup command: c:\Dev\tools\PSTools\PsExec.exe -i -s c:\Dev\ComSamples\x64\Debug\MyServerCpp.exe

Sample code: AppID SetRunAsPassword

Related links

Relevant:

Bacground:

forderud commented 2 months ago

Task moved to https://github.com/forderud/RunInSandbox/issues/11