08 | Tools that make changes

Slides:



Advertisements
Similar presentations
Turning PowerShell Commands into Reusable CLI and GUI Tools Don Jones Senior Partner and Principal Technologist Concentrated Technology, LLC WCL404.
Advertisements

Eurotherm Report5000 Explained Neville Child Applications Engineer Eurotherm Ltd.
Jeffrey Snover | Distinguished Engineer & Lead Architect Jason Helmick | Senior Technologist, Concentrated Technology.
Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
Executes a statement or statements for a number of times – iteration. Syntax for(initialize; test; increment) { // statements to be executed } Initial.
Generic API Test tool By Moshe Sapir Almog Masika Instructor Zvika Berkovic.
33 CHAPTER Basic APPLICATION SOFTWARE. © 2005 The McGraw-Hill Companies, Inc. All Rights Reserved. 1-2 Lecture Objectives More Spreadsheet Features What.
Microsoft ® Office Excel ® 2003 Training How to use lists [Your company name] presents:
Web Application Development. Define ER model in QSEE Generate SQL Create Database mySQL Write Script to use TableEditor class Process to create A simple.
Web Application Development. Tools to create a simple web- editable database QSEE MySQL (or PHPMyAdmin) PHP TableEditor.
© 2012 Autodesk Dario Nicolini Product Manager Autodesk ® Inventor ® iLogic: a great Autodesk tool to improve Inventor features.
Unit 5 – “Watch Out!”. Introduction New Topics Case Structures New Functions Less? Comparison Function Ultrasonic Sensor.
Introduction It is developed to create software applications. It is a tool for developers of any program that uses both basic and expert settings. It.
Homework #4: Operator Overloading and Strings By J. H. Wang May 8, 2012.
Ordering Tool Guideline
10 | Programming with Transact-SQL Graeme Malcolm | Senior Content Developer, Microsoft Geoff Allix | Principal Technologist, Content Master.
3.9 to  Also refer to as Program  Contains set of instructions that tells the computer how to perform specific task.  Each line of code is referred.
Jeffrey Snover | Distinguished Engineer & Lead Architect Jason Helmick | Senior Technologist, Concentrated Technology.
 In computer programming, a loop is a sequence of instruction s that is continually repeated until a certain condition is reached.  PHP Loops :  In.
Phase Test 2 You have been provided with a finished application available from the module web site called Phase Test 2 Sample Application. This application.
Chapter 5 Introduction To Form Builder. Lesson C Objectives  Use sequences to automatically generate primary key values in a form  Create lists of values.
An EPICS IDE Using Eclipse Kenneth Evans, Jr. Presented at the EPICS Collaboration Meeting June 15, 2006 Argonne National Laboratory, Argonne, IL.
CN1266 Network Scripting Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
1 PSI/PhUSE Single Day Event – SAS Applications – June 11, 2009 SAS Drug Development from the Inside Magnus Mengelbier Director.
 Very often when you write code, you want to perform different actions for different decisions. You can use conditional statements in your code to do.
11 Copyright © 2009, Oracle. All rights reserved. Enhancing ETL Performance.
PHP Condtions and Loops Prepared by Dr. Maher Abuhamdeh.
OptiSystem applications: SER & BER analysis of QAM-PSK-PAM systems
End of Access Exam Review.
State of Testing Jason Kenny – ATS committer.
Aim: How to solve calorimetry problems?
How to Define Separate Order Counters for Separate Sub-Libraries
10 | Programming with Transact-SQL
TechEd /3/2018 4:18 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Productive Debugging With Eclipse Photon
02 | The Help system Jeffrey Snover | Distinguished Engineer & Lead Architect Jason Helmick | Senior Technologist, Concentrated Technology.
Managing Exchange Online using Office 365 Admin Console
Expressions and Control Flow in JavaScript
02 | The Help system Jeffrey Snover | Distinguished Engineer & Lead Architect Jason Helmick | Senior Technologist, Concentrated Technology.
07 | The Power in the Shell - Remoting
group work #hifiTeam
03 | The Pipeline : Getting Connected
Getting Started with PowerShell Desired State Configuration (DSC)
09 | Script and manifest modules
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
Conditionally Confirming a Submit
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.
08 | Getting prepared for automation
> Other ways to navigate space
Product Training Fixed Assets
06 | The Pipeline : Deeper Jeffrey Snover | Distinguished Engineer & Lead Architect Jason Helmick | Senior Technologist, Concentrated Technology.
6 – Miracle And “Hello World”
02 | PowerShell’s Scripting Language
06 | Writing Help Jeffrey Snover | Distinguished Engineer & Lead Architect Jason Helmick | Senior Technologist, Concentrated Technology.
Composition & Inverses Review
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)
Beyond Happy-Path Testing: Using cFactory to do Negative Testing
Fast-Track UiPath Developer Module 6: Invoke Code and Invoke Method
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 | Tools that make changes Jeffrey Snover | Distinguished Engineer & Lead Architect Jason Helmick | Senior Technologist, Concentrated Technology

Module Overview Tools that need –confirm and –whatif Impact Level Using ShouldProcess A better example

-Confirm and -Whatif These parameters should be supported for any commands that changes the system state in any way. If you’re writing an advanced function, there’s no need to hand code these parameters. [CmdletBinding(SupportShouldProcess=$True,ConfirmImpact=“ High”)] Ctrl-J for the template

Impact Level Values for Impact Level are Low, Medium and High $WhatIfPreference is set to $False by default. If you change is to $True, then all commands that support –Whatif will run as if whatif has been specified. $ConfirmPreference is set to High by default. If the command impact level is equal to or higher than the preference, then – Confirm is automatically added

Using ShouldProcess

A better example

Questions or comments?