Код: Выделить всё
PowerShell allowtorthroughwindowsfirewallinbound = PowerShell.Create("New - NetFirewallRule - DisplayName Allow TOR through Windows Firewall - Direction Inbound - Program C:\\ProgramData\\chocolatey\\bin\\tor.exe - Action Allow:");
Код: Выделить всё
Error CS1503 Argument 1: cannot convert from 'string' to 'System.Management.Automation.RunspaceMode'
Ожидается запуск сценария и изменение брандмауэра Windows.
Подробнее здесь: https://stackoverflow.com/questions/784 ... nspacemode
Мобильная версия