Re: logon script for an examination account

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Thank you both for your suggestions. I will try out the script on Monday.

Re the generic logon. Usually each student has their own user accounts.
This case is a bit different however. The diploma exams are taken by all
grade 12 students in the province on the same day at the same time. They're
standardized tests used as one measure to see how schools are doing. They
also provide students with 50% of their final mark. Anyway, the government
sends out questions booklets to each school. Attached to each booklett is a
label with the student's name and a generated id #. The idea is that the
students put the id# in the Word doc's footer rather then their name. That
prevents the possiblitiy of teacher's who mark the papers (in a big room in
the capital city) knowing anything about whose paper they are marking.

Usually the supervising teacher for the exam has to lead the students
through how to put in the footer and to set up the right font and double
spacing etc and then make sure they're saving it to an appropriate place
where I can easily delete it once all papers have been printed. And three
other teachers walk around making sure the student's aren't making mistakes
while setting this up. So, instead of that, I want a system that creates
the pre formatted document for each user including the footer with the id#.
That's why I want the student to input their id# in the login script. Is it
possible for them to enter their id# so the script can create a folder and
doc for the student named with that id#?

Thanks,
Jeremy



"Richard Mueller" <rlmueller-NOSPAM@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:ewaevIv7GHA.3736@xxxxxxxxxxxxxxxxxxxxxxx
I missed that.

Richard

"jd71" <jdavis71@xxxxxxxxx> wrote in message
news:1160761805.658469.319160@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
That is true, and it is the way that we do things here, but he stated
that they use a generic account for logins. Perhaps he needs a script
to import mass users into AD? 8-)

-Jason

Richard Mueller wrote:
Hi,

If the student is logging in, you should not have to prompt for the user
name. You can get this from the wshNetwork object. In brief:

Set Network = CreateObject("Wscript.Network")
user = Network.UserName

This avoids typos and students playing games by trying to assume someone
else's identity.

--
Richard
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net

"jd71" <jdavis71@xxxxxxxxx> wrote in message
news:1160750685.382220.95640@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

I missed the part about copying an existing Microsoft Word document.
Use this:

'*********************************************************************************
On Error Resume Next

'*** Declarations ***
Dim Shell,FSO,Network,word

'*** Objects ***
Set Network = WScript.CreateObject("WScript.Network")
Set Shell = WScript.CreateObject("WScript.Shell")
Set FSO = CreateObject("Scripting.FileSystemObject")

serverpath = "\\server\diplomas$\"

user = inputbox("Please enter your USER ID:")
fso.createfolder(serverpath & user)


fso.copyfile serverpath & "diplomas.doc",serverpath & user & "\" &
user
& ".doc"

Set Word = CreateObject ("Word.Application")
Word.Visible = TRUE
Word.Documents.Open(serverpath & user & "\" & user & ".doc")
wscript.quit
'*********************************************************************************

-Jason






.



Relevant Pages

  • Re: logon script for an examination account
    ... Oh, I should point out, Jason, I see that your script copies the ... pre-formatted word doc to the folder that's created. ... They also provide students with 50% of their final mark. ... The idea is that the students put the id# in the Word doc's footer rather ...
    (microsoft.public.scripting.vbscript)
  • Need help with ASP script.
    ... the beginning process of having a webpage that will direct students to ... I had downloaded a free ASP script which basically uses a ... 'Check the database to see if user exsits and read in there password ... 'Database connection info and driver ...
    (microsoft.public.inetserver.asp.general)
  • Re: setrlimit() extension suggestion
    ... but there are hundreds of students using ... to kill them off based on wallclock time. ... and they can be killed off by the script in a somewhat reliable way. ... Note that such a script would have a very slight exposure to killing the wrong ...
    (comp.os.linux.development.system)
  • Re: teaching with matlab
    ... in case some of your students ... a note on how to use the debugger. ... > Right now I am planning on making a script and then stepping through ... The students can try any command they like between ...
    (comp.soft-sys.matlab)
  • Re: Programming the User-Account_Property using C#
    ... I am writing a program in C# VS 2005 to create user accounts for our students in Active Directory. ... I am trying not to use ADSI in my new program, ...
    (microsoft.public.dotnet.languages.csharp)