#121403 - 2004-06-17 08:46 AM
Re: Q - How to create a service with KiXtart?
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
REMOTEXEC.EXE from the Resource Kit should cover what you need. If you want to create your own service, you may also need - SRVANY.EXE, and INSTSRV.EXE. Now, for the code. 
Kent
|
|
Top
|
|
|
|
#121406 - 2004-06-17 09:05 AM
Re: Q - How to create a service with KiXtart?
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Lonk,
He did say remotely install, right?
Kent
|
|
Top
|
|
|
|
#121413 - 2004-06-17 03:13 PM
Re: Q - How to create a service with KiXtart?
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
One limitation I can see with both service as well as tasks. If you use a domain account.. If the account password changes, you have to change the password in the service or in the task too..
Kent
|
|
Top
|
|
|
|
#121414 - 2004-06-19 09:08 AM
Re: Q - How to create a service with KiXtart?
|
ChristopheM
Hey THIS is FUN
   
Registered: 2002-05-13
Posts: 311
Loc: STRASBOURG, France
|
with sc from the resource kit, you can do what you want with services (create, modify, delete, stop, start, query).
there is also FileNotify which is certainly more optimized that a kix script as a service : - this tool is provided to run as a service (filenotify -install)
- configuration is in a .txt file (in the program directory)
- you decide what object you scan (directory, file), what event perform an action (create, delete, modify, rename, change attribute, change security) and what action to do (define the commandline to execute so you can start a kix script)
- the service reacts when the event occurs. There is no polling.
if your script may access to network resource, you should change account and password of the service because by default, it runs with the local system account.
so, if files are available on the remote computer, you can (for example) start a job with psexec that execute : filenotify -install net start filenotify
when you want to change the configuration, execute remotely a script that stops the service, copy a new version of the config file filenotify.txt and restarts the service.
_________________________
Christophe
|
|
Top
|
|
|
|
#121416 - 2004-07-13 02:31 PM
Re: Q - How to create a service with KiXtart?
|
Rory Daniels
Getting the hang of it
Registered: 2003-02-25
Posts: 64
Loc: Bristol, UK
|
You can use my WMIChangeService() Function just posted on UDF forum to Change the user and password if required.
Rory
WIMChangeService()
|
|
Top
|
|
|
|
#121417 - 2004-07-13 05:13 PM
Re: Q - How to create a service with KiXtart?
|
Rory Daniels
Getting the hang of it
Registered: 2003-02-25
Posts: 64
Loc: Bristol, UK
|
Just posted a function for creating services using WMI. WMICreateService()
Cheers
Rory
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
1 registered
(Allen)
and 1198 anonymous users online.
|
|
|