Solved

How to run program from autoexec.bat on NT?

Posted on 2000-04-12
10
387 Views
Last Modified: 2013-12-28
I'm writing a VB6 program for Win95/98/NT (I do not have NT on my system) which will ask for a password during boot.  The object being to prevent NT from continuing to load unless the correct password is entered.

With Win95/98 I simply append my exe to the Autoexec.bat file and everything works fine.

WinNT on the other hand ignores exe files in its Autoexec.bat file.

What I need to know is how to accomplish this on WinNT and if possible a clear code example.

Thanks, QS
0
Comment
Question by:QuantumSingularity
10 Comments
 
LVL 3

Expert Comment

by:simonprr
ID: 2708536
Try using this registry file. Use notepad and save it as autoexec.reg for example:

REGEDIT4

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Winlogon]
"ParseAutoexec"="1"

OR put it in:

c:\winnt\system32\autoexec.nt

Which is similar to autoexec.bat in Win95/98.

OR:

Put it in:

REGEDIT4

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]

Try them and see which one works for you.

SI
--
0
 

Author Comment

by:QuantumSingularity
ID: 2709171
Edited text of question.
0
 
LVL 3

Expert Comment

by:simonprr
ID: 2709600
Well that isn't what you first asked is it!!!
0
Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
LVL 3

Expert Comment

by:simonprr
ID: 2709609
Maybe then this question should be in the programming section....(?)
0
 

Author Comment

by:QuantumSingularity
ID: 2709761
simonprr,

Sorry for being unclear the first time.

As far as section is concerned, your guess is as good as mine.  I'll try programming next if I receive no more responses here.

Thanks for your time, QS
0
 

Accepted Solution

by:
ccheek earned 50 total points
ID: 2710483
Im a bit amussed, NT will NOT allow you in unless you have entered a correct user name/password anyway (client&server)

Or are you wanting to have this program in you autoexec only ???

if so, that would pose a bad security problem...remember the autoexec can be skipped on ALL the systems you listed.

Hmmm...think you should revise the question or drop the project.

0
 
LVL 23

Expert Comment

by:Tim Holman
ID: 2711637
Exactly - NT will ask you for a password anyway, so it's 95/98 you should be concentrating on !
0
 
LVL 3

Expert Comment

by:simonprr
ID: 2711835
You could use the AutoLogon tool which comes with the NT Resource Kit, which would AutoLogon a specified user.
0
 
LVL 5

Expert Comment

by:carmine
ID: 2715177
A possible solution would be to rewrite as a device driver/system service.   Though these can write to the 'blue screen' at boot time, I'm not sure they can accept keyboard input.

This app really isn't required on NT, but if you don't even want the machine to boot, set a BIOS boot-up password.

Mark
0
 

Author Comment

by:QuantumSingularity
ID: 2716270
My question asked how to perform a particular task on an OS with which I was unfamiliar.  Among the acceptable answers was that it was a duplication of functionality already present and so unnecessary.  ccheek pointed this out.  Thanks to all for your time and consideration.  QS
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
HDMI port on laptop not working 26 67
Special copy setup request 8 50
Change size 15 43
How to remove unwanted words? 34 39
Our Group Policy work started with Small Business Server in 2000. Microsoft gave us an excellent OU and GPO model in subsequent SBS editions that utilized WMI filters, OU linking, and VBS scripts. These are some of experiences plus our spending a lo…
If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

809 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