Solved

Removing Services from command prompt

Posted on 2000-03-07
15
278 Views
Last Modified: 2013-12-28
I have a problem, we have a network with servers NT and Novell, each workstation has Novell Client, there are almost 1000 workstation, we need remove the Novell Client and install it Client services for Netware, I tried with SMS Installer but it didn't work, my question are, How I can remove from command prompt a service?, and the next question is, How I can install a service (Client Service for Netware) from command prompt?, the main idea is write it in a program and run from the logon script.

Thanks
0
Comment
Question by:Xces
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 4
  • 2
  • +2
15 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 2594091
Well, most services follow the convention to install or remove themselves when a command line switch as "-install" or "-remove" is given. You might want to try that for your services. It's just

"<service's executalble>.exe -install"

or

"<service's executalble>.exe -remove"

respectively..
0
 
LVL 1

Author Comment

by:Xces
ID: 2594188
Ok, but, What is the executable of Client Services for Netware?
0
 
LVL 1

Author Comment

by:Xces
ID: 2594221
Ok, but, What is the executable of Client Services for Netware?
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
LVL 23

Expert Comment

by:Tim Holman
ID: 2595151
Someone from here mailed me a command that could do this, SERVICE.EXE.
If you post up your email address, I'll send it to you.

SERVICE version 1.09 (Oct 18 1999)
usage: service <computer name> <operation> [ <service name> ]
       [ <command line> ] [ <display name> ] [ /u[ser] user ]
       [ /d[epends] dependencies ].
       operation = inst    to install and start a new service
       operation = instm   to install a new service (starts manually)
       operation = start   to start the service
       operation = stop    to stop the service
       operation = restart to restart the service
       operation = remove  to remove the service
       operation = auto    to configure the service/auto start
       operation = manual  to configure the service/manual start
       operation = disable to configure the service/disabled
       operation = depends to change the service dependencies
       operation = stat    to get the status of an existing service
       operation = listw   to list Win32 services in database
       operation = listd   to list Driver services in database
       operation = list    to list both Win32 & Driver services in database
use - instead of <computer name> to run this command on local computer.
The service name is required for the start, stop and remove options.
The command line is required for install a new service.
If not specified, the display name of the service is the service name.
The /d or /depends option allows to specify the service dependencies.
The /u or /user options allow to specify a identification user name.
In this case, you must enter a valid password when prompted.
0
 

Expert Comment

by:Onnob
ID: 2595375
In the NT resource kit there's a program called xnet which will do the job for you looks the same like Tim's service.exe. However when you have 1000 workstations you will use technet (which contains a copy of NT4 resource kit :))

0
 
LVL 86

Expert Comment

by:jkr
ID: 2595834
>>Ok, but, What is the executable of
>>Client Services for Netware?

You can find this out by taking a look at

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services

and looking for the clear text name of the service. The 'ImagePath' value contains that name...
0
 
LVL 1

Author Comment

by:Xces
ID: 2596153
Tim_Holman, this is my email address, jmsantimi@hotmail.com, thanks a lot
0
 
LVL 1

Author Comment

by:Xces
ID: 2596171
jkr, yes, but the problem is that the service is started with NTws.sys and I cant run the command -remove
0
 
LVL 1

Author Comment

by:Xces
ID: 2600987
I installed Resource Kit and I didn´t find the command that you say, there is a command called Srvinstw.exe but is not that I need.
0
 
LVL 4

Expert Comment

by:wlaarhov
ID: 2624957
Do you need to remove the service from many workstations (remote) or from a single (or few) workstations locally??
0
 
LVL 1

Author Comment

by:Xces
ID: 2625393
Almost 1000 workstations with Intranetware Client and install them Client Services for Netware
0
 
LVL 4

Expert Comment

by:wlaarhov
ID: 2625549
When a user has admin rights on the workstation, you can write a script that uses kill.exe from the NT-reskit to kill all active processes that have to do with your service.
Then just delete the files and corresponding registry key's in HLM\SYSTEM\CurrentControlSet\Services.
But I guess they don't have.
You can approach this in different ways.
If the scheduler service is started you can that take care of it. Just create a script as stated earlier, copy it to the WS during a logonsession and let SMS take care of adding the script using the soon.exe command from the NT reskit.
Or you can use SMS for installing a service on every workstation using srvany and instsrv together with sc.exe that runs under an administrative account, and then let this service run a central managed script (stored on the netlogon of a DC) to perform the deinstallation.
For the installation, the same service can be used, but with a different script.
You could try Wise install to make a package that installes the new client in silent mode.
Wise can install most types of services, as long as no extra protocols are needed.
0
 
LVL 23

Expert Comment

by:Tim Holman
ID: 2627281
Did you get the file OK ?
0
 
LVL 23

Expert Comment

by:Tim Holman
ID: 2879968
Did it work ?
0
 
LVL 23

Accepted Solution

by:
Tim Holman earned 100 total points
ID: 2919399
Hello ?
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article summaries thoughts and ideas from two years of sustained use. It provides good reasoning to make the jump to Windows 10.
Configuring Remote Assistance for use with SCCM
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question