Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

Recommended Posts

Posted

Hi,

 

We use Microsoft Deployment Toolkit to install our machines.

 

One problem we have is that the ztiwindowsupdate.wsf file doesnt lock the screen when its installing updates leaving it open and logged on as administrator.

 

Does anyone know of a piece of code that i can include to lock the computer?

 

Many thanks.

Posted

Found the answer.

 

DIM objShell

Set objShell = CreateObject("Wscript.Shell")

objShell.Run "%windir%\System32\rundll32.exe user32.dll,LockWorkStation"

 

Has to be put with all the other dim in the the main content part.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...