dany2010 Posted March 19, 2013 Posted March 19, 2013 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.
dany2010 Posted March 19, 2013 Author Posted March 19, 2013 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now