21 Comments
- Radimus, on 10/12/2007, -0/+11with an exe and a script you can do almost anything... most admins do similar all the time.
(admins that are admins, not paper MCSEs)
No news here, just seems like magic to the illiterate - .Steven, on 10/12/2007, -1/+11or just psexec \\* net stop [service]
(http://www.sysinternals.com/Utilities/PsTools.html) - inactive, on 10/12/2007, -2/+9lmao
- OnoTadaki, on 10/12/2007, -0/+5This is great and all, but PSTools has been out for years and has 12x the features... http://www.sysinternals.com/Utilities/PsTools.html
You can even view/start/stop services remotely. - pcgeek101, on 10/12/2007, -0/+4Yeah, this is pretty simple .. why would you use that utility too? You should be using the Start and/or Stop method in the Win32_Service class in the root\cimv2 WMI namespace.
http://msdn.microsoft.com/library/en-us/wmisdk/wmi/win32_service.asp?frame=true
set service = GetObject("winmgmts:\\remotecomputer01root\cimv2:Win32_Service='Server'")
service.stop
^^^ done - luma, on 10/12/2007, -0/+3First sc.exe comes with XP and 2003 out of the box, no resource kit necessary. Also, the script he made is unecessary - the FOR command can do this as a one liner:
c:>for %v in (server1 server2 server3 server4) do sc %v stop service
or if you have all of your servers in a text file, you could feed the list from a file:
c:>for /F %v in (servers.txt) do sc %v stop service - OnoTadaki, on 10/12/2007, -1/+3You need administrative rights to perform this. So, a network administrator would be able to, but 'some schmo' could not. Not to mention that you also need to physically be located on the network with the person, and any cracker/hacker worth their weight in dog ***** would have known about this when they were 3 years old.
- inactive, on 10/12/2007, -0/+2Indeed. Use Start or Stop in the Win32_Service class (or just use PSTools) and forget this retarded app.
- solarisom, on 10/12/2007, -0/+2Net starts and stops are very helpful when your printer queue hangs up (like when print jobs you've deleted don't go away)!
- jo42, on 10/12/2007, -0/+1shutdown -s -t 0 -m \\remote_machine_name
- mark608, on 10/12/2007, -0/+1Um except their script automatically enumerates all machines on the LAN. Why would I want to type them all out?
- zefiris, on 10/12/2007, -1/+2indeed, but we ain't talkin about *nix here.
- BigJuiceMan, on 10/12/2007, -0/+1Or for those of you with a copy of Windows Resource Kit kicking around there is NETSVC.EXE
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q140378& - inactive, on 10/12/2007, -0/+1@Timmarhy
No-one is going to answer your question since you're such an elitist *****. Go have fun with your non-Windows network and leave the rest of us alone. - BigJuiceMan, on 10/12/2007, -0/+1@ActiveMatx
I just recently had to do this 'cause a vendor's software was using the message queues on one of our DCs. Whenever the DC would be restarted (>1 month) the software's service on the other server would just stop (and auto-recovery options didn't seem to work well). ugh. took forever to nail down what the problem's source was. Of course, after all this pain and suffering, I nailed the vendor's QA dept to wall. - inactive, on 10/12/2007, -1/+1is there no kind of authentication on this? what prevents some schmoo trying off your printer queue internally?
- rgentry, on 10/12/2007, -0/+0The above is true to a point - there are many ways to start and stop services on the domain that you reside on - no news there. What you guys are missing is - that this program was created to start/stop services with authentication. This means that you can execute this program on a computer that is not joined to the domain or is on another domain. sc does not provide a means to authenticate. While I won't be using the program - please stop, look and listen before you trash ,flame, or mame others and their products.
Have fun - ActiveMatx, on 10/12/2007, -1/+1Nice, I knew this feature was possible, just never looked into doing it. DOn't know if I would ever use it though.... since, I keep my services pretty minimal.
- inactive, on 10/12/2007, -1/+1it's a network utility you don't need pyshical access, a remote shell account could execute it that much is clear to me.
does windows have some way of authenticating the user on the issuing account?
forgive me but i've never had to admin a craptastic windows network. this kind of nonsense isn't even an issue for a properly run nix system - geronimo, on 10/12/2007, -5/+4With linux I do:
% cat >doit
my $service= "webserver";
my @machines = ("jiffy","skippy","bobby","judy");
for my $machine (@machines)
{
system("ssh admin@$machine service $service restart");
}
EOF
% perl doit
And it will use a 1028 bit DSA signature, no passwords needed. Encryption will be 3DES, Blowfish, AES, tripe DES, etc. - dtalton, on 10/12/2007, -13/+10And in further news, there is a sweet button on the front of your computer box that will turn it off!!! Seriously, is this news? I say it's not. net stop "lame posts"


What is Digg?
Digg is coming to a city (and computer) near you! Check out all the details on our