Poledit.exe and winnt.adm are available
without the NT Resource Kit, and the Policy Editor facilities now
allow a policy to be defined with a Custom Shell thus allowing
different login IDs to start up with different shells.
The same warnings given in Q1898 apply
about allowing access to other programs from Citect, however, as a
last resort, a reset will allow login to a user which starts up in
Windows and not Citect.
Procedure
-
Copy poledit.exe from the \sp3\i386
directory to the \winnt directory.
-
Copy winnt.adm from the \sp3\i386
directory to the \winnt\inf directory.
-
Right mouse click on the
\winnt\system32\repl\import\scripts directory and select the
"Shared As" radio button. Change the share name to "Netlogon"
(without the quotes). Select the Permissions button and change the
access of "Everyone" from "Full Control" to "Read" and add the
Administrators group with an access of "Full Control".
-
From the User Manager, create a user
that will be a member of the user group, i.e., operator.
-
Run the Policy Editor. Select
"Policy Template" from the "Options" menu and "Add" template
c:\winnt\inf\winnt.adm.
-
Create a new policy. From the Edit
Menu add a new user and browse to select the user created in step 4
above (operator).
-
Double click on the "Operator" icon
to open up its properties.
-
Open the "Windows NT Shell" branch
and then the "Custom user interface" sub-branch to show "Custom
shell".
-
Check the "Custom shell" box and
enter "c:\citect\bin\citect32.exe" as the Shell name under
"Settings for Custom shell".
-
Save the policy file as NTConfig.pol
to the \winnt\system32\repl\import\scripts directory.
-
If a new user was added, logout as
administrator and login as the new user so that NT can create the
profile directory for the new user. Re-login as an administrator to
continue.
-
To prevent the operator from
accessing the Task Manager via Ctrl-Alt-Delete, run the policy
editor and open the NTConfig.pol file.
-
Double click on the "Operator" icon
to open up its properties and the option to disable Task Manager is
available under "Windows NT System".
-
Re-login as operator and you will
automatically start up in Citect Runtime. No Windows key
combinations except Ctrl-Alt-Delete available, and Task Manager is
disabled.
Bypassing the Windows NT logon screen
While logged in as administrator, run the Registry Editor
regedt32.exe.
Automatic logon can be set it the registry at:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Winlogon
Setting the AutoAdminLogon key to 1 will automatically logon the
user shown in key DefaultUserName, using the password shown in key
DefaultPassword. (NB the AutoAdminLogon will automatically be reset
to 0 if there is no user password.)
WARNING: Ordinary users do not normally have access to edit
these keys. If auto-logon is set and the DefaultUserName changed to
a normal user (e.g. "operator" in the shell example above) then no
other login will be accessible.
To avoid this, while logged in as administrator, run
regedt32.exe:
-
Go to the ...\Winlogon keys as
above.
-
Highlight "Winlogon" and select
"Permissions" from the "Security" menu.
-
Double click on "Users" and check
the "Set Value" box.
-
Select "OK". "Users" should now be
shown with "Special Access".
Test the security permissions change by re-logging in as an
ordinary user, running regedt32.exe and setting the AutoAdminLogon
key to 0. If no warning message is shown then the permission is
granted.
|