Skip to content

Instantly share code, notes, and snippets.

@blachniet
Created July 5, 2016 11:55
Show Gist options
  • Save blachniet/ef90125f5981227e02c91d59cfa758ea to your computer and use it in GitHub Desktop.
Save blachniet/ef90125f5981227e02c91d59cfa758ea to your computer and use it in GitHub Desktop.
Increase the maximum memory allocation allowed in remote powershell sessions.
Set-Item WSMan:\localhost\Plugin\Microsoft.PowerShell\Quotas\MaxMemoryPerShellMB 10240
Set-Item WSMan:\localhost\Shell\MaxMemoryPerShellMB 10240
Restart-Service winrm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment