Hello,

Could someone please send me a script to remove service, here is manuall way
of doing it from cmd:

c:\programs*\network*\common*\frminst.exe /forceuninstall

so basically i would need a script that would call this command

please help

Thanks

Re: Script to remove service by Ray

Ray
Thu Apr 28 15:35:57 CDT 2005

Have you looked into sc.exe, the command line tool for managing services?

C:\Ray\cmd>sc /?
*** Unrecognized Command ***
DESCRIPTION:
SC is a command line program used for communicating with the
NT Service Controller and services.
USAGE:
sc <server> [command] [service name] <option1> <option2>...

The option <server> has the form "\\ServerName"
Further help on commands can be obtained by typing: "sc [command]"
Commands:
query-----------Queries the status for a service, or
enumerates the status for types of services.
queryex---------Queries the extended status for a service, or
enumerates the status for types of services.
start-----------Starts a service.
pause-----------Sends a PAUSE control request to a service.
interrogate-----Sends an INTERROGATE control request to a service.
continue--------Sends a CONTINUE control request to a service.
stop------------Sends a STOP request to a service.
config----------Changes the configuration of a service
(persistant).
description-----Changes the description of a service.
failure---------Changes the actions taken by a service upon
failure.
qc--------------Queries the configuration information for a
service.
qdescription----Queries the description for a service.
qfailure--------Queries the actions taken by a service upon
failure.
delete----------Deletes a service (from the registry).
create----------Creates a service. (adds it to the registry).
control---------Sends a control to a service.
sdshow----------Displays a service's security descriptor.
sdset-----------Sets a service's security descriptor.
GetDisplayName--Gets the DisplayName for a service.
GetKeyName------Gets the ServiceKeyName for a service.
EnumDepend------Enumerates Service Dependencies.

The following commands don't require a service name:
sc <server> <command> <option>
boot------------(ok | bad) Indicates whether the last boot should
be saved as the last-known-good boot configuration
Lock------------Locks the Service Database
QueryLock-------Queries the LockStatus for the SCManager Database
EXAMPLE:
sc start MyService

Ray at work
"Eimis" <dfkj@kj.com> wrote in message
news:OSzNf5CTFHA.2840@TK2MSFTNGP10.phx.gbl...
> Hello,
>
> Could someone please send me a script to remove service, here is manuall
way
> of doing it from cmd:
>
> c:\programs*\network*\common*\frminst.exe /forceuninstall
>
> so basically i would need a script that would call this command
>
> please help
>
> Thanks
>
>



Re: Script to remove service by Eimis

Eimis
Thu Apr 28 15:43:34 CDT 2005

That service does not appear under service group, it is independent service
that runs.
Is there a way to call this in silent mode: batch or vb:

something like this:

With CreateObject("WScript.Shell")
.Run "c:\program*\network*\common*\frminst.exe /forceuninstall " _
End With

this does not work says cannot find the specified.

Thanks for your help in advance

E

"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:uYFmjHDTFHA.3620@TK2MSFTNGP09.phx.gbl...
> Have you looked into sc.exe, the command line tool for managing services?
>
> C:\Ray\cmd>sc /?
> *** Unrecognized Command ***
> DESCRIPTION:
> SC is a command line program used for communicating with the
> NT Service Controller and services.
> USAGE:
> sc <server> [command] [service name] <option1> <option2>...
>
> The option <server> has the form "\\ServerName"
> Further help on commands can be obtained by typing: "sc [command]"
> Commands:
> query-----------Queries the status for a service, or
> enumerates the status for types of services.
> queryex---------Queries the extended status for a service, or
> enumerates the status for types of services.
> start-----------Starts a service.
> pause-----------Sends a PAUSE control request to a service.
> interrogate-----Sends an INTERROGATE control request to a
> service.
> continue--------Sends a CONTINUE control request to a service.
> stop------------Sends a STOP request to a service.
> config----------Changes the configuration of a service
> (persistant).
> description-----Changes the description of a service.
> failure---------Changes the actions taken by a service upon
> failure.
> qc--------------Queries the configuration information for a
> service.
> qdescription----Queries the description for a service.
> qfailure--------Queries the actions taken by a service upon
> failure.
> delete----------Deletes a service (from the registry).
> create----------Creates a service. (adds it to the registry).
> control---------Sends a control to a service.
> sdshow----------Displays a service's security descriptor.
> sdset-----------Sets a service's security descriptor.
> GetDisplayName--Gets the DisplayName for a service.
> GetKeyName------Gets the ServiceKeyName for a service.
> EnumDepend------Enumerates Service Dependencies.
>
> The following commands don't require a service name:
> sc <server> <command> <option>
> boot------------(ok | bad) Indicates whether the last boot should
> be saved as the last-known-good boot
> configuration
> Lock------------Locks the Service Database
> QueryLock-------Queries the LockStatus for the SCManager Database
> EXAMPLE:
> sc start MyService
>
> Ray at work
> "Eimis" <dfkj@kj.com> wrote in message
> news:OSzNf5CTFHA.2840@TK2MSFTNGP10.phx.gbl...
>> Hello,
>>
>> Could someone please send me a script to remove service, here is manuall
> way
>> of doing it from cmd:
>>
>> c:\programs*\network*\common*\frminst.exe /forceuninstall
>>
>> so basically i would need a script that would call this command
>>
>> please help
>>
>> Thanks
>>
>>
>
>



Re: Script to remove service by billytf

