Skip navigation

Rem - 01 Sep 1999

Do you have a scripting-related question or problem? You can send your question or problem to [email protected].

As a systems administrator, I've had little programming experience and want to attend an introductory scripting class. Do you know of any Microsoft Certified Technical Education Center (CTEC) scripting classes for Windows Scripting Host (WSH)?

I'm not aware of any CTEC classes on WSH. However, Microsoft has developed the free self-paced course "Essentials of Microsoft Visual Basic Scripting Edition 3.0 for Web Site Development" that is available from Microsoft's Training and Certification Web site. Despite the name, the self-paced tutorial includes a module and accompanying labs on WSH. You can download the course in a self-extracting .zip file (1080_web.exe) from http://www.microsoft.com/train_cert/courses/enm1080a.htm.

You might also want to check out Dino Esposito's book Windows Script Host Programmer's Reference (1999, Wrox Press, http://www.wrox.com). Finally, tell your local CTEC or another training provider that you need a WSH class. As this need continues to grow, a training provider will rise to the occasion and provide appropriate training.

How can I use WSH to write a logon script that links specific drives according to group membership?

You can use Active Directory Service Interfaces (ADSI) to incorporate this functionality into WSH-based logon scripts. ADSI provides COM objects and interfaces that you can use to test for group membership. For more information about using ADSI to test for group membership and list the members of a group, see Alistair G. Lowe-Norris, "An ADSI Primer, Part 2: Manipulating Active Directory Objects," February 1999. After you understand how to test a user account for membership in a group, you can easily perform additional actions such as using basic decision statements (e.g., If...Then...Else, Select Case) to map specific network shares. For information about using VBScript statements see Dino Esposito, "Understanding VBScript: Statements," page 5.

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish