Technical Workshop 1<br />ADVANCED SYSTEMS MANAGEMENT<br />Presented By Arik Fletcher<br />Thursday January 29th 2009<br />
Why Are We Here?<br />These workshops aim to relay a simple mantra:<br />A little TIME, EFFORT, and the right RESOURCES co...
Agenda<br />Technical Workshop 1 - Advanced Network Management<br />Administration Essentials09:45 – 10:30<br />Discussion...
Administration Essentials<br />TASK MANAGEMENT FOR SYSTEMS ENGINEERS<br />Technical Workshop 1 - Advanced Network Manageme...
IT Support:Expectations<br />Interviews with staff at the Computer Depot in the University of Vermont.<br />This video foc...
What Do You Expect From Your Computers?<br />Technical Workshop 1 - Advanced Network Management<br />
Recommended Admin Tasks<br />Daily Checks:<br />Server Services<br />Server Event Logs<br />Server Hardware Status<br />Fi...
Where Does The Day Go?<br />If you feel like this guy...<br />don’t panic, help is at hand!<br />Technical Workshop 1 - Ad...
Automated vs. Manual Tasks<br />Automated Checks:<br />Server Services<br />Server Event Logs<br />Server Hardware Status<...
Follow The A.R.P.C.E.D. Law<br />Technical Workshop 1 - Advanced Network Management<br />
The Truth Is Out There...<br />Search before indulging in a potentially long and complex coding project<br />Someone else ...
All The Time In The World...<br />Scripting is a long-term gain, but a short-term loss...<br />A script can save you time ...
Can You Handle The Truth?<br />Technical Workshop 1 - Advanced Network Management<br />TAKE THE RED PILL:<br />Stay in Won...
Scripting Essentials<br />A LOOK AT WINDOWS SHELL SCRIPTING<br />Technical Workshop 1 - Advanced Network Management<br />
Scripting Essentials Overview<br />What is shell scripting?<br />What can/can’t it do?<br />What else is out there?<br />H...
What is Shell Scripting?<br />A collection or ‘batch’ of commands run in sequence to complete a task or set of tasks.<br /...
What can/can’t shell scripts do?<br />Technical Workshop 1 - Advanced Network Management<br />
What Else Is Out There?<br />Technical Workshop 1 - Advanced Network Management<br />
Code Writing Guidelines<br />Technical Workshop 1 - Advanced Network Management<br />
When In Rome (or America)...<br />Scripts are designed to be written in American English. <br />Regional Settings will not...
Shell Command Symbols<br />Technical Workshop 1 - Advanced Network Management<br />
Shell Prompt Modification<br />Technical Workshop 1 - Advanced Network Management<br />
Arguments & Variables<br />ARGUMENTS<br />Represented by single % symbol<br />Values set by end user<br />Numbered from 1 ...
Environmental Variables<br />Technical Workshop 1 - Advanced Network Management<br />
Environmental Variables (cont.)<br />Technical Workshop 1 - Advanced Network Management<br />
Internal & External Commands<br />INTERNAL COMMANDS<br />Part of CMD shell<br />No file extensions<br />Cannot run without...
Internal Commands<br />Technical Workshop 1 - Advanced Network Management<br />
Internal Commands (cont.)<br />Technical Workshop 1 - Advanced Network Management<br />
External Commands<br />Technical Workshop 1 - Advanced Network Management<br />
External Commands (cont.)<br />Technical Workshop 1 - Advanced Network Management<br />
Recommended Code Layout<br />@ECHO off	- only show output<br />CLS		- clear screen<br />:START		- label start of code<br /...
Importance of Comments and Layout<br />Technical Workshop 1 - Advanced Network Management<br />
FOR<br />Used to iterate (repeat) tasks <br />USAGE:<br />Uses lettered arguments with double % symbol in scripts and sing...
IF<br />Allows for conditional tasks<br />USAGE<br />Follow with not for negatives<br />Uses else in place of multiples<br...
SET<br />Creates temporary variables<br />Values from script writer or user<br />Performs arithmetic functions<br />COMMON...
Green Code is Good Code<br />RE-USABLE CODE:<br />Mini-script within main script<br />Reduces development time<br />Guaran...
I can only show you the door, you're the one that has to walk through it...<br />Technical Workshop 1 - Advanced Network M...
Script This!<br />Print a line of text<br />Clear the screen<br />Change window color<br />View a text file<br />Save outp...
Un-script This!<br />Disables command echo<br />Change window title<br />Run the SUBTASK routine<br />Exit the script<br /...
Scripting Resources<br />Web Links<br />Books<br />CS Portal Script Repositoryhttp://tinyurl.com/cspscripts<br />Frank-Pet...
Toolkit Essentials<br />VITAL TOOLS AND UTILITIES FOR ALL TECHIES<br />Technical Workshop 1 - Advanced Network Management<...
Technical Workshop 1 - Advanced Network Management<br />
Utility Disc – DigiWiz miniPE2-XT<br />Technical Workshop 1 - Advanced Network Management<br />
Utility Disc – Hiren’s Boot CD<br />Technical Workshop 1 - Advanced Network Management<br />DOS Utility Boot CD<br />with ...
Recommended Tools<br />Script Writing:<br />Notepad2<br />Notepad++<br />System Information:<br />AIDA32<br />EZAudit<br /...
Recommended Tools (cont.)<br />Floppy/USB Key Cloning:<br />WinImage<br />AntiSpyware:<br />SDFix<br />Webroot Spy Sweeper...
Upcoming SlideShare
Loading in …5
×

