9
ps1 yüklenemiyor çünkü bu sistemde çalışan komut dosyaları devre dışı bırakıldı
powershellKomut dosyasını c # 'dan çalıştırmayı deniyorum . Ilk i set ExecutionPolicyetmek Unrestrictedve şu anda komut çalıştırılıyor PowerShell ISE. Şimdi bu c # benim kodum: class Program { private static PowerShell ps; static void Main(string[] args) { ps = PowerShell.Create(); string ps1File = Path.Combine(Environment.CurrentDirectory, "script.ps1"); ExecuteScript(ps1File); Console.ReadLine(); } static void …
108
c#
powershell