anchor.diff:  
   title Enabling Windows Remote Management. Please wait...
   
  -echo ==^> Turning off User Account Control (UAC)
  +echo ==^> Turning off User Account Control ^(UAC^)
   :: see http://www.howtogeek.com/howto/windows-vista/enable-or-disable-uac-from-the-windows-vista-command-line/
   reg ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
   @if errorlevel 1 echo ==^> WARNING: Error %ERRORLEVEL% was returned by: reg ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
  
positive.code: reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\system /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f
  @if errorlevel 1 echo ==^> WARNING: Error %ERRORLEVEL% was returned by: reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\system /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f
  
  echo ==^> Blocking WinRM port 5985 on the firewall
  netsh advfirewall firewall add rule name="winrm"  dir=in action=block protocol=TCP localport=5985
  @if errorlevel 1 echo ==^> WARNING: Error %ERRORLEVEL% was returned by: netsh advfirewall firewall add rule name="winrm"  dir=in action=block protocol=TCP localport=5985
  
  echo ==^> Configuring Windows Remote Management (WinRM) service
  
  call winrm quickconfig -q
  @if errorlevel 1 echo ==^> WARNING: Error %ERRORLEVEL% was returned by: winrm quickconfig -q
  
negative.code: 
  :is_winrm_running
  
  timeout 5
  
  sc query winrm | findstr "STOPPED" >nul
  if errorlevel 1 goto is_winrm_running
  
  :winrm_not_running
  
  echo ==^> Restoring Windows Remote Management ^(WINRM-HTTP-In-TCP^) on the firewall
  netsh advfirewall firewall set rule group="Windows Remote Management" new enable=yes
  @if errorlevel 1 echo ==^> WARNING: Error %ERRORLEVEL% was returned by: netsh advfirewall firewall set rule group="Windows Remote Management" new enable=yes
  
  :exit0
  
  