anchor.diff:  call winrm set winrm/config @{MaxTimeoutms="1800000"}
   @if errorlevel 1 echo ==^> WARNING: Error %ERRORLEVEL% was returned by: winrm set winrm/config @{MaxTimeoutms="1800000"}
   
  -call winrm set winrm/config/winrs @{MaxMemoryPerShellMB="800"}
  +call winrm set winrm/config/winrs @{MaxMemoryPerShellMB="1024"}
   @if errorlevel 1 echo ==^> WARNING: Error %ERRORLEVEL% was returned by: winrm set winrm/config/winrs @{MaxMemoryPerShellMB="1024"}
   
   call winrm set winrm/config/service @{AllowUnencrypted="true"}
  
positive.code: netsh advfirewall firewall delete rule name="winrm"
  @if errorlevel 1 echo ==^> WARNING: Error %ERRORLEVEL% was returned by: netsh advfirewall firewall delete rule name="winrm"
  
  echo ==^> Enable firewall groups
  :: see http://social.technet.microsoft.com/Forums/windowsserver/en-US/a1e65f0f-2550-49ae-aee2-56a9bdcfb8fb/windows-7-remote-administration-firewall-group?forum=winserverManagement
  ver | findstr /i "6\.[2-9]\."
  if errorlevel 1 ( 
    echo ==^> Enabling Remote Administration firewall group
    :: pre win 8/server 2012
  
negative.code: netsh advfirewall firewall add rule name="winrm" dir=in action=allow protocol=TCP localport=5985
  @if errorlevel 1 echo ==^> WARNING: Error %ERRORLEVEL% was returned by: netsh advfirewall firewall add rule name="winrm"  dir=in action=allow protocol=TCP localport=5985
  
  echo ==^> Starting winrm service
  sc start winrm
  
  :: wait for winrm service to finish starting
  timeout 5
  
  :exit0
  