diff --git a/core/src/main/resources/windows-service/hudson-slave.xml b/core/src/main/resources/windows-service/hudson-slave.xml
index 71e910d5eaeee4cbdb1aa48bb60b36d6a15b5de7..41a18cb906200c7341ab8cae32f39ed0e52b1b0e 100644
--- a/core/src/main/resources/windows-service/hudson-slave.xml
+++ b/core/src/main/resources/windows-service/hudson-slave.xml
@@ -13,7 +13,7 @@
The following value assumes that you have java in your PATH.
-->
@JAVA@
- -jar "%BASE%\slave.jar" -jnlpUrl @URL@
+ -Xrs -jar "%BASE%\slave.jar" -jnlpUrl @URL@
java
- -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "%BASE%\hudson.war" --httpPort=8080
+ -Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "%BASE%\hudson.war" --httpPort=8080