Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2101
  • Last Modified:

a script to unlock a computer remotely

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
0
3v1lj1m
Asked:
3v1lj1m
1 Solution
 
nagravesCommented:
Here is something in VB6:

http://www.vb-helper.com/howto_lock_computer_trap_mouse.html

It seems to keep users from doing anything outside of the form. So have the for pop up with nothing to do in it, run your update script, when script is done have it close form. Hope it helps
0
 
3v1lj1mAuthor Commented:
the main problem with that is that the script has to validate to the server and therefore has the username and password which, needless to say, we don't need the end user seeing.  that's why i want to use the lock function, the only problem being that we have no way to unlock via the script.
0
 
zonaltechCommented:
Are you asking to Log-In in an automated fashion? To my knowledge you can't "un-lock" a locked workstation.  Once you lock a workstation, the User/Pass must be re-entered via Control-Alt-Delete for security purposes.
0
 
3v1lj1mAuthor Commented:
looks like i'm out of luck on unlocking the workstation. thanx for the backup info on the links mr Dan.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now