08 | Getting prepared for automation

Slides:



Advertisements
Similar presentations
CIS 240 Introduction to UNIX Instructor: Sue Sampson.
Advertisements

Jeffrey Snover | Distinguished Engineer & Lead Architect Jason Helmick | Senior Technologist, Concentrated Technology.
Utilizing the GDB debugger to analyze programs Background and application.
02 | Managing Users, Groups, and Licenses Anthony Steven | Principal Technologist, Content Master Martin Coetzer | Portfolio Architect, Microsoft.
CS Lecture 03 Outline Sed and awk from previous lecture Writing simple bash script Assignment 1 discussion 1CS 311 Operating SystemsLecture 03.
Computer Science: A Structured Programming Approach Using C1 Objectives ❏ To understand the structure of a C-language program. ❏ To write your first C.
2ex.1 Lists and Arrays. 2ex.2 Comments on exercises Always run your script with “ perl -w ” and take care of all warnings  submitted scripts should not.
Microsoft ® Official Course Module XA Using Windows PowerShell ®
SharePoint 2010 Development Environment A Guide to Setup SharePoint 2010 Development Environment on Windows 7 Machine.
Chapter 5 Bourne Shells Scripts By C. Shing ITEC Dept Radford University.
The UNIX Shell. The Shell Program that constantly runs at terminal after a user has logged in. Prompts the user and waits for user input. Interprets command.
Appendix A Starting Out with Windows PowerShell™ 2.0.
Introduction to Engineering MATLAB – 6 Script Files - 1 Agenda Script files.
PowerShell Shenanigans Lateral Movement with PowerShell
Section 6: Using Windows PowerShell to Manage Group Policy Introducing Windows PowerShell Windows PowerShell Library for Group Policy Windows PowerShell-Based.
UNIX Shell Script (1) Dr. Tran, Van Hoai Faculty of Computer Science and Engineering HCMC Uni. of Technology
Introduction to Windows PowerShell DANIEL HIBBERT PRIMER FIELD ENGINEER DMVMUG User Conference 2013 – Reston, VA.
POWERSHELL SHENANIGANS KIERAN JACOBSEN HP ENTERPRISE SERVICES.
AppSec USA 2014 Denver, Colorado CMS Hacking 101 Hacking and Securing Popular Open Source Content Management Systems.
Shell Advanced Features. Module 8 Shell Advanced Features ♦ Introduction In Linux systems, the shells are often referred to as command line interfaces.
Jeffrey Snover | Distinguished Engineer & Lead Architect Jason Helmick | Senior Technologist, Concentrated Technology.
©Colin Jamison 2004 Shell scripting in Linux Colin Jamison.
 An alias is an alternative name assigned to a Cmdlet.  Aliases allow users to quickly interact with the shell.  The Cmdlet get-alias is.
Trinity College Dublin, The University of Dublin GE3M25: Computer Programming for Biologists Python Karsten Hokamp, PhD Genetics TCD, 03/11/2015.
 It is Microsoft's new task-based command- line shell and scripting language designed especially for system administration.  It helps Information Technology.
