i am trying to write a script to unlock a computer remotely but i have encountered a major setback.... i can't find a command to unlock even a local computer. the effect i am trying to produce is something along the lines of:
1. notify user of the updates and workstation lock
2. lock computer
3. perform tasks without fear of user interuption
4. unlock computer
this "notice" will run as a sub of a main script that does the actual work.
if anyone knows the command to unlock a system you would be my official hero. also if anyone can let me know how to bypass waiting for a user response on the popup window (without making it run from yet another script) that would rock.
what i'm working off of is:
set WshShell = CreateObject("WScript.Shell")
Set WshShell = WScript.CreateObject("WScript.Shell")
WSHShell.Popup " READ ME! UPDATE NOTICE! " & vbnewline & "" & vbnewline & " Your system is currently being updated in an effort to protect your computer. " & vbnewline & " Do not attempt to use the computer until this process is complete." & vbnewline & " You will be prompted to login as usual once the updates have finished. " & vbnewline & "" & vbnewline & " Thank you for your cooperation. ", 15, "Your system is being locked for updating. "
WshShell.Run("rundll32 user32.dll,LockWorkStation ")
there's an extra 300 available if you can answer both questions