0

I can add "Run this program as an administrator" option to any shortcut like this with Powershell:

$Shortcut = "C:\Users\DR. ÇAĞATAY KAYA\Desktop\chrome - Kısayol.lnk"
$Bytes = [System.IO.File]::ReadAllBytes($Shortcut)
$Bytes[21] = 32
[System.IO.File]::WriteAllBytes($Shortcut, $Bytes)

And those codes work because I see UAC prompt when I double click that shortcut.

But the problem is:

enter image description here

That option is still not checked.

So, what should I do?

0 Answers0