Prezentace aplikace PowerPoint - PowerPoint PPT Presentation

1 / 12
About This Presentation
Title:

Prezentace aplikace PowerPoint

Description:

VBScript. Java Script. Perl Script. free download. Host ... VBScript .VBS .VBE ... VBScript and JavaScript. WScript library (object model) Scripting ... – PowerPoint PPT presentation

Number of Views:19
Avg rating:3.0/5.0
Slides: 13
Provided by: ond7
Category:

less

Transcript and Presenter's Notes

Title: Prezentace aplikace PowerPoint


1
Scriptingfor administration
VBScript in Windows
Ondrej evecek ondra _at_ sevecek . com
2
Windows Script Host
  • Scripting Language (engine)
  • VBScript
  • Java Script
  • Perl Script
  • free download
  • Host
  • Internet Explorer
  • IIS Internet Information Services
  • SQL Server DTS
  • WSH

2
3
Script Files
  • Command Prompt
  • .BAT
  • .CMD
  • VBScript
  • .VBS
  • .VBE encrypted
  • encrypted means only coded, can be reverted
    without knowing the password
  • Java Script
  • .JS
  • .JSE encrypted

3
4
Script Project Files
  • .WSH
  • path to the script
  • timeout
  • .WSF
  • XML based
  • full project file
  • can combine more than one language
  • supports command line parameters

4
5
Running scripts
  • .BAT files
  • usually the sign-post for running scripts
  • can set up environment variables
  • can create and manage log files
  • can handle WSH installation
  • can be always run from AD/user account script
    properties
  • CSCRIPT
  • WSCRIPT

5
6
WSCRIPT
  • Default .VBS file association
  • displays WScript.ECHO in window
  • not usefull for running logon scripts
  • //HWScript
  • sets as a default association
  • //HCScript
  • sets CSCRIPT as default
  • //T
  • timeout
  • //NoLogo
  • //X
  • executes the script in debugger
  • usefull in context menus through Explorer
    extension editor

6
7
CSCRIPT
  • Can be used from .BAT files
  • displays WScript.ECHO in console window
  • always displays MessageBox and InputBox as
    windows
  • CSCRIPT //NoLogo script.vbs gt tmp\script.log
  • Do not use //B to see errors in the log

7
8
CSCRIPT
  • Can be used from .BAT files
  • displays WScript.ECHO in console window
  • always displays MessageBox and InputBox as
    windows
  • CSCRIPT //NoLogo script.vbs gt tmp\script.log
  • Do not use //B to see errors in the log

8
9
Writing scripts
  • NOTEPAD
  • Microsoft Script Debugger
  • free download
  • complicated variable watch
  • sometimes hangs until logoff (let it run without
    closing)
  • Visual Basic for Applications
  • Microsoft Office, menu Tools, Macros
  • object browser
  • coloring

9
10
Writing scripts
  • Visual Studio
  • coloring
  • debugging
  • object browser
  • Visual Studio Express
  • free download from Microsoft
  • Web Developer Edition
  • coloring, object browser
  • no debugging possible

10
11
Tools
  • WMI Administrative Tools
  • Scriptomatic
  • B.R.A.I.N. ?
  • your most usefull tool
  • comes with the basic installation
  • free for personal use

11
12
Documentation
  • GOOGLE fordownload windows script documentation
  • VBScript and JavaScript
  • WScript library (object model)
  • Scripting library
  • GOOGLE fordownload technet scripts
  • samples for offline browsing from the Script
    Centerhttp//www.microsoft.com/technet/scriptcent
    er

12
Write a Comment
User Comments (0)
About PowerShow.com