Basics of Batch Scripting

3,075 views

Published on

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
3,075
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
105
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • _________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ___________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  • Basics of Batch Scripting

    1. 1. Technical Workshop 1<br />ADVANCED SYSTEMS MANAGEMENT<br />Presented By Arik Fletcher<br />Thursday January 29th 2009<br />
    2. 2. Why Are We Here?<br />These workshops aim to relay a simple mantra:<br />A little TIME, EFFORT, and the right RESOURCES combined with TRAINING, PRACTICE, and TEAMWORK will vastly improve your KNOWLEDGE, ABILITY, and EXPERIENCE.<br />KNOWLEDGE<br />TEAMWORK<br />TIME<br />TRAINING<br />RESOURCES<br />EXPERIENCE<br />PRACTICE<br />EFFORT<br />ABILITY<br />Technical Workshop 1 - Advanced Network Management<br />
    3. 3. Agenda<br />Technical Workshop 1 - Advanced Network Management<br />Administration Essentials09:45 – 10:30<br />Discussion:IT Support Expectations<br />Exercise:Task Management and Automation<br />Tutorial: The Realities of Automation<br />BREAK 10:30 –10:40<br />Scripting Essentials10:40 – 12:10<br />Overview: Introduction to Scripting<br />Tutorial: Syntax and Reference Documents<br />Tutorial: Structure and Sample Code<br />Exercise: Script Writing and Troubleshooting<br />BREAK 12:10 –12:20<br />Toolkit Essentials12:0 – 13:00<br />Overview: Utility DVD contents<br />Discussion: Recommended Tools<br />
    4. 4. Administration Essentials<br />TASK MANAGEMENT FOR SYSTEMS ENGINEERS<br />Technical Workshop 1 - Advanced Network Management<br />
    5. 5. IT Support:Expectations<br />Interviews with staff at the Computer Depot in the University of Vermont.<br />This video focuses on what IT Support Technicians expect from their computers.<br />Technical Workshop 1 - Advanced Network Management<br />
    6. 6. What Do You Expect From Your Computers?<br />Technical Workshop 1 - Advanced Network Management<br />
    7. 7. Recommended Admin Tasks<br />Daily Checks:<br />Server Services<br />Server Event Logs<br />Server Hardware Status<br />Firewall Logs and Status<br />Backup Status<br />Antivirus Updates<br />Weekly Checks:<br />Server Disk Space<br />Mail Store & Database Space<br />Technical Workshop 1 - Advanced Network Management<br />Monthly Checks:<br />Restore Status<br />Server Security Updates<br />Network Application Patches<br />Server Disk Fragmentation<br />Workstation Hardware Status<br />Printer Hardware Status<br />Documentation Status<br />Quarterly Checks:<br />Workstation Builds<br />
    8. 8. Where Does The Day Go?<br />If you feel like this guy...<br />don’t panic, help is at hand!<br />Technical Workshop 1 - Advanced Network Management<br />
    9. 9. Automated vs. Manual Tasks<br />Automated Checks:<br />Server Services<br />Server Event Logs<br />Server Hardware Status<br />Firewall Logs and Status<br />Backup Status<br />Antivirus Updates<br />Server Disk Space<br />Mail Store & Database Space<br />Server Security Updates<br />Network Application Patches<br />Server Disk Fragmentation<br />Workstation Hardware Status<br />Printer Hardware Status<br />Technical Workshop 1 - Advanced Network Management<br />Manual Checks:<br />Restore Status<br />Documentation Status<br />Workstation Builds<br />
    10. 10. Follow The A.R.P.C.E.D. Law<br />Technical Workshop 1 - Advanced Network Management<br />
    11. 11. The Truth Is Out There...<br />Search before indulging in a potentially long and complex coding project<br />Someone else has been there before and has probably written a script<br />If in doubt, ask the team!<br />Technical Workshop 1 - Advanced Network Management<br />
    12. 12. All The Time In The World...<br />Scripting is a long-term gain, but a short-term loss...<br />A script can save you time once completed, but it will need a fair amount of time and energy to be invested in its initial development.<br />Even when your script is done, you will find yourself spending further time and resources on testing and improving it.<br />Technical Workshop 1 - Advanced Network Management<br />
    13. 13. Can You Handle The Truth?<br />Technical Workshop 1 - Advanced Network Management<br />TAKE THE RED PILL:<br />Stay in Wonderland and I show you how deep the rabbit-hole goes...<br />TAKE THE BLUE PILL:<br />The story ends, you wake up in your bed and believe whatever you want to believe...<br />THE CHOICE IS YOURS...<br />
    14. 14. Scripting Essentials<br />A LOOK AT WINDOWS SHELL SCRIPTING<br />Technical Workshop 1 - Advanced Network Management<br />
    15. 15. Scripting Essentials Overview<br />What is shell scripting?<br />What can/can’t it do?<br />What else is out there?<br />How do I get started?<br />Where do I learn more?<br />Will this happen to me?<br />Technical Workshop 1 - Advanced Network Management<br />
    16. 16. What is Shell Scripting?<br />A collection or ‘batch’ of commands run in sequence to complete a task or set of tasks.<br />Quick and easy method of automating the most common admin or user tasks.<br />An essential tool for both improving task efficiency and time management.<br />Technical Workshop 1 - Advanced Network Management<br />
    17. 17. What can/can’t shell scripts do?<br />Technical Workshop 1 - Advanced Network Management<br />
    18. 18. What Else Is Out There?<br />Technical Workshop 1 - Advanced Network Management<br />
    19. 19. Code Writing Guidelines<br />Technical Workshop 1 - Advanced Network Management<br />
    20. 20. When In Rome (or America)...<br />Scripts are designed to be written in American English. <br />Regional Settings will not change the commands<br />‘Correct’ spelling is critical- “It is the American Way!”<br />e.g. COLOR, Favorites, Organization, Customize, etc<br />Technical Workshop 1 - Advanced Network Management<br />
    21. 21. Shell Command Symbols<br />Technical Workshop 1 - Advanced Network Management<br />
    22. 22. Shell Prompt Modification<br />Technical Workshop 1 - Advanced Network Management<br />
    23. 23. Arguments & Variables<br />ARGUMENTS<br />Represented by single % symbol<br />Values set by end user<br />Numbered from 1 (0 is script)<br />Generally used as switchese.g. ArguVars.cmd/test<br />VARIABLES<br />Identified by enclosed % symbols<br />Values set by OS or script writer<br />Named by OS or script writer<br />Can be used as argumentse.g. ArguVars.cmd%os%<br />Technical Workshop 1 - Advanced Network Management<br />
    24. 24. Environmental Variables<br />Technical Workshop 1 - Advanced Network Management<br />
    25. 25. Environmental Variables (cont.)<br />Technical Workshop 1 - Advanced Network Management<br />
    26. 26. Internal & External Commands<br />INTERNAL COMMANDS<br />Part of CMD shell<br />No file extensions<br />Cannot run without shell<br />Help command can be usede.g. HELP DIR<br />EXTERNAL COMMANDS<br />Separate from CMD shell<br />Usually .exe or .com extensions<br />Can be run outside of shell<br />External help is usually needede.g. MSTSC/?<br />Technical Workshop 1 - Advanced Network Management<br />
    27. 27. Internal Commands<br />Technical Workshop 1 - Advanced Network Management<br />
    28. 28. Internal Commands (cont.)<br />Technical Workshop 1 - Advanced Network Management<br />
    29. 29. External Commands<br />Technical Workshop 1 - Advanced Network Management<br />
    30. 30. External Commands (cont.)<br />Technical Workshop 1 - Advanced Network Management<br />
    31. 31. Recommended Code Layout<br />@ECHO off - only show output<br />CLS - clear screen<br />:START - label start of code<br />TITLE - window/script title<br />REM - author/copyright<br />:RUN - label body of code<br />REM - command notes<br />ECHO- a command to run<br />:FINISH - label end of code<br />REM - closing comments<br />GOTO :EOF - exit the script<br />Technical Workshop 1 - Advanced Network Management<br />
    32. 32. Importance of Comments and Layout<br />Technical Workshop 1 - Advanced Network Management<br />
    33. 33. FOR<br />Used to iterate (repeat) tasks <br />USAGE:<br />Uses lettered arguments with double % symbol in scripts and single % symbol from shell<br />Requires in and do functions<br />COMMON SWITCHES:<br />Follow numeric series: FOR /l<br />Perform file functions: FOR /f<br />Technical Workshop 1 - Advanced Network Management<br />
    34. 34. IF<br />Allows for conditional tasks<br />USAGE<br />Follow with not for negatives<br />Uses else in place of multiples<br />Case sensitive unless /i is used<br />Uses double = symbol in scripts and single = symbol in shell<br />COMMON USES:<br />File Check: IFexist %path%<br />Variable Check: IFdefined os<br />Compare: IF“%1”==“%path%”<br />Technical Workshop 1 - Advanced Network Management<br />
    35. 35. SET<br />Creates temporary variables<br />Values from script writer or user<br />Performs arithmetic functions<br />COMMON USES:<br />Set Variable: SETvar=value<br />Calculate: SET/a var=equation<br />Prompt:SET/p var=question<br />Technical Workshop 1 - Advanced Network Management<br />
    36. 36. Green Code is Good Code<br />RE-USABLE CODE:<br />Mini-script within main script<br />Reduces development time<br />Guarantees fewer mistakes<br />Improves code legibility<br />USAGE GUIDELINES:<br />Use labels to identify routines<br />Use arguments and variables<br />Should be after ‘end’ of script<br />Must be called not directed to<br />Technical Workshop 1 - Advanced Network Management<br />
    37. 37. I can only show you the door, you're the one that has to walk through it...<br />Technical Workshop 1 - Advanced Network Management<br />
    38. 38. Script This!<br />Print a line of text<br />Clear the screen<br />Change window color<br />View a text file<br />Save output to a file<br />Create a variable<br />Compare a variable<br />Repeat a file task<br />Calculate an equation<br />ECHOvalue<br />CLS<br />COLOR value<br />TYPEpathfile.ext<br />IPCONFIG> file.ext<br />SETvar=value<br />IF “%var%”==“value”<br />FOR/f%%ain (‘cmd’) do<br />SET/avar=equation<br />Technical Workshop 1 - Advanced Network Management<br />
    39. 39. Un-script This!<br />Disables command echo<br />Change window title<br />Run the SUBTASK routine<br />Exit the script<br />Show a file in single pages<br />Check for variable<br />Check if command worked<br />Prompt user for value<br />Perform a task five times<br />@ECHO off<br />TITLE value<br />CALL :SUBTASK<br />GOTO:EOF<br />TYPEfile.ext |MORE<br />IFDEFINEDvar<br />IF “%errorlevel%”==“0”<br />SET/p var=value<br />FOR/l%%ain (1,1,5) do<br />Technical Workshop 1 - Advanced Network Management<br />
    40. 40. Scripting Resources<br />Web Links<br />Books<br />CS Portal Script Repositoryhttp://tinyurl.com/cspscripts<br />Frank-Peter Schultze Scriptshttp://tinyurl.com/fpschultze<br />TSCMD FAQ: Scripting Trickshttp://tinyurl.com/tscmdfaq<br />TechNet A-Z Command Referencehttp://tinyurl.com/mscmdref<br />Backup Exec 11d Documentshttp://tinyurl.com/be11docs<br />Backup Exec 12d Documentshttp://tinyurl.com/be12doczip<br />Windows NT Shell ScriptingISBN: 1-57870-047-7<br />Zero Administration for WindowsISBN: 1-56592-508-4<br />Windows 2000 Active DirectoryISBN: 1-56592-638-2<br />Windows 2000 Scripting BibleISBN: 0-7645-4677-5<br />Windows Desktop Deployment Resource KitISBN: 0-7356-1898-4<br />Windows Command Pocket ConsultantISBN: 0-7356-2262-0<br />Technical Workshop 1 - Advanced Network Management<br />
    41. 41. Toolkit Essentials<br />VITAL TOOLS AND UTILITIES FOR ALL TECHIES<br />Technical Workshop 1 - Advanced Network Management<br />
    42. 42. Technical Workshop 1 - Advanced Network Management<br />
    43. 43. Utility Disc – DigiWiz miniPE2-XT<br />Technical Workshop 1 - Advanced Network Management<br />
    44. 44. Utility Disc – Hiren’s Boot CD<br />Technical Workshop 1 - Advanced Network Management<br />DOS Utility Boot CD<br />with additional Windows Tools<br />
    45. 45. Recommended Tools<br />Script Writing:<br />Notepad2<br />Notepad++<br />System Information:<br />AIDA32<br />EZAudit<br />Password Reset:<br />Password Renew<br />NT Offline Password Reset<br />Product Key Recovery:<br />Magic Jelly Bean Keyfinder<br />NirsoftProduKey<br />File Compression:<br />IzArc2Go<br />7-Zip<br />Disk Cloning:<br />Symantec Ghost<br />Acronis True Image<br />Disk Partitioning:<br />Partition Magic<br />Paragon Partition Manager<br />Partition Recovery:<br />TestDisk<br />Ontrack Easy Recovery Pro<br />Deep Data Recovery:<br />NTFS Undelete<br />GetDataBack-NTFS/GetDataBack-FAT<br />User Friendly Data Recovery:<br />Recuva<br />Restoration<br />Technical Workshop 1 - Advanced Network Management<br />
    46. 46. Recommended Tools (cont.)<br />Floppy/USB Key Cloning:<br />WinImage<br />AntiSpyware:<br />SDFix<br />Webroot Spy Sweeper<br />CD Image Creation:<br />LCISOCreator<br />ISO Buster<br />CD Burning:<br />ImgBurn<br />Express Burn<br />Disk Defragmentation:<br />Defraggler<br />JkDefrag<br />File Copier:<br />FastCopy<br />SyncToy<br />System Optimisation:<br />CCleaner<br />WinASOEasyTweak<br />Driver Backup and Restore:<br />Smart Driver Backup <br />DriverBackup!<br />PE Editor:<br />Resource Hacker<br />PE Resource Explorer<br />Personal Antivirus:<br />Avast!<br />NOD32<br />Technical Workshop 1 - Advanced Network Management<br />

    ×