Title: Message
 
 
Off the top of my head you might try calling the executable IISRESET /STOP.
It takes a machine name argument.
 
IISRESET /? for all the options
 
I think all windows versions have it beyond 2000
 
It's not a service though.  Call it like an executable.
 
Hope that helps.
 
 
-Russ
 
 
 
 


____________________________________________
[EMAIL PROTECTED]
478.744.2367

____________________________________________
How healthy is your software process?
Take the "Joel Test":
http://www.joelonsoftware.com/articles/fog0000000043.html



-----Original Message-----
From: Stephen Tunney [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 27, 2005 10:24 AM
To: [email protected]
Subject: [Nant-users] [Nant-users]

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



-------------------------------
-- Even though this E-Mail has been scanned and found clean of
-- known viruses, OPM can not guarantee this message is virus free.
-------------------------------
-- This message was automatically generated.
-------------------------------ri

Reply via email to