1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
$CodigoC = @" using System; using System.Diagnostics; public class Proceso { public static void Main() { Process myProcess = new Process(); myProcess.StartInfo.FileName = "C:\\Windows\\System32\\Notepad.exe"; myProcess.StartInfo.CreateNoWindow = true; myProcess.Start(); } } "@ Add-Type -TypeDefinition $CodigoC -ErrorAction SilentlyContinue [Proceso]::Main() |