billytf
Thu Apr 28 18:58:07 CDT 2005

use...

With CreateObject("WScript.Shell")
.Run "c:\progra~1\networ~1\common~1\frminst.exe /forceuninstall " _
End With

although you need to make sure this dos path is correct

"Eimis" wrote:

> That service does not appear under service group, it is independent service
> that runs.
> Is there a way to call this in silent mode: batch or vb:
>
> something like this:
>
> With CreateObject("WScript.Shell")
> .Run "c:\program*\network*\common*\frminst.exe /forceuninstall " _
> End With
>
> this does not work says cannot find the specified.
>
> Thanks for your help in advance
>
> E
>
> "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
> message news:uYFmjHDTFHA.3620@TK2MSFTNGP09.phx.gbl...
> > Have you looked into sc.exe, the command line tool for managing services?
> >
> > C:\Ray\cmd>sc /?
> > *** Unrecognized Command ***
> > DESCRIPTION:
> > SC is a command line program used for communicating with the
> > NT Service Controller and services.
> > USAGE:
> > sc <server> [command] [service name] <option1> <option2>...
> >
> > The option <server> has the form "\\ServerName"
> > Further help on commands can be obtained by typing: "sc [command]"
> > Commands:
> > query-----------Queries the status for a service, or
> > enumerates the status for types of services.
> > queryex---------Queries the extended status for a service, or
> > enumerates the status for types of services.
> > start-----------Starts a service.
> > pause-----------Sends a PAUSE control request to a service.
> > interrogate-----Sends an INTERROGATE control request to a
> > service.
> > continue--------Sends a CONTINUE control request to a service.
> > stop------------Sends a STOP request to a service.
> > config----------Changes the configuration of a service
> > (persistant).
> > description-----Changes the description of a service.
> > failure---------Changes the actions taken by a service upon
> > failure.
> > qc--------------Queries the configuration information for a
> > service.
> > qdescription----Queries the description for a service.
> > qfailure--------Queries the actions taken by a service upon
> > failure.
> > delete----------Deletes a service (from the registry).
> > create----------Creates a service. (adds it to the registry).
> > control---------Sends a control to a service.
> > sdshow----------Displays a service's security descriptor.
> > sdset-----------Sets a service's security descriptor.
> > GetDisplayName--Gets the DisplayName for a service.
> > GetKeyName------Gets the ServiceKeyName for a service.
> > EnumDepend------Enumerates Service Dependencies.
> >
> > The following commands don't require a service name:
> > sc <server> <command> <option>
> > boot------------(ok | bad) Indicates whether the last boot should
> > be saved as the last-known-good boot
> > configuration
> > Lock------------Locks the Service Database
> > QueryLock-------Queries the LockStatus for the SCManager Database
> > EXAMPLE:
> > sc start MyService
> >
> > Ray at work
> > "Eimis" <dfkj@kj.com> wrote in message
> > news:OSzNf5CTFHA.2840@TK2MSFTNGP10.phx.gbl...
> >> Hello,
> >>
> >> Could someone please send me a script to remove service, here is manuall
> > way
> >> of doing it from cmd:
> >>
> >> c:\programs*\network*\common*\frminst.exe /forceuninstall
> >>
> >> so basically i would need a script that would call this command
> >>
> >> please help
> >>
> >> Thanks
> >>
> >>
> >
> >
>
>
>

Re: Script to remove service by Torgeir

Torgeir
Fri Apr 29 02:43:54 CDT 2005

Eimis wrote:

> That service does not appear under service group, it is independent service
> that runs.
> Is there a way to call this in silent mode: batch or vb:
>
> something like this:
>
> With CreateObject("WScript.Shell")
> .Run "c:\program*\network*\common*\frminst.exe /forceuninstall " _
> End With
Hi,

If you want to use the * method, you will need to use cmd.exe, like this:

.Run "%comspec% /c c:\program*\network*\common*\frminst.exe /forceuninstall"

If you want to hide the command prompt that pops up, and/or you want to
wait for the commend to finish, add ,0 ,True at the end, like this:


... common*\frminst.exe /forceuninstall", 0, True

(0 to hide, True to wait)


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx

Re: Script to remove service by Eimis

Eimis
Fri Apr 29 07:48:21 CDT 2005

Thanks for you help, it worked.


E


"Torgeir Bakken (MVP)" <Torgeir.Bakken-spam@hydro.com> wrote in message
news:uoUHj%23ITFHA.3636@TK2MSFTNGP14.phx.gbl...
> Eimis wrote:
>
>> That service does not appear under service group, it is independent
>> service that runs.
>> Is there a way to call this in silent mode: batch or vb:
>>
>> something like this:
>>
>> With CreateObject("WScript.Shell")
>> .Run "c:\program*\network*\common*\frminst.exe /forceuninstall " _
>> End With
> Hi,
>
> If you want to use the * method, you will need to use cmd.exe, like this:
>
> .Run "%comspec% /c c:\program*\network*\common*\frminst.exe
> /forceuninstall"
>
> If you want to hide the command prompt that pops up, and/or you want to
> wait for the commend to finish, add ,0 ,True at the end, like this:
>
>
> ... common*\frminst.exe /forceuninstall", 0, True
>
> (0 to hide, True to wait)
>
>
> --
> torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
> Administration scripting examples and an ONLINE version of
> the 1328 page Scripting Guide:
> http://www.microsoft.com/technet/scriptcenter/default.mspx