The smart way to Pass | Real Tests, Real results!
Scripts - Answer: Sequence of instructions telling a program to do something. It is written in
a scripting language. It has client-side and server-side scripts
Scripting Languages - Answer: programming languages with limited functionality and/or
"easy" syntax. Some are associated with an application in which scripts run. Others are
"general purpose"
Purpose of Windows Script Host - Answer: Automate parts of core operating system using
plain text files. It is similar to batch files in DOS/Windows, and is a replacement for batch
files.
Architecture of Windows Script Host - Core - Answer: the core ties everything together. It is
implemented as the OS or application
Windows Script Host - scripting engine - Answer: provides the scripting language support
e.g. Vbscript, Jscript, perlscript
Windows Script Host - scripting host - Answer: actually executes the script. TWO scripting
hosts exist: wscript.exe AND cscript.exe
Wscript.exe - Answer: a windows GUI version of the script host. Double-clicking a .vbs
script uses this host. Text output appears in dialog boxes(requires clicking OK before
execution will continue)
Cscript.exe - Answer: a CLI version of the script host. Text output appears in command
window while execution continues without user intervention. It is useful for logon scripts
APPHIA – Crafted with Care and Precision for Academic Excellence. 1
, Windows Script Host Security - Answer: scripts can be used for malicious purposes, so
digital signatures are now supported. Developers can digitally sign a script, signature is
verified before execution, and if the verification fails, the script is EITHER not executed OR
paused until user manually verifies it
Powershell - Answer: it is an interactive shell and scripting language that is replacing
command prompt over time. It emulates commands with commands frequently used in
linux and unix shells
Powershell availability - Answer: it is available by default in windows 7 and server 2008 R2
and after. As an install for XP-> vista
Cmdlets - Answer: smallest unit of functionality and the building blocks of scripts. It is
always in the form of verb-noun EX. Get-command, get-help, stop-service
Powershell objects - Answer: digital representation of something and the parts and details
on how to use the parts. The properties refer to the parts of the object. Methods are things
that can be done to/with object. Properties and methods for a particular object can be
viewed using the get-member cmdlet
Powershell variables - Answer: store data for later use in current console session or script.
They always begin with a $ and could be a single object or collection (array) of objects. They
are set by setting array equal to some value or the output of a command. EX. [string]$A = 32
Powershell Pipeline - Answer: takes the output from one cmdlet and uses it as the input to
another cmdlet. Powershell outputs objects rather than text. It is used for filtering,
formatting, outputting, and many other things. Can use multiple pipes on one line
APPHIA – Crafted with Care and Precision for Academic Excellence. 2