From b7ca816ec2b43a105f7e4580d6a0ad09fc284455 Mon Sep 17 00:00:00 2001 From: Olivier Bilodeau Date: Sun, 26 Feb 2017 22:56:12 -0500 Subject: [PATCH] bugfix: Increasing WinRM memory limit for .Net 4.0 install (fixes #31) Chocolatey on Windows 7 pulled in .Net 4.0 and it was unable to install due to memory limits for scripts. --- malboxes/installconfig/windows7/enablewinrm.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/malboxes/installconfig/windows7/enablewinrm.ps1 b/malboxes/installconfig/windows7/enablewinrm.ps1 index fa92dfb..7fd7fb7 100644 --- a/malboxes/installconfig/windows7/enablewinrm.ps1 +++ b/malboxes/installconfig/windows7/enablewinrm.ps1 @@ -4,6 +4,8 @@ winrm quickconfig -q -transport:http winrm set winrm/config/client '@{AllowUnencrypted="true"}' winrm set winrm/config/service '@{AllowUnencrypted="true"}' winrm set winrm/config/service/auth '@{Basic="true"}' +# .Net 4.0 installer (a choco dep) fails w/o this amount of memory (#31) +winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="800"}' net stop winrm netsh advfirewall firewall set rule group="remote administration" new enable=yes netsh firewall add portopening TCP 5985 "Port 5985"