Lock System Using VB Script

Lock System Using VB Script

Added by Sixth Sense updated on Monday, December 11, 2017

Lock Windows Workstation Programmatically :

Here is a small vb-script by which windows can be locked.

on error resume next
Dim objShell
Set objShell = CreateObject("Wscript.Shell")
objShell.Run "rundll32.exe user32.dll, LockWorkStation"
If err.number<>0 then
WScript.Echo ("Script Check Failed") 
Wscript.Quit 1001
Else 
Wscript.Quit 0
End If				
				

Here is Result.

xp lock

lock windows 7

About

27 Tutorials
24 Snippets
6 Products

More

Contact Us

Contact us

Stay Connected