AUTOEXNT is a possible alternative here.
Follows a copy of an older post about a similar subject. 

-----Original Message-----
From:   Bellenger, Bruno (Paris) 
Sent:   Tuesday, August 29, 2000 16:07
To:     '[EMAIL PROTECTED]'
Cc:     'Kristofer Wolff '; 'Garrett Goebel '
Subject:        RE: NT-client AUTOSTART prob


Kristofer, 

Garrett's suggestion can be effective, but if you need to run something
BEFORE anyone logs in, 
then you'll need the AUTOEXNT.EXE utility from the MS NT 4 Resource Kit. 

Using the HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run registry key
will result in 
running the script only at (any) user logon, and again each time someone
logs on to the machine, 
which could be more than you actually want. 

AUTOEXNT instead will run an AUTOEXNT.BAT file on machine startup,
independently of any 
log on. To do this, it creates an AUTOEXNT service with an AUTOMATIC startup
status, which 
on starting itself will execute the Autoexnt.bat located in the
Systemroot/System32 directory,
and will then stop itself. (Manually starting the service again will of
course do the same). 

AUTOEXNT is easy to install and causes no problem. I'm running it
successfully on several machines. 
Occasionally, an administrator not in the know, seeing the service stopped
despite an AUTOMATIC 
startup status will attempt to fire it up again, maybe several times in a
row as it stops after a few 
seconds, causing the script to run again each time. 

Note that the AUTOEXNT.BAT file must be adequately protected against
tampering, as it 
potentially constitutes a security liability. That is, unless you run the
service using a non privileged 
user account, which is indeed an advisable thing to do whenever possible.  

You will find the documentation for it in Word format in the RKTOOLS.HLP
file (in the ResKit).

If you haven't got the ResKit, for an idea of what AUTOEXNT is like, take a
look at the W2K page 
for the tool :

http://support.microsoft.com/support/kb/articles/Q243/4/86.ASP
<http://support.microsoft.com/support/kb/articles/Q243/4/86.ASP>  

Cheers. 


_____________________________________________
Bruno Bellenger
Sr. Network/Systems Administrator 


        -----Original Message-----
        From:   Jon Nelson [SMTP:[EMAIL PROTECTED]]
        Sent:   Tuesday, December 05, 2000 18:01
        To:     ActiveState
        Subject:        New service in NT

        Sorry if this is a little off topic but I'm kind of in a jam.

        I've got a bunch of perl scripts I'm using to remotely administer a
grip
        of NT Server machines.  After a reboot (brought on by a perl script)
I
        need my cron job (perl script) to start up automatically without
having
        to auto-login and put the cron script in the start-up folder of that
        user.  I'd *really* like to create a new NT service for this cron
script
        but I don't know how to do that.  And would it have to be an .exe
rather
        than a .pl if I can even do this?

        THANKS A LOT in advance once again,
        Jon

        _______________________________________________
        Perl-Win32-Users mailing list
        [EMAIL PROTECTED]
        http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

"WorldSecure <exchange.ml.com>" made the following
 annotations on 12/06/00 04:20:53
------------------------------------------------------------------------------
_______________________________________________________
The information in this Internet eMail is confidential and is intended solely for the 
addressee.  Access, copying or re-use of information in it by anyone else is 
unauthorised.  Any views or opinions presented are solely those of the author and do 
not necessarily represent those of Merrill Lynch Investment Mangers or any of its 
affiliates.

If you are not the intended recipient please contact either Merrill Lynch Investment 
Managers, London, +44 (0)20 7743 3000 or Australia on +61 3 9657 3000 as appropriate.

In the United Kingdom, Merrill Lynch Investment Managers is a trading name of Merrill 
Lynch Investment Mangers Ltd (regulated by IMRO), registered office 33 King William 
Street, London EC4R 9AS.  Registered in England No. 2020394.  A subsidiary of Merrill 
Lynch & Co., Inc.
_______________________________________________________

==============================================================================

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

Reply via email to