This sets the max memory per shell to 300 MB, which doubled the default for PowerShell 2 / Server 2008r2, but isn't big enough for consistent use. The default as of PowerShell 3 is 1024 (though through a bug it's hard coded to 300 - fixable via a hotfix - http://stevenmurawski.com/powershell/2015/5/powershell-3-winrm-maxmemorypershellmb-is-wrong ). This value should be at least 1024 to stay with the current PS3 and greater default value.
https://github.com/chef/chef-provisioning-aws/blob/64e23b6acae83a0417f06795b6c4b8812635e71a/lib/chef/provisioning/aws_driver/driver.rb#L484
This sets the max memory per shell to 300 MB, which doubled the default for PowerShell 2 / Server 2008r2, but isn't big enough for consistent use. The default as of PowerShell 3 is 1024 (though through a bug it's hard coded to 300 - fixable via a hotfix - http://stevenmurawski.com/powershell/2015/5/powershell-3-winrm-maxmemorypershellmb-is-wrong ). This value should be at least 1024 to stay with the current PS3 and greater default value.