Skip to Content
Microsoft® Windows® Scripting Self-Paced Learning Guide
book

Microsoft® Windows® Scripting Self-Paced Learning Guide

by Ed Wilson
April 2004
Beginner
416 pages
11h 3m
English
Microsoft Press
Content preview from Microsoft® Windows® Scripting Self-Paced Learning Guide

On Your Own: Lab 28 Using WMI to Assign Network Settings

In this lab, you will practice using WMI to set various networking configuration properties. The result of this will become the Worker information section for use in Lab 29.

Lab Instructions

  1. Open Notepad.exe.

  2. Open the EnableDHCP.vbs script contained in lab folder 28 on the companion CD.

  3. On the first line, add the Option Explicit command.

  4. Change the variable strComputer to Target everywhere it is mentioned in the script. (The Find and Replace feature of Notepad is a good tool to use when renaming variables.)

  5. Change the variable objWMIService to oWMIService everywhere it is mentioned in the script.

  6. Change the variable objNetAdapter to oNetAdapter everywhere it is mentioned in the script.

  7. Declare all ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft® Windows® 2000 Scripting Guide

Microsoft® Windows® 2000 Scripting Guide

Microsoft Corporation
Professional C# 5.0 and .NET 4.5.1

Professional C# 5.0 and .NET 4.5.1

Christian Nagel, Jay Glynn, Morgan Skinner

Publisher Resources

ISBN: 9780735619814Supplemental ContentCatalog PageErrata