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 Isses

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

Bypassing Novell's Logon GUI

Keywords: 	 bypassing novell's logon gui

Question:

I currently have a Winbatch process that runs great on a Network machine, but I have a problem. I need to reboot the computer, and sign it on with a default user-name & password. I can reboot the machine ok, but when it comes up, a Novell Netware sign-on comes up that needs a user-name and password for the system to come up. Is there a way I could put a script in the system that would make this sign-on possible?

Answer:

Is this a Win9x/ME or WinNT/2K/XP system?

Is it running the Novell Client or Microsoft's Services for NetWare client?

On WinNT/2K/XP, provided that you have one of the newer versions of the Novell Client [v4.7 or newer, I think] installed, there are additional registry entries that you can create when setting up an administrative auto logon such that the NWGINA will automatically logon to both the local workstation and to NDS. You can review the appropriate TIDs that describe this at http://support.novell.com.

On Win9x/ME, there is no real administrative auto logon functionality. Instead, you simply have to run a WinBatch script from the "RunServices" registry key so that your compiled script gets launched at boot time. Then, your script needs to sit around and wait for the logon dialog box to be displayed. At that time your script can take control of the logon dialog box and enter the appropriate data to perform the logon. Your script will need to use the Control Manager extender to do this. I already have a basic script that does this to automate an NT domain logon from a Win9x/ME workstation, but I've never modified it to automate a logon to NDS via the Novell Client. If you are using Win9x/ME and you need a jump start, I'll post the script here for you and you can modify it to suit your needs.

Question (cont'd):

The OS is Windows 95, and we're using the Novell Client version 3.10. I believe I read something about the Run Services in the recent past, but not how to put a command into it. Any assistance you can provide would be greatly appreciated.

Answer:

The "RunServices" key is located at "HKLM\Softare\Microsoft\Windows\CurrentVersion\RunServices", and all you need to do is create a named value under that key [create the key if necessary] and the value of the named value should be the path & name of a program to be launched at system boot time. The named value can include command line parameters, too.

Example:

HKLM\Software\Microsoft\Windows\CurrentVersion\RunServices[AutoLogon] = "MyScript.exe param1 param2 param3"
Please note that if the if "MyScript.exe" is not located in the system search path then you will need to include full path information to locate the program. Also, note that if the path of the program is not in the system search path and the program path contains one or more spaces, then the program path & name will have to be enclosed within double quotes within the named value. From within the REGEDIT.EXE program, this is a no-brainer to do. From within a WinBatch script that is attempting to create this registry value, you need to either use a quoting character for your string other than the double quote character, or, you need to insert a pair of double quotes to represent a single double quote character that is embedded within your string value.

Example:

ValueName = '"C:\Program Files\MyScripts\MyScript.exe" param1 param2 param2'
and
ValueName = """C:\Program Files\MyScripts\MyScript.exe"" param1 param2 param3"
are both equivalent WinBatch statements.
Article ID:   W15215
File Created: 2002:09:05:13:50:38
Last Updated: 2002:09:05:13:50:38