Lab 7 Shell Script Reference: Linux Shell Scripting Tutorial v1.05r3 A Beginner's handbook
Shell scripts – part 1 Cs 302. Shell scripts  What is Shell Script? “Shell Script is series of command written in plain text file. “  Why to Write Shell.
Building Powerful Workflow Automation with Cherwell and PowerShell
Implementation of a simple shell, xssh
Office PowerShell administration
Preparing for the Windows 8.1 MCSA
Implementation of a simple shell, xssh
TechEd /3/2018 4:18 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Introduction to MATLAB for Engineers, Third Edition
02 | The Help system Jeffrey Snover | Distinguished Engineer & Lead Architect Jason Helmick | Senior Technologist, Concentrated Technology.
Managing Exchange Online using Office 365 Admin Console
Intro to PHP & Variables
Getting Started with the Data ONTAP PowerShell Toolkit
02 | The Help system Jeffrey Snover | Distinguished Engineer & Lead Architect Jason Helmick | Senior Technologist, Concentrated Technology.
07 | The Power in the Shell - Remoting
03 | The Pipeline : Getting Connected
Introduction to the C Language
Getting Started with PowerShell Desired State Configuration (DSC)
08 | Tools that make changes
09 | Script and manifest modules
John Carelli, Instructor Kutztown University
Copyright © – Curt Hill Bash Scripting Fundamentals Copyright © – Curt Hill.
Managing Exchange Online using PowerShell
09 | Automation in scale - Remoting
05 | More on Parameters Jeffrey Snover | Distinguished Engineer & Lead Architect Jason Helmick | Senior Technologist, Concentrated Technology.
Managing Exchange Online using Office 365 Admin Console
Getting Started with PowerShell Desired State Configuration (DSC)
Managing Exchange Online using Office 365 Admin Console
Managing Exchange Online using PowerShell
04 | Advanced Functions Jeffrey Snover | Distinguished Engineer & Lead Architect Jason Helmick | Senior Technologist, Concentrated Technology.
06 | The Pipeline : Deeper Jeffrey Snover | Distinguished Engineer & Lead Architect Jason Helmick | Senior Technologist, Concentrated Technology.
CSCI N317 Computation for Scientific Applications Unit 1 – 1 MATLAB
Windows PowerShell Crash Course
02 | PowerShell’s Scripting Language
Chapter 5 Bourne Shells Scripts
06 | Writing Help Jeffrey Snover | Distinguished Engineer & Lead Architect Jason Helmick | Senior Technologist, Concentrated Technology.
Introduction to Bash Programming, part 3
Managing Exchange Online using PowerShell
05 | Object for the Admin Jeffrey Snover | Distinguished Engineer & Lead Architect Jason Helmick | Senior Technologist, Concentrated Technology.
Getting Started with PowerShell Desired State Configuration (DSC)
07 | Error Handling Jeffrey Snover | Distinguished Engineer & Lead Architect Jason Helmick | Senior Technologist, Concentrated Technology.
07 | Recovery Ashley McGlone | Premier Field Engineer, Microsoft
Jeffrey Snover | Distinguished Engineer & Lead Architect
10 | Introducing scripting and toolmaking
Presentation transcript:

08 | Getting prepared for automation Jeffrey Snover | Distinguished Engineer & Lead Architect Jason Helmick | Senior Technologist, Concentrated Technology

Course Topics Getting Started with PowerShell 01 | Don’t fear the shell 06 | The pipeline : Deeper 02 | The Help system 07 | The Power in the Shell - Remoting 03 | The pipeline : Getting connected 08 | Getting prepared for automation 04 | Extending the shell 09 | Automation in scale - Remoting 05 | Objects for the Admin 10 | Introducing scripting and toolmaking

Module Overview PowerShell security goals Execution Policy Variables : a place to store stuff Fun with Quotes Getting and displaying input Other output for scripts and automation

PowerShell security goals Secured by default Prevents mistakes by unintentional admins and users No Script Execution .Ps1 associated with notepad Must type path to execute a script

Execution Policy By default, PowerShell does not run scripts. Get/Set-ExecutionPolicy Restricted Unrestricted AllSigned RemoteSigned Bypass Undefined Can be set with Group Policy

Variables: A place to store stuff Use $ to create and use variables Can contain letters, numbers, spaces and underscores Don’t persist after Shell exits New-Variable Set-Variable Get-Variable Clear-Variable Remove-Variable Can force a type – [int]$var Note: The $ is not part of the variable name, it’s a cue to access the contents of the variable

Fun with Quotes Double Quotes resolve all variables Can use Sub-Expressions Single Quotes prevent substitution Get-Help About_Quoting_Rules Back-tick/Grave-Accent prevents individual substitution

Getting and displaying input

Other output for scripts and automation $Preference variables to know Help about_Preference_Variables $DebugPreference=SilentlyContinue $ErrorActionPreference=Continue #VerbosePreference=SilentlyContinue Write-Warning Write-Verbose Write-Debug Write-Error

Questions or comments?