472,348 Members | 1,219 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,348 software developers and data experts.

How to start/stop windows service on a remote machine?

Hi all,
I have a web app running on a local PC that can start and stop windows service on a remote machine, but only when I browse to it locally. If I browse to it from my other PC and try to start/stop the service, it gives me "Cannot open Service Control Manager on computer 'xxx.xxx.xxx.xxx'. This operation might require other privileges." error.

Helpfull info:
- I am an admin on all 3 PCs
- web app is using "Windows" authentication (Integ. Win. Auth. turned ON in IIS, Anonimous Auth. turned OFF), plus "impersonation"
*** from web.config ***:
<authentication mode="Windows" /
<identity impersonate="true" />
<authorization>
<allow users="*" />
<deny users="?" />
</authorization>

Now, I can make it work, if I add user name and password to impersonation part:
<identity impersonate="true" userName="xxxx" password="xxxx" />
but I need the app to impersonate multiple people (admins), and not one person.

Also, when I don't provide userName and password, event viewer one a remote machine logs "ANONIMOUS LOGON" entry, but when I do provide userName and password the event viewer logs "<MyDomainUser>" entry. All is entered under "Security" log file.

I triple checked my IIS settings, and they see to be fine. What am I doing wrong?

Thanks
Goran
Feb 21 '07 #1
3 11735
window authentication does not allow credentials forwarding. you need to
switch to basic or kerberos and in the case of kerberos enable
forwarding on the servers.

-- bruce (sqlwork.com)
Goran Djuranovic wrote:
Hi all,
I have a web app running on a local PC that can start and stop windows
service on a remote machine, but only when I browse to it locally. If I
browse to it from my other PC and try to start/stop the service, it
gives me "Cannot open Service Control Manager on computer
'xxx.xxx.xxx.xxx'. This operation might require other privileges." error.

Helpfull info:
- I am an admin on all 3 PCs
- web app is using "Windows" authentication (Integ. Win. Auth. turned ON
in IIS, Anonimous Auth. turned OFF), plus "impersonation"
*** from web.config ***:
<authentication mode="Windows" />
<identity impersonate="true" />
<authorization>
<allow users="*" />
<deny users="?" />
</authorization>

Now, I can make it work, if I add user name and password to
impersonation part:
<identity impersonate="true" userName="xxxx" password="xxxx" />
but I need the app to impersonate multiple people (admins), and not one
person.

Also, when I don't provide userName and password, event viewer one a
remote machine logs "ANONIMOUS LOGON" entry, but when I do provide
userName and password the event viewer logs "<MyDomainUser>" entry. All
is entered under "Security" log file.

I triple checked my IIS settings, and they see to be fine. What am I
doing wrong?

Thanks
Goran

Feb 21 '07 #2
Hello Goran,

I've also found your another cross thread in the
microsoft.public.dotnet.framework.aspnet.security newsgroup. This is a
typical double hop issue of windows authentication. I have posted some
information and suggestion in that thread. Please feel free to followup
there if there is anything else we can help.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

Feb 22 '07 #3
Thanks guys. I have posted some additional questions on cross thread in the
"microsoft.public.dotnet.framework.aspnet.security " group.

Goran Djuranovic

"Steven Cheng[MSFT]" <st*****@online.microsoft.comwrote in message
news:1y**************@TK2MSFTNGHUB02.phx.gbl...
Hello Goran,

I've also found your another cross thread in the
microsoft.public.dotnet.framework.aspnet.security newsgroup. This is a
typical double hop issue of windows authentication. I have posted some
information and suggestion in that thread. Please feel free to followup
there if there is anything else we can help.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no
rights.

Feb 22 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mark | last post by:
I created an extremely simple windows service that only writes to the EventLogs on Stop and Pause. I installed it using the InstallUtil.exe...
16
by: Serdar Kalaycý | last post by:
Hi everybody, My problem seems a bit clichè but I could not work around. Well I read lots of MSDN papers and discussions, but my problem is a...
2
by: Chris Dunaway | last post by:
I need to be able to start and stop a service on another computer on the network. But I cannot connect to the other computer using my standard...
3
by: tshad | last post by:
I created a service in VS 2003 and the code works fine as an application, but not as a service. It installs fine, but when I try to start it, it...
1
by: schaf | last post by:
Hi all! I'm still trying to start/stop a service on a remote computer. (I promiss that's the last new post because of this problem from my side) ...
3
by: Billy Bob | last post by:
Hello In C# how can i start a remote process such as someapp.exe on a remote PC? I know the remote PC's name, but how do I start the app on that...
15
by: =?Utf-8?B?TVNU?= | last post by:
To demonstrate my problem, I have a very simple VB Windows application. It has a text box that is used to display a counter, a button to reset the...
1
by: aj | last post by:
A few service stop/start/restart questions on SQL Server 2005 SP2, which I'll call SQLS. It looks as if there are *potentially* 6 ways to...
2
by: pnalla | last post by:
hi, I can aceess ths windows services on remote machine. but i can not start and stop the services.it gives some error message like " can not open...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.