title: Unset windows environment variable in puppet exec
body: <p>I am getting an error when trying to unset the JAVA_HOME environment variable in the puppet exec type.</p>
  
  <pre><code>exec { "$base_dir/bin/service.bat install": environment =&gt; ['JRE_HOME=C:\\jdk1.8.0\\jre', 'JAVA_HOME='], }
  </code></pre>
  
  <p>This is puppet version 3.4.3 on windows server 2012.  The error I get is:</p>
  
  <pre><code>Warning: Exec[E:/tomcat/bin/service.bat install](provider=windows): Cannot understand environment setting "JAVA_HOME="
  </code></pre>
  
  <p>Please let me know if you have ideas on getting this to work or working around the issue.</p>