Remote SC

P

president

Hi,
I have two Windows XP Professional systems that are both in
workgroup. I want to start a service like the messenger service on th
other system and I know that systems Administrator password. When I ru
this command:
C:\> SC \\IP_ADDRESS START MESSENGE
I get an error like this:
SC OPEN SCMANAGER FAILED 5 : ACCESS DENIE
It doesn't ask me a username or password. Whats the problem ?
-PS: Is there any general way of executing remote commands on a X
system other than terminal services and remote desktop connection
Something like REXEC in *nix.-
Thanks in advance, presiden


-
presiden
 
B

Bill Sanderson

You don't need to do this at a command prompt.

You can use services.msc, and action, connect to another computer

to do this with a gui.
(whoops--that appears to be new in XP--you can do the same thing with the
Computer Management console in 2000--right-click My Computer, choose manage,
choose action, connect to another computer, expand services and
applications, open Services, etc.

I'm trying to remember where SC comes from--is that a resource kit tool? I
don't seem to have it handy to try to replicate what you are doing.]
 
P

president

Hey Bill,
Well, the sc command line utility comes with Windows XP I consider
because I haven't installed any resource kits or anything else for th
OS. I was just roaming in the Microsoft's Command Line Reference when
came on to this sc command.
Just go to the command prompt and type sc and hit enter. The parameter
list will show up immediately.
About the GUI thing you said, I get the same error. It says Acces
Denied without asking for anything.
I think the GUI and command line versions are the same because the
show exactly the same error message. The command line version jus
provides the GUI functionality in the command prompt.
I still don't know what to do.
president


Bill said:
*You don't need to do this at a command prompt.

You can use services.msc, and action, connect to another computer

to do this with a gui.
(whoops--that appears to be new in XP--you can do the same thing wit
the
Computer Management console in 2000--right-click My Computer, choos
manage,
choose action, connect to another computer, expand services and
applications, open Services, etc.

I'm trying to remember where SC comes from--is that a resource ki
tool? I
don't seem to have it handy to try to replicate what you are doing.]


president said:
Hi,
I have two Windows XP Professional systems that are both in a
workgroup. I want to start a service like the messenger service o the
other system and I know that systems Administrator password. When run
this command:
C:\> SC \\IP_ADDRESS START MESSENGER
I get an error like this:
SC OPEN SCMANAGER FAILED 5 : ACCESS DENIED
It doesn't ask me a username or password. Whats the problem ?
-PS: Is there any general way of executing remote commands on a XP
system other than terminal services and remote desktop connectio ?
Something like REXEC in *nix.-
Thanks in advance, president
[/QUOTE]


-
presiden
 
B

Bill Sanderson

OK - I suspect this was a Resource Kit piece in 2k, and became part of the
package in XP.

I'll test it--I'm near certain you have a permissions issue, but let me see
how I do.

What's your environment--workgroup or domain?

president said:
Hey Bill,
Well, the sc command line utility comes with Windows XP I consider,
because I haven't installed any resource kits or anything else for the
OS. I was just roaming in the Microsoft's Command Line Reference when I
came on to this sc command.
Just go to the command prompt and type sc and hit enter. The parameters
list will show up immediately.
About the GUI thing you said, I get the same error. It says Access
Denied without asking for anything.
I think the GUI and command line versions are the same because they
show exactly the same error message. The command line version just
provides the GUI functionality in the command prompt.
I still don't know what to do.
president


Bill said:
*You don't need to do this at a command prompt.

You can use services.msc, and action, connect to another computer

to do this with a gui.
(whoops--that appears to be new in XP--you can do the same thing with
the
Computer Management console in 2000--right-click My Computer, choose
manage,
choose action, connect to another computer, expand services and
applications, open Services, etc.

I'm trying to remember where SC comes from--is that a resource kit
tool? I
don't seem to have it handy to try to replicate what you are doing.]


president said:
Hi,
I have two Windows XP Professional systems that are both in a
workgroup. I want to start a service like the messenger service on the
other system and I know that systems Administrator password. When I run
this command:
C:\> SC \\IP_ADDRESS START MESSENGER
I get an error like this:
SC OPEN SCMANAGER FAILED 5 : ACCESS DENIED
It doesn't ask me a username or password. Whats the problem ?
-PS: Is there any general way of executing remote commands on a XP
system other than terminal services and remote desktop connection ?
Something like REXEC in *nix.-
Thanks in advance, president
------------------------------------------------------------------------
View this thread: http://www.mcse.ms/message462937.html


*
[/QUOTE]
 
B

Bill Sanderson

I won't be able to test this 'til late tonight or tomorrow morning, but I'll
get to it--I'd like to do this on occaison, too!

Bill Sanderson said:
OK - I suspect this was a Resource Kit piece in 2k, and became part of the
package in XP.

I'll test it--I'm near certain you have a permissions issue, but let me
see how I do.

What's your environment--workgroup or domain?

president said:
Hey Bill,
Well, the sc command line utility comes with Windows XP I consider,
because I haven't installed any resource kits or anything else for the
OS. I was just roaming in the Microsoft's Command Line Reference when I
came on to this sc command.
Just go to the command prompt and type sc and hit enter. The parameters
list will show up immediately.
About the GUI thing you said, I get the same error. It says Access
Denied without asking for anything.
I think the GUI and command line versions are the same because they
show exactly the same error message. The command line version just
provides the GUI functionality in the command prompt.
I still don't know what to do.
president


Bill said:
*You don't need to do this at a command prompt.

You can use services.msc, and action, connect to another computer

to do this with a gui.
(whoops--that appears to be new in XP--you can do the same thing with
the
Computer Management console in 2000--right-click My Computer, choose
manage,
choose action, connect to another computer, expand services and
applications, open Services, etc.

I'm trying to remember where SC comes from--is that a resource kit
tool? I
don't seem to have it handy to try to replicate what you are doing.]



Hi,
I have two Windows XP Professional systems that are both in a
workgroup. I want to start a service like the messenger service on
the
other system and I know that systems Administrator password. When I
run
this command:
C:\> SC \\IP_ADDRESS START MESSENGER
I get an error like this:
SC OPEN SCMANAGER FAILED 5 : ACCESS DENIED
It doesn't ask me a username or password. Whats the problem ?
-PS: Is there any general way of executing remote commands on a XP
system other than terminal services and remote desktop connection
?
Something like REXEC in *nix.-
Thanks in advance, president



--
president

------------------------------------------------------------------------


------------------------------------------------------------------------
View this thread: http://www.mcse.ms/message462937.html


*
 
M

Mike

I looked at this briefly. I dont see any options for the user/pass although
you might want to look into wmic if you insist on doing it from a command
line or from a script.

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx



Bill Sanderson said:
I won't be able to test this 'til late tonight or tomorrow morning, but I'll
get to it--I'd like to do this on occaison, too!

Bill Sanderson said:
OK - I suspect this was a Resource Kit piece in 2k, and became part of the
package in XP.

I'll test it--I'm near certain you have a permissions issue, but let me
see how I do.

What's your environment--workgroup or domain?

president said:
Hey Bill,
Well, the sc command line utility comes with Windows XP I consider,
because I haven't installed any resource kits or anything else for the
OS. I was just roaming in the Microsoft's Command Line Reference when I
came on to this sc command.
Just go to the command prompt and type sc and hit enter. The parameters
list will show up immediately.
About the GUI thing you said, I get the same error. It says Access
Denied without asking for anything.
I think the GUI and command line versions are the same because they
show exactly the same error message. The command line version just
provides the GUI functionality in the command prompt.
I still don't know what to do.
president


Bill Sanderson wrote:
*You don't need to do this at a command prompt.

You can use services.msc, and action, connect to another computer

to do this with a gui.
(whoops--that appears to be new in XP--you can do the same thing with
the
Computer Management console in 2000--right-click My Computer, choose
manage,
choose action, connect to another computer, expand services and
applications, open Services, etc.

I'm trying to remember where SC comes from--is that a resource kit
tool? I
don't seem to have it handy to try to replicate what you are doing.]



Hi,
I have two Windows XP Professional systems that are both in a
workgroup. I want to start a service like the messenger service on
the
other system and I know that systems Administrator password. When I
run
this command:
C:\> SC \\IP_ADDRESS START MESSENGER
I get an error like this:
SC OPEN SCMANAGER FAILED 5 : ACCESS DENIED
It doesn't ask me a username or password. Whats the problem ?
-PS: Is there any general way of executing remote commands on a XP
system other than terminal services and remote desktop connection
?
Something like REXEC in *nix.-
Thanks in advance, president



--
president

------------------------------------------------------------------------


------------------------------------------------------------------------
View this thread: http://www.mcse.ms/message462937.html


*
------------------------------------------------------------------------
 
P

president

I don't know what WMIC is, so I will read the article and test it ASAP

Bill, I am in a workgroup environment.
Lets summarize what I have done:
1) sc \\IP_ADD query messenger gives me access denied.
2) The services.msc gives me access denied when I configure it for th
remote IP_ADD system.
3) I used the services from MMC as well (no difference but I wa
despair) and it gave me what number 2 did


-
presiden
 
B

Bill Sanderson

This is working for me:

sc \\prime query <enter>
(all services!) prime is an SBS-2000 server, across a VPN from my home
machine. I'm using administrator credentials--I think both those used to
connect the VPN, and those in use on my home machine (although it is not
joined to the domain.)

sc \\prime query alerter <enter>
sc \\prime stop alerter <enter>
sc \\prime start alerter <enter>

(I couldn't use messenger--some officious admin seems to have set it to
disabled!)

So--your problem is one of credentials. With XP, in a workgroup, I think
you will need all Pro machines, you will need to turn off simple file
sharing, and you will need to have an administrator account on each machine
with a password.

If these are identical, you can use the same credentials on your machine,
and the commands should succeed. If they are different, you'd need the
RUNAS command in addition to SC to make this work.

I haven't actually tested the above advice. I do have a workgroup here at
home, and there is another XP Pro machine, so I could test, but don't have
the time today. I believe you need to turn off simple file sharing to avoid
all network connections authenticating as guest, and that you need a
password on the administrator account because by default network access
requires a password.

http://www.wown.com/j_helmig/wxpsimsh.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top