Re: logon script for an examination account
- From: "ComputerTeacher" <computerteacher-nospame@xxxxxxxxxxxx>
- Date: Sat, 14 Oct 2006 01:28:35 GMT
Oh, I should point out, Jason, I see that your script copies the
pre-formatted word doc to the folder that's created. Do you know of any
vbscript trick that will insert the id# into the footer?
"ComputerTeacher" <computerteacher-nospame@xxxxxxxxxxxx> wrote in message
news:pZWXg.140538$R63.99907@xxxxxxxxxxxx
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
.
- References:
- logon script for an examination account
- From: ComputerTeacher
- Re: logon script for an examination account
- From: ComputerTeacher
- Re: logon script for an examination account
- From: Trevor L.
- Re: logon script for an examination account
- From: jd71
- Re: logon script for an examination account
- From: jd71
- Re: logon script for an examination account
- From: Richard Mueller
- Re: logon script for an examination account
- From: jd71
- Re: logon script for an examination account
- From: Richard Mueller
- Re: logon script for an examination account
- From: ComputerTeacher
- logon script for an examination account
- Prev by Date: Re: logon script for an examination account
- Next by Date: Re: logon script for an examination account
- Previous by thread: Re: logon script for an examination account
- Next by thread: Re: logon script for an examination account
- Index(es):
Relevant Pages
|
Loading