Advanced Scripting For Windows System Administrators

4 Day Course
Hands On
Official Microsoft Curriculum
Code QAWSCRAV-1

This course has been retired. Please view currently available Microsoft Visual Studio Training Courses.

Modules

Collapse all

Introduction to WMI (7 topics)

  • What is WMI?
  • Benefits of WMI
  • Common Information Model
  • Consumers and providers
  • Managed Object Format files
  • Windows management service
  • Overview of the WMI Software Development Kit

Retrieving WMI data (11 topics)

  • Connecting to WMI
  • WMI management interface
  • WMI scripting API
  • WBEM scripting environment
  • WinMgmts moniker
  • SwbemLocator and SwbemServices objects
  • WMI object paths
  • WMI Query Language
  • The WMI DateTime format
  • Managing disk drives
  • Getting BIOS information

Configuration with WMI (10 topics)

  • The WMI cache
  • Calling WMI object methods
  • Return values
  • Associator objects
  • Managing event logs
  • Creating shares
  • Accessing network information
  • Changing IP settings
  • Launching and terminating processes.
  • Remote WMI

How to access WMI on remote systems (9 topics)

  • Using privileges in scripts
  • WMI Authentication Levels
  • WMI Authentication Levels
  • Handling network errors
  • Remote system shutdown/reboot
  • Delegation of user privileges
  • Backing up eventlogs
  • Installing software
  • A network discovery script.

Monitoring with WMI (5 topics)

  • Using WMI to monitor for events
  • Monitoring multiple systems with asynchronous scripts
  • Permanent event subscriptions
  • Running scripts as the result of events
  • Sending emails on events.

Scripting the Registry with WMI (5 topics)

  • When to use the StdReg provider
  • Managing large binary registry values
  • Managing REGMULTISZ registry values
  • Enumerating registry keys and values
  • Monitoring the registry.

Accessing AD objects wih ADSI (2 topics)

  • Using ADSI to connect to AD and to the local SAM accounts database
  • Understanding LDAP paths and the RootDSE object.

Creating objects in AD (3 topics)

  • Creating users groups computers and OUs Managing the local ADSI cache
  • Mandatory properties.
  • Accessing and Modifying Object Properties

Coping with different Active Directory data types (2 topics)

  • Efficient manipulation of property updates Changing and setting passwords
  • Discovering last logon time Unlocking/disabling/enabling user accounts.

Searching AD (2 topics)

  • LDAP and SQL search syntax
  • Searching for particular users/groups/computers Searching for disabled/locked out accounts Searching for dormant accounts.

Security (3 topics)

  • Scripting file system and AD permissions
  • Encoding scripts
  • Signing scripts and controlling which scripts will run.

Prerequisites

The course is written for administrators/IT professionals who already have some knowledge and experience of scripting the Windows environment, and would like to explore ways in which they can automate otherwise repetitive tasks. The use of WMI will allow the administrator to manage and configure multiple remote systems simultaneously. The WMI event model will allow server administrators to automatically react to server events, as and when they happen. It will also investigate the automation of AD management processes through the use of ADSI, enabling the administrator to build and populate AD structures through script. Previous VBScript experience is essential. This is a fast paced course tackling advanced scripting subjects. It is also assumed that the delegate understands the terminology of Active Directory, so they can script changes to the AD database.

Course PDF

Print

Sections