Untitled
unknown
csharp
2 years ago
1.2 kB
8
Indexable
using System.Diagnostics; namespace ConsoleApp { class Program { static void Main(string[] args) { // Create a new process to run the first powercfg command Process process1 = new Process(); process1.StartInfo.FileName = "powercfg.exe"; process1.StartInfo.Arguments = "/SETACVALUEINDEX SCHEME_CURRENT 7516b95f-f776-4464-8c53-06167f40cc99 3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e 0"; process1.StartInfo.Verb = "runas"; // Run as administrator process1.Start(); // Wait for the first process to exit process1.WaitForExit(); // Create a new process to run the second powercfg command Process process2 = new Process(); process2.StartInfo.FileName = "powercfg.exe"; process2.StartInfo.Arguments = "/SETACVALUEINDEX SCHEME_CURRENT 238C9FA8-0AAD-41ED-83F4-97BE242C8F20 29f6c1db-86da-48c5-9fdb-f2b67b1f44da 0"; process2.StartInfo.Verb = "runas"; // Run as administrator process2.Start(); // Wait for the second process to exit process2.WaitForExit(); } } }
Editor is loading...