W
W
walke2018-03-06 19:18:22
PowerShell
walke, 2018-03-06 19:18:22

How to pass password to UAC?

Dear, tell me, there is a need to run remotely on behalf of the application administrator (for example, through teamviewer). But the domain settings are such that it is impossible to bypass UAC, and when the UAC window opens, the screen is not available remotely. I know that it is realistic to implement the launch of a window for entering a password already with the entered data (login, password) so that the user only has to press the YES button. How can I implement passing the password to the UAC window using powershell or c#? OS Windows 10.
Update
I mean similar functionality: link .

Answer the question

In order to leave comments, you need to log in

1 answer(s)
#
#, 2018-03-06
@mindtester

I'll be surprised if you get a legitimate positive decision. UAC is essentially designed to prevent just such a scenario (not only this, but this for sure),
but just in case, I’ll also subscribe))
in particular from the clipboard, lines are inserted into UAC, but I have a strong suspicion that SendKey will break off, only Ctrl-V (Shift-Ins) from the physical console
if you can bypass - share))
ps
but to drive passwords through the clipboard - ahem ... like - "come in whoever you want, take whatever you want" .. if the user is behind the console .. and not stupid, this is equivalent to adding it immediately to the admin groups
pps
hmm .. well then dig aside:

var pfProc = new Process();
pfProc.StartInfo = new ProcessStartInfo(...);
pfProc.Start();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question