Archived from groups: microsoft.public.win2000.general (More info?)
"Sri" <Sri@discussions.microsoft.com> wrote in message
news:319FAC1E-08A8-45EE-8424-C05D0ACC4F86@microsoft.com...
> Dear Techies,
>
> Can anyone tell me is there any option in W2K to prompt the user with
> a set
> of questions and allow him to login only if he/she answers that?
>
> Any help/pointers in this regard is appreciated.
>
> Thanks in advance
> Sri
no built in option but something could be placed in the startup folder
or a logon script I guess.
Archived from groups: microsoft.public.win2000.general (More info?)
What do you want to happen if they do not answer the questions correctly?
Will the answers need to be masked?
"Sri" wrote:
> Dear Techies,
>
> Can anyone tell me is there any option in W2K to prompt the user with a set
> of questions and allow him to login only if he/she answers that?
>
> Any help/pointers in this regard is appreciated.
>
> Thanks in advance
> Sri
Archived from groups: microsoft.public.win2000.general (More info?)
here is a batch file that you can use. keep in mind that this is all in plain
text and that any answers to the questions can be found by just editing the
batch file. just place this batch file in a directory of your choice. its
setup right now to work from c:\ just change this registry key to
start[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Winlogon] Shell=explorer.exe
make the shell="c:\questions.bat"
-----start of batch file-----
@echo off
:incorrect
cls
for /l %%i in (1,1,11) do echo.
:: ********** ASK THE USER THE FIRST QUESTION **********
set /p answer=What is your first name?
:: ********** COMPARES THEIR ANSWER TO THE CORRECT ANSWER **********
if "%answer%" == "first name" goto correct
if not "%answer%" == "first name" goto incorrect
:correct
cls
for /l %%i in (1,1,11) do echo.
:: ********** ASK THE USER THE SECOND QUESTION **********
set /p answer1=What is your last name?
:: ********** COMPARES THEIR ANSWER TO THE CORRECT ANSWER **********
if "%answer1%" == "last name" goto correct1
if not "%answer1%" == "last name" goto correct
:correct1
:: ********** CHECKS TO SEE IF THE TEMP .REG FILE WE ARE GOING TO CREATE
EXIST **********
if exist "%temp%.\shell.reg" del /f /q "%temp%.\shell.reg"
:: ********** CREATES A TEMP .REG FILE - THIS .REG FILE SETS THE SHELL
BACK TO EXPLORER.EXE **********
> "%temp%.\shell.reg" echo REGEDIT4
>>"%temp%.\shell.reg" echo.
>>"%temp%.\shell.reg" echo
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
>>"%temp%.\shell.reg" echo "Shell"="explorer.exe"
:: ********** IMPORTS THE .REG FILE TO THE REGISTRY **********
regedit /s "%temp%.\shell.reg"
:: ********** DELETES THE TEMP .REG FILE **********
del /f /q "%temp%.\shell.reg"
:: ********** CHECKS TO SEE IF THE TEMP .REG FILE WE ARE GOING TO CREATE
EXIST **********
if exist "%temp%.\shell_.reg" del /f /q "%temp%.\shell_.reg"
:: ********** CREATES A TEMP .REG FILE - THIS .REG FILE SETS THE SHELL
BACK TO QUESTION.BAT **********
> "%temp%.\shell_.reg" echo REGEDIT4
>>"%temp%.\shell_.reg" echo.
>>"%temp%.\shell_.reg" echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Winlogon]
>>"%temp%.\shell_.reg" echo "Shell"="c:\\questions.bat"
:: ********** IMPORTS THE .REG FILE TO THE REGISTRY **********
regedit /s "%temp%.\shell_.reg"
:: ********** DELETES THE TEMP .REG FILE **********
del /f /q "%temp%.\shell_.reg"
-----end of batch file-----
Lines that don't begin with two spaces have wrapped accidentally
"Sri" wrote:
> Dear Techies,
>
> Can anyone tell me is there any option in W2K to prompt the user with a set
> of questions and allow him to login only if he/she answers that?
>
> Any help/pointers in this regard is appreciated.
>
> Thanks in advance
> Sri
You are about to answer a thread that has been inactive for more than 6 months. If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.