0
I made a program to run the windows activation process high but I get the message of insufficient privilege despite being with Verb = Runes
var senhaSegura = new System.Security.SecureString();
var senha = "****"
foreach (char c in senha)
senhaSegura.AppendChar(c);
var process = new System.Diagnostics.Process();
process.StartInfo = new ProcessStartInfo{
FileName = "cscript.exe",
WorkingDirectory = @"c:\windows\system32\",
UserName = "admin",
Domain = "transp",
Password = senhaSegura, //Converte a senha em uma senha segura.
Verb = "runas", //Aqui executa de forma elevada
Arguments = "slmgr.vbs -ipk meu serial",
UseShellExecute = false
};
How will your application run? It’s a console application that generates a common . exe?
– Gabriel Ferreira
Running in visual studio 2019
– user2509556
you are sure that this app should work on
c:\windows\system32\
– Leandro Angelo
Yes if you search in folder c: windows system32 cscript will be there.
– user2509556
Put your app manifest here.
– CypherPotato