|
While logged on as that domain admin, can you manage
the service without nant? Stop and start it with netsvc.exe. If that does not
work, then the error message is correct, and you "require other
privileges", meaning that you don't actually have admin access on the the
target box.
Also, what's with the space in the computer name in your
nant script? Is that affecting anything? Is nant looking for a non-existent
machine? The string in the error message leads me to believe that nant knows
computer names can't have spaces, but maybe the error message string is
wrong. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Tunney Sent: Wednesday, July 27, 2005 7: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 |
- [Nant-users] [Nant-users] Stephen Tunney
- RE: [Nant-users] [Nant-users] Hogg, Russell E.
- RE: [Nant-users] [Nant-users] Melissa Kacher
- RE: [Nant-users] [Nant-users] Stephen Tunney
