Skip to content

Instantly share code, notes, and snippets.

@truthbk
Last active November 19, 2019 21:05
Show Gist options
  • Save truthbk/87ec526dc669335ffe133225e2a83e69 to your computer and use it in GitHub Desktop.
Save truthbk/87ec526dc669335ffe133225e2a83e69 to your computer and use it in GitHub Desktop.
winrm_meminc.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
Invoke-Command -ScriptBlock {winrm set winrm/config/winrs `@`{MaxMemoryPerShellMB=`"2048`"`}}
Invoke-Command -ScriptBlock {winrm set winrm/config/winrs `@`{MaxProcessesPerShell =`"200`"`}}
choco install kb976932
choco install kb2670838
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment