#134463 - 2005-02-24 01:01 PM
Run .bat file as local service?
|
Friz
Lurker
Registered: 2005-02-24
Posts: 3
|
The organisation I'm currently working for (doing an XP rollout) has Kixtart running several .bat files when a user logs in. Of the many functions these file perform, several of them need to write files to the C:\Windows\System32 directory. Currently the .bat files are being run as the local user which means the local user must have write access to the above mentioned directory. Since I'm not all that keen on continuing to let them have that kind of access, is there a way that we can modify the running of the .bat to use a local system account to run the .bat. Or is using the admin account and password (which I'd rather not have in the script) the only way to go?
|
Top
|
|
|
|
#134465 - 2005-02-24 01:18 PM
Re: Run .bat file as local service?
|
Friz
Lurker
Registered: 2005-02-24
Posts: 3
|
That was my first question....
This place has multiple in-house developed apps. Some brainbox decided that it would be easiest if the update files were run every time a user logged on. The .bat file does a bunch of .dll updates and similar functions. Now it comes down to:
A. Changing the code for 50+ applications
B. Having the sorry assed techie contractor coming up with a workaround.
Three guesses as to which option they picked...
Edited by Friz (2005-02-24 01:19 PM)
|
Top
|
|
|
|
#134470 - 2005-02-25 03:07 PM
Re: Run .bat file as local service?
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
One other option which I have used is to use the SRVANY.EXE/INSTSRV.EXE from the Resouce Kit. One downfall to this is if you use your password and is expires every xx days, you have to change the password to the service as well. Of course, if you do the same thing with a Scheduled Task, this would also be the same..
Thanks,
Kent
|
Top
|
|
|
|
#134472 - 2005-02-28 09:22 AM
Re: Run .bat file as local service?
|
Friz
Lurker
Registered: 2005-02-24
Posts: 3
|
OK. A few different options. Luckily, I've move that part to "Phase two" of the roll-out so I'll have time to test each of these options...
Thanks.
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(Allen)
and 466 anonymous users online.
|
|
|