Solved

Removing Services from command prompt

Posted on 2000-03-07
15
239 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
  • 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
 
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
Don't lose your head updating email signatures!

Do your end users still have the wrong email signature? Do email signature updates bore you or fill you with a sense of dread? You can make this a whole lot easier on yourself by trusting an Exclaimer email signature management solution. Over 50 million users do...so should you!

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup". After a while, you have entered a loop for Auto repair which does not fix anything and you will be in a  panic as all your work w…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now