WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Logon Issues

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

How to Automagically Log onto Win98

Keywords: Automatically Log Logon Win98

  1. Set password in script below
  2. Set logon window title in script below
  3. Note that logon after reboot and logon after logoff have different titles. Make sure you choose the correct one
  4. Run script as a normal logged on user to have it make proper registry entries
  5. Reboot to test.
Note also:
This script is designed for WBT files, not compiled exe's Unregistered versions of WinBatch may popup the purchase solicitation screens, so it must be attended for testing
if param0==0
   ; User is running WBT file.  Set up machine
   key="Software\Microsoft\Windows\CurrentVersion\RunServices[foofoo]"
   moi=IntControl(1004,0,0,0,0)
   wbexe=WinExeName("")
   data='"%wbexe%" "%moi%" foofoo'
   RegSetValue(@REGMACHINE,key,data)
   Message("Registry","Initialized")
   exit
endif

password="abracadabra"             ;;;;;; Set password for account

IntControl(1001,1,0,0,0)
title="Welcome to Windows"   ;;;;; Set title of Win95 logon window
WinWaitExist(title,-1)
SendKeysTo(title,password)
SendKey("~")

Another Question:

I'm trying to use the same trick that works under windows NT to in order make my Winbatch to automatically logon under Windows 95 and it seem to not work...

Answer:

Win9x/WinME does not have a built-in automatic administrative logon feature. You have to roll your own...

What follows is a script I wrote to do exactly that:

AutoLogon(1).zip

Article ID:   W14634
Filename:   Automagically Log onto Win98.txt
File Created: 2017:08:29:11:51:02
Last Updated: 2017:08:29:11:51:02