02 | PowerShell’s Scripting Language

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.
Introduction to Unix – CS 21 Lecture 11. Lecture Overview Shell Programming Variable Discussion Command line parameters Arithmetic Discussion Control.
State Diagrams and enums ECE152. Overview What is a state diagram and where are they used? – Digital Logic – Coding Why use a states? How are states done.
Guide To UNIX Using Linux Third Edition
Introduction to Unix (CA263) Introduction to Shell Script Programming By Tariq Ibn Aziz.
Shell Script Examples.
1 Warm Up 3 Points Total 1 for each Solve and check: 7x – 2 = 4x 2) 7(5x – 2) = 6(6x – 1) 3) 3x – 3 = 5(x – 4)
JavaScript, Fifth Edition Chapter 1 Introduction to JavaScript.
Introduction to Shell Script Programming
Chap 3 – PHP Quick Start COMP RL Professor Mattos.
CS 3850 Lecture 3 The Verilog Language. 3.1 Lexical Conventions The lexical conventions are close to the programming language C++. Comments are designated.
4 1 Array and Hash Variables CGI/Perl Programming By Diane Zak.
1 Shell Scripting (C shell) SungHo Maeung 10/27/2000 Tutorial section Computer Science Lab.
Copyright © 2010 Certification Partners, LLC -- All Rights Reserved Perl Specialist.
Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 3 Variables, Constants, Methods, and Calculations.
3 1 Sending Data Using an Online Form CGI/Perl Programming By Diane Zak.
Chapter 05 (Part III) Control Statements: Part II.
Praat LING115 November 4, Getting started Basic phonetic analyses with Praat –Creating sound objects Recording, reading from a file, creating from.
Evaluate Expressions (XEI301,401) Name Dec 5, Evaluating Expressions Example 1: Evaluate the expression for t = 12 t + 20 I DO (12) + 20 = 32 Example.
POLYNOMIALS - Evaluating When evaluating polynomials, we are simply substituting a value in for a variable wherever that variable appears in the expression.
Jeffrey Snover | Distinguished Engineer & Lead Architect Jason Helmick | Senior Technologist, Concentrated Technology.
LIN Unix Lecture 5 Unix Shell Scripts. LIN Command Coordination ; && || command1 ; command2 Interpretation: Do command 1. Then do command.
Artificial Intelligence Lecture No. 26 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Copyright © 2003 ProsoftTraining. All rights reserved. Perl Fundamentals.
Programming Fundamentals. Overview of Previous Lecture Phases of C++ Environment Program statement Vs Preprocessor directive Whitespaces Comments.
Chapter 4 Getting Started with VBA. Subroutines Subroutine is the logical section of code that performs a particular task. Subroutine is also called a.
Flow Control. The order in which commands execute in a shell script is called the flow of the script. When you change the commands that execute based.
Get-Intro –Name PowerShell Jason Helmick Systems Instructor Interface Technical Training.
CSCI 1100/1202 January 14, Abstraction An abstraction hides (or ignores) the right details at the right time An object is abstract in that we don't.
Chapter 4: Variables, Constants, and Arithmetic Operators Introduction to Programming with C++ Fourth Edition.
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.
Oracle 11g: SQL Chapter 5 Data Manipulation and Transaction Control.
Cornell Notes for Math Process Problem Use distributive property
Shell Scripting March 1st, 2004 Class Meeting 7.
Assignment statement:
Variables, Expressions, and IO
02 | The Help system Jeffrey Snover | Distinguished Engineer & Lead Architect Jason Helmick | Senior Technologist, Concentrated Technology.
THE DISTRIBUTIVE PROPERTY: Factoring the Expression
Solving Multi-step Inequalities
Managing Exchange Online using Office 365 Admin Console
Engineering Innovation Center
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
Getting Started with PowerShell Desired State Configuration (DSC)
08 | Tools that make changes
09 | Script and manifest modules
Data Types, Identifiers, and Expressions
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.
Getting Started with PowerShell Desired State Configuration (DSC)
Managing Exchange Online using Office 365 Admin Console
Managing Exchange Online using PowerShell
Basics.
04 | Advanced Functions Jeffrey Snover | Distinguished Engineer & Lead Architect Jason Helmick | Senior Technologist, Concentrated Technology.
08 | Getting prepared for automation
06 | The Pipeline : Deeper Jeffrey Snover | Distinguished Engineer & Lead Architect Jason Helmick | Senior Technologist, Concentrated Technology.
06 | Writing Help Jeffrey Snover | Distinguished Engineer & Lead Architect Jason Helmick | Senior Technologist, Concentrated Technology.
SUBSTITUTION At the end of this lesson you should :
What is each an example of?
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:

02 | PowerShell’s Scripting Language Jeffrey Snover | Distinguished Engineer & Lead Architect Jason Helmick | Senior Technologist, Concentrated Technology

Module Overview Variables Quotation Marks Object members and variables Parentheses Logical constructs Looping constructs

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

Quotation Marks 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

Object Members and variables Remember-Get-Member (gm) will provide the TypeName, Methods and Properties of an Object. You can use variables to work with Objects

Parentheses

Logical construct

Logical construct - If..ElseIf…Else

Switch construct – Switch

Looping constructs

Looping constructs

Looping constructs

Questions or comments?