Re: Locking Computer

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Torgeir Bakken \(MVP\) (Torgeir.Bakken-spam_at_hydro.com)
Date: 08/11/04


Date: Wed, 11 Aug 2004 18:07:36 +0200

tmoney100 wrote:

> Torgeir:
>
> Thanks a mil! Your instructions on a "elegant" desktop shortcut worked
> beautifully. However, I have 3 questions:
>
> 1) why does the shortcut lock (back to the blue XP login screen) look
> differently from the usual screensaver password prompt?

I don't know.

> 2) What is rundll32.exe and how is it the command is able to lock the
> workstation?

rundll32.exe can be used to access some "public" API calls in some
dll files.

> 3) If I have now configured the desktop shortcut, what should I do with the
> VBScript instructions you provided? What is a VBscript? why is it setting
> the command for the current user and all users?

VBScript is an easy-to-use scripting language that enables you to
automate tasks on a Windows system.

If you have created the shortcut manually, you don't need to use the
VBScript. The script would have created two shortcuts for you, one
on the All Users desktop (available for all users of the computer),
and one in the Quick Launch Tray (will be seen only for the user
that runs the script)

Here are some Windows Script Host (WSH)/VBScript Web introductions:

See "VBScript Primer" here:

Scripting Concepts and Technologies for System Administration
http://www.microsoft.com/technet/scriptcenter/scrguide/sas_pt1_overview.asp

WSH
http://cis.stvincent.edu/wsh/index.html

Introduction to Windows Scripting
http://www.winguides.com/article.php?id=2

NT Gains Scripting Muscle
An introduction to Windows Script Host by Bob Wells.
http://www.winnetmag.com/Articles/Index.cfm?ArticleID=3026

Scripting 101
A 4 part series on how to create and structure WSH scripts by Bob Wells
http://www.winnetmag.com/Articles/Index.cfm?ArticleID=5410
http://www.winnetmag.com/Articles/Index.cfm?ArticleID=5505
http://www.winnetmag.com/Articles/Index.cfm?ArticleID=5683
http://www.winnetmag.com/Articles/Index.cfm?ArticleID=7112

VBScript Primer
http://www.microsoft.com/technet/prodtechnol/windows2000serv/maintain/optimize/script/netvbscr.asp

WSH 5.6 documentation (local help file) can be downloaded from here
if you haven't got it already:

http://msdn.microsoft.com/downloads/list/webdev.asp

-- 
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx


Relevant Pages

  • Re: Object Rexx to become Open Source
    ... VBScript is less likely to result in overly ... If you call it a beginner's language because beginner's are able to pick it ... as provided by some other scripting languages, I have found it a significant ... Microsoft even use PERL internally. ...
    (microsoft.public.scripting.wsh)
  • Re: newbie to scripting
    ... VBScript is a scripting language derived from Visual Basic. ... host programs interpret your program (a program with VBScript statements ... I am new to scripting and would like to learn more about WSH. ...
    (microsoft.public.scripting.wsh)
  • Re: Object oriented
    ... VBScript has happened, to a great extent, by accident. ... and suddenly VBS was an interpreted programming ... And if you use script in an HTA file rather ... which has nothing to do with scripting directly. ...
    (microsoft.public.scripting.vbscript)
  • Re: Leaning vbscript
    ... These skills are a small part of the job, ... Conversation: Leaning vbscript ... Is VB scripting into a website normal practice? ...
    (microsoft.public.scripting.vbscript)
  • Re: Copying files based on date during logon
    ... Most of us will have deduced more about your scripting acumen from your ... Batch is more hands-on with the o/s than ... VBScript is the exact opposite - a general purpose programming environment ...
    (microsoft.public.windows.server.scripting)