150 likes | 304 Views
Network Admin Toolkit aka Scripting Basics. Bloomington Tech Feast. Terry Sullivan, Technology Director tsulliva@comwares.net Shiloh CUSD #1 & Edgar County CUSD#6. Introduction. What is a script Where can scripts be applied Scripts and Active Directory Scripting tools Scripting Samples
E N D
Network Admin Toolkit aka Scripting Basics Bloomington Tech Feast Terry Sullivan, Technology Director tsulliva@comwares.netShiloh CUSD #1 & Edgar County CUSD#6
Introduction • What is a script • Where can scripts be applied • Scripts and Active Directory • Scripting tools • Scripting Samples • Batch files • WSH (vbs) files • Wscript and CScript • Scripting Resources
What is a Script • Series of commands to be executed • Can be sequential or include decision logic • Commands written instruction in special language VBScript, Jscript, other, … • Windows Scripting Host - WSH is the part that reads and carries out the instructions in the script • Included in Windows since Win98 – IE 4.0 • WSCRIPT and CSCRIPT - Executables that actually interpret the “.vbs” or “.js” script files
Working from a Command Line • http://www.ss64.com/
Jobs that Script Do? • Map network drives • Connect to printers • Modify environment variables e.g. Temp • Run basic functions such as CreateObject and GetObject • Print a message to a Message Box on screen • Modify keys and values in the registry • Anything which can be done manually
Complete set of commandsOrCall other programs and utilities • & Other Windows 2003 Resource Kit Tools Sample Utility WinExit.SCR
Other Tools - SysInternals • www.sysinternals.com
Types of Scripts • Batch or Command Files • WSH or VB script • Wscript • Cscript • Java • REXX • Perl
Tools • Script-o-Matic 2.0 • Script Wizard • WMI • Windows Management Information • ADSI • Active Directory Service Interfaces • Tweak-o-matic • Log Parser • Find Samples!! • http://www.microsoft.com/technet/scriptcenter/createit.mspx
Samples & Examples • Simple to Complex • Classic Batch Files • WSH (vbs files) • Calling other applications • Login Script Resources • Other types of scripting • PERL, JAVA or Jscript, etc.