title: How to run jenkins slave on windows 2012 r2 x64?
body: <p>We want to use jenkins to build some specific software on Windows 2012 R2 x64. 
  But when I trying to run it, master node fails whis this error:</p>
  
  <pre><code>Connecting to 192.168.1.27
  Checking if Java exists
  C:\Program Files\Java\jdk1.6.0_30\bin\java.exe -version returned 1.6.0.
  Installing the Jenkins slave service
  ERROR: Message not found for errorCode: 0xC00000AC
  org.jinterop.dcom.common.JIException: Message not found for errorCode: 0xC00000AC
      at org.jinterop.winreg.smb.JIWinRegStub.winreg_OpenHKLM(JIWinRegStub.java:102)
      at hudson.util.jna.DotNet.isInstalled(DotNet.java:77)
      at hudson.os.windows.ManagedWindowsServiceLauncher.launch(ManagedWindowsServiceLauncher.java:292)
      at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:222)
      at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:701)
  Caused by: jcifs.smb.SmbException: All pipe instances are busy.
      at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:563)
      at jcifs.smb.SmbTransport.send(SmbTransport.java:664)
      at jcifs.smb.SmbSession.send(SmbSession.java:238)
      at jcifs.smb.SmbTree.send(SmbTree.java:119)
      at jcifs.smb.SmbFile.send(SmbFile.java:775)
      at jcifs.smb.SmbFile.open0(SmbFile.java:989)
      at jcifs.smb.SmbFile.open(SmbFile.java:1006)
      at jcifs.smb.SmbFileOutputStream.&lt;init&gt;(SmbFileOutputStream.java:142)
      at jcifs.smb.TransactNamedPipeOutputStream.&lt;init&gt;(TransactNamedPipeOutputStream.java:32)
      at jcifs.smb.SmbNamedPipe.getNamedPipeOutputStream(SmbNamedPipe.java:187)
      at rpc.ncacn_np.RpcTransport.attach(RpcTransport.java:91)
      at rpc.Stub.attach(Stub.java:104)
      at rpc.Stub.call(Stub.java:109)
      at org.jinterop.winreg.smb.JIWinRegStub.winreg_OpenHKLM(JIWinRegStub.java:100)
  </code></pre>
  
  <p>and I don't know what is wrong.</p>
  
  <p>Yes, I've read <a href="https://wiki.jenkins-ci.org/display/JENKINS/Windows+slaves+fail+to+start+via+DCOM?showComments=true&amp;showCommentArea=true#addcomment">this</a> carefully. </p>
  
  <p>upd. ok. I removed server from domain. Now jenkins says:
   <pre>Connecting to 192.168.1.27
      Checking if Java exists
      C:\Program Files\Java\jdk1.6.0_30\bin\java.exe -version returned 1.6.0.
      Installing the Jenkins slave service
      Copying jenkins-slave.exe
      Copying slave.jar
      Copying jenkins-slave.xml
      Registering the service
      Starting the service
      Waiting for the service to become ready
      ERROR: The service did not respond. Perhaps it failed to launch? </pre></p>
  
  <p>In EventViewer I see: </p>
  
  <pre>Service cannot be started. System.ComponentModel.Win32Exception: The system cannot find the file specified
         at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
         at winsw.WrapperService.StartProcess(Process process, String arguments, String executable)
         at winsw.WrapperService.OnStart(String[] _)
         at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)</pre>