Merry Christmas

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to wish everybody a Merry Christmas and a Happy New Year and
thatnks for all the help you have given me. But please please can you help me
with this one. On page 4 it was on last time I looked. Its on of the first
with the date 14/12/05 and is named Limit User because the advice I have been
given doesnt want to work.

Thanks
Alastair Gray
 
OK, but that this is a Very powerful command to run (shutdown) and can lead
to unexpected data lose for the user.
Place this in the startup folder, or assign it in GPEDIT.MSC as a logon
script for the user. (it might be as long as five minutes after the set
logoff time before it happens)

--force_logoff_timer.vbs--
set shell=createobject("wscript.shell")
off_Time = TimeValue("10:00:00 PM")
while off_Time > Time
wscript.sleep "300000" 'sleep for five minutes
wend
shell.popup "Shutting down system", 10
Set oSer =
GetObject("winmgmts:{impersonationLevel=impersonate,(Shutdown)}\\.\root\cimv
2")
Set colOS = oSer.ExecQuery("Select * from Win32_OperatingSystem")
For Each oS in colOS
oS.Win32Shutdown(5)
Next
--cut here--
 
What is the startup folder and where can i find it. How do you assign it
GPEDIT.MSC. I've never used a .MSC folder before. Please guide me step by
step. Does it end Cut here, so that includes the line saying next?

Please help
Thanks
Alastair Gray
 
The text of the file is between the two dotted lines, the name and cut here.
You save this executables file by some name in Notepad. Something the kids
will want to keep running, like "Faster_Game.VBS" or "Music_Play.VBS". You
put it in some save folder, then drag and drop it on their ../Documents and
Settings/<their user name>/start menu/Programs/StartUp folder. This makes
the file run on startup for that "their user name" user.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Happy Christmas 4
Merry Christmas Everyone! 8
Merry Christmas All Of PC Review. 7
Merry Christmas! 8
Merry Christmas Everyone 12
Merry Christmas 4
HAPPY CHRISTMAS Everyone. 9
Merry Christmas! 3

Back
Top