Hello All, I’m attempting to stop and start the w3svc service on another machine than where the build is taking place.  I’m using CruiseControl.NET to execute the nant script, and the CCNet service is running as a domain admin account.
 
I get the same error while running the build script from the command line, while logged in as a Domain Admin.
 
Here is the error:
 
“Cannot open Service Control Manager on computer 'HP_12XX345'. This operation might require other privileges.”

 

Here is the sample Nant script:

 

<?xml version="1.0"?>

<project name="ServicesControlTest" default="build">

      <target name="build">

            <echo message="Stopping..." />

            <servicecontroller action="" service="w3svc" machine=" HP_12XX345" timeout="30000" />

 

            <echo message="Starting..." />

            <servicecontroller action="" service="w3svc" machine=" HP_12XX345" timeout="30000" />

 

            <echo message="Complete" />

      </target>

</project>

 

I’ve even added the machine that is executing the build to the Administrators group on the target machine (HP_12XX345).

 

Any help would be greatly appreciated!

Stephen

Reply via email to