title: Set SQL Server 'Maximum server memory in (MB)' using Powershell
body: <p>I'm currently automating a VM and using a Powershell script to install SQL Server 2017.</p>
  
  <p>I need to be able to script the Maximum server memory as well. Is this possible through the current configuration settings or will I need to create a custom script? If a custom script is required what would I need to do.</p>
  
  <p><a href="https://i.stack.imgur.com/pGHyW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pGHyW.png" alt="enter image description here"></a></p>