Skip to content

Instantly share code, notes, and snippets.

@Kagee
Created March 6, 2016 18:00
Show Gist options
  • Save Kagee/9d89408c10c7690e143c to your computer and use it in GitHub Desktop.
Save Kagee/9d89408c10c7690e143c to your computer and use it in GitHub Desktop.
@echo off
set WINRM_EXEC=call %SYSTEMROOT%\System32\winrm
%WINRM_EXEC% quickconfig -q
%WINRM_EXEC% set winrm/config/winrs @{MaxMemoryPerShellMB="300"}
%WINRM_EXEC% set winrm/config @{MaxTimeoutms="1800000"}
%WINRM_EXEC% set winrm/config/client/auth @{Basic="true"}
%WINRM_EXEC% set winrm/config/service @{AllowUnencrypted="true"}
%WINRM_EXEC% set winrm/config/service/auth @{Basic="true"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment