Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Enterprise PowerShell Scripting Bootcamp

You're reading from   Enterprise PowerShell Scripting Bootcamp The fastest way to learn PowerShell scripting

Arrow left icon
Product type Paperback
Published in May 2017
Publisher Packt
ISBN-13 9781787288287
Length 238 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Brenton J.W. Blawat Brenton J.W. Blawat
Author Profile Icon Brenton J.W. Blawat
Brenton J.W. Blawat
Arrow right icon
View More author details
Toc

Table of Contents (21) Chapters Close

Enterprise PowerShell Scripting Bootcamp
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
1. Getting Started with Enterprise PowerShell Scripting FREE CHAPTER 2. Script Structure, Comment Blocks, and Script Logging 3. Working with Answer Files 4. String Encryption and Decryption 5. Interacting with Services, Processes, Profiles, and Logged on Users 6. Evaluating Scheduled Tasks 7. Determining Disk Statistics 8. Windows Features and Installed Software Detection 9. File Scanning 10. Optimizing Script Execution Speed 11. Improving Performance by Using Regular Expressions 12. Overall Script Workflow, Termination Files, and Merging Data Results 13. Creating the Windows Server Scanning Script and Post-Execution Cleanup Index

Index

A

  • Advanced Encryption Standard (AES)
    • about / RijndaelManaged encryption
  • Answer File Decryptor (AFD)
    • about / Script 1 - randomized password and string generator
  • answer files
    • about / Answer files
    • script logging location / Answer files
    • data sources / Answer files
    • data output information / Answer files
    • encrypted data / Answer files
    • inclusion / exclusion lists / Answer files
    • Enable/Disable script features / Answer files

C

  • Comma-Separated Values (CSV) file
    • about / Script logging
  • comma separated value (CSV) files
    • about / XML answer files
  • comment blocks
    • about / Comment blocks
    • requisites / Comment blocks

D

  • decryption
    • with encoded password / Decryption with encoded password
  • disk information script / Disk information script
  • disk statistics
    • about / Disk statistics
    • physical disk information, retrieving / Retrieving physical and logical disk information
    • logical disk information, retrieving / Retrieving physical and logical disk information
    • DriveType property / The DriveType property
    • disk space, converting to MB and GB / Converting disk space to MB and GB
    • FreeSpace property / Free Space property
  • Distributed Management Task Force (DMTF) / User profiles
  • Document Object Model (DOM) / XML answer files

E

  • EncryptionKey
    • about / RijndaelManaged encryption
  • executables
    • scanning, in program files / Scanning executables in \Program Files
  • export process, scheduled tasks
    • reference / Scheduled tasks
  • expressions
    • building, dynamically / Dynamically building expressions
  • eXtensible Markup Language (XML)
    • about / XML answer files

F

  • files
    • excluding / Excluding files
  • file scanning / File scanning

H

  • Hypertext Markup Language (HTML)
    • about / XML answer files

I

  • initialization vector
    • creating / Creating random salt, initialization vector, and passwords
  • InitializationVector (IV)
    • about / RijndaelManaged encryption
  • installed software detection / Installed software detection

L

  • logged on users
    • identifying / Identifying logged on users
  • logging files
    • creating / Creating the logging files
  • logging function
    • creating / Creating the logging function
  • long paths
    • excluding / Excluding long paths

M

  • Microsoft Installer (MSI) / Installed software detection
  • multiple Windows server scanning script functions
    • about / Multiple Windows server scanning script functions
    • scheduled tasks function / Scheduled tasks function
    • Windows processes function / Windows processes function
    • Windows services function / Windows services function
    • installed software function / Installed software function
    • user profiles function / User profiles function
    • Windows features function / Windows features function
    • functions, invoking / Invoking the functions

P

  • password
    • about / RijndaelManaged encryption
    • securing / Securing the password
  • passwords
    • creating / Creating random salt, initialization vector, and passwords
  • performance considerations, scripts
    • about / Performance considerations
    • measuring commands / Performance considerations
    • cmdlet considerations / Performance considerations
    • regular expressions, over arrays / Performance considerations
    • switch statements / Performance considerations
  • PowerShell scripting templates
    • about / PowerShell scripting templates
    • decryption technologies / PowerShell scripting templates
    • encryption technologies / PowerShell scripting templates
    • logging mechanisms / PowerShell scripting templates
    • answer file logic / PowerShell scripting templates
    • standardized comment blocks / PowerShell scripting templates
  • pre-script security
    • about / Pre-script security
    • randomized password / Script 1 - randomized password and string generator
    • string generator / Script 1 - randomized password and string generator
    • string encryption script / Script 2 - string encryption script
  • program files
    • executables, scanning in / Scanning executables in \Program Files

R

  • random salt
    • creating / Creating random salt, initialization vector, and passwords
  • regular expressions
    • using / Using regular expressions
    • performance, implementation / Implementating regular expression performance
  • RijndaelManaged encryption
    • about / RijndaelManaged encryption
  • RijndaelManaged encryption process / Encrypting and decrypting strings
  • Runtime Decryptor (RTD)
    • about / Script 1 - randomized password and string generator
  • Run Time Decryptor (RTD) / Comment block

S

  • salt
    • about / RijndaelManaged encryption
  • scanning script result data
    • merging / PowerShell script 4 - merging the scanning script result data
  • scheduled task action
    • creating / Scheduled tasks
  • scheduled task object
    • creating / Scheduled tasks
  • scheduled tasks
    • about / Scheduled tasks
    • retrieving / Scheduled tasks
    • registering / Scheduled tasks
    • removing / Scheduled tasks
    • unregistering / Scheduled tasks
    • modifying / Scheduled tasks
    • updating / Scheduled tasks
    • identifying / Identifying scheduled tasks running as alternate users
  • scheduled task settings
    • reference / Scheduled tasks
  • scheduled task setting set
    • creating / Scheduled tasks
  • scheduled task triggers
    • creating / Scheduled tasks
    • reference / Scheduled tasks
  • script
    • structure / Overall script structure
    • running / Running the script
  • script clean-up
    • performing / Performing script cleanup
  • script execution speed / Script execution speed
  • script logging
    • about / Script logging
    • logging files, creating / Creating the logging files
    • windows event log source, creating / Creating a windows event log source
    • logging function, creating / Creating the logging function
  • Script Side Decryptor (SSD)
    • about / Script 1 - randomized password and string generator
  • speed, considerations
    • write-host cmdlet / Speed considerations for the write-host cmdlet
    • write-progress cmdlet / Speed considerations for the write-progress cmdlet
    • switches, versus if statements / Speed consideration - switches versus if statements
  • strings
    • encrypting / Encrypting and decrypting strings
    • decrypting / Decrypting strings
  • System.Security.Cryptography.RijndaelManaged class
    • reference / Encrypting and decrypting strings

T

  • termination files script / PowerShell script 3 - the termination files
  • termination function
    • creating / Creating a termination function

U

  • United States National Institute of Standards and Technology (NIST)
    • about / RijndaelManaged encryption
  • user profiles / User profiles

W

  • windows event log source
    • creating / Creating a windows event log source
  • Windows features / Windows features
  • Windows Management Instrumentation (WMI) / Retrieving physical and logical disk information, Windows features
  • Windows processes
    • managing / Managing Windows processes
  • Windows server scanning script
    • about / Windows server scanning script
    • disk configuration / Windows server scanning script
    • scheduled task scanning / Windows server scanning script
    • Windows processes / Windows server scanning script
    • Windows services / Windows server scanning script
    • installed software / Windows server scanning script
    • user profiles / Windows server scanning script
    • Windows features / Windows server scanning script
    • scanning files / Windows server scanning script
    • overview / Windows server scanning script overview
    • workflow steps / Windows server scanning script overview
  • Windows server scanning script creation
    • about / Windows server scanning script creation
    • comment block / Comment block
    • parameter block / Parameter block
    • answer file reading function / Answer file reading function
    • decryption function / Decryption function
    • script answers, populating in variables / Populating script answers in variables and arrays
    • script answers, populating in arrays / Populating script answers in variables and arrays
    • log files, creating / Creating the log files and logging function
    • logging function, creating / Creating the log files and logging function
    • files function, scanning / Scan files and folders function
    • folders function, scanning / Scan files and folders function
  • Windows services
    • about / Windows services
    • example / Windows services
  • WiredEquivalentPrivacy (WEP)
    • about / RijndaelManaged encryption
  • World Wide Web Consortium (W3C)
    • about / XML answer files
  • write-host cmdlet / Speed considerations for the write-host cmdlet
  • write-progress cmdlet / Speed considerations for the write-progress cmdlet

X

  • XML answer file creation
    • about / XML answer file creation
    • core components, for scanning / XML answer file creation
  • XML answer files
    • about / XML answer files
    • components / XML answer files
    • reading / Reading XML answer files
  • XML attributes / XML answer files
  • XML comments / XML answer files
  • XML declaration / XML answer files
  • XML elements / XML answer files
  • XML tag function / XML tag function
  • XML tags / XML answer files
lock icon The rest of the chapter is locked
arrow left Previous Section
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images