Solved

a script to unlock a computer remotely

Posted on 2004-08-19
5
2,088 Views
Last Modified: 2012-06-27
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
Comment
Question by:3v1lj1m
5 Comments
 
LVL 4

Expert Comment

by:nagraves
Comment Utility
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
 
LVL 3

Author Comment

by:3v1lj1m
Comment Utility
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
 
LVL 2

Expert Comment

by:zonaltech
Comment Utility
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
 
LVL 49

Accepted Solution

by:
DanRollins earned 500 total points
Comment Utility
0
 
LVL 3

Author Comment

by:3v1lj1m
Comment Utility
looks like i'm out of luck on unlocking the workstation. thanx for the backup info on the links mr Dan.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
EvenOdd challenge 10 81
ClickOnce Install - Shortcut Question 3 57
sumDigits  challenge 7 60
Arduino EDI - Programming language 3 60
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
This is about my first experience with programming Arduino.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now