Hi Steve, I like the last script
Code:
Option Explicit
Dim strHost
strHost = "10.64.65.1"
PingForever strHost
Sub PingForever(strHost)
Dim Shell, strCommand, ReturnCode
Set Shell = CreateObject("wscript.shell")
strCommand = "ping -n 1 -w 300 " & strHost
While(True)
ReturnCode = Shell.Run(strCommand, 0, True)
If ReturnCode = 0 Then
Else
Shell.Run "rundll32 user32.dll,LockWorkStation"
Dim objWMIService, objProcess, colProcess
Dim strComputer, strProcessKill
strComputer = "."
strProcessKill = "'iexplore.exe'"
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
Set colProcess = objWMIService.ExecQuery _
("Select * from Win32_Process Where Name = " & strProcessKill )
For Each objProcess in colProcess
objProcess.Terminate()
Next
End If
Wscript.Sleep 5000
Wend
End Sub can it be tweeked to the do the following as locking student accounts dosent is disabled for students.
Can it show an image that covers the screen bit like the lockout screen that they get when the teacher locks their computer? when they reconnect it removes the lockout screen.