How to not (teach | use) Powershell by Thorsten Butz #b9.

Slides:



Advertisements
Similar presentations
Introduction to Macromedia Director 8.5 – Lingo
Advertisements

CS0004: Introduction to Programming Select Case Statements and Selection Input.
DATABASE RC D DD CMA C M R B PK E I S H S RC H L I V FK.
Lecture # 21 Chapter 6 Uptill 6.4. Type System A type system is a collection of rules for assigning type expressions to the various parts of the program.
Thorsten Butz #1 Administration von Linux & Co mit der PowerShell #OMI #DSC #SSH Thorsten Butz.
Hint: for each problem below use attached graph and for each just say which basket is preferred, if possible. 1. Huey consumes only two goods, X and Y.
MCT Summit 2014 Bucharest July 3-5, Platinum Sponsors Sponsors Please thank our sponsors.
VB Default Controls List Box, Combo Box
Information Technology Center Hany Abdelwahab Computer Specialist.
Scanner class for input Instantiate a new scanner object Scanner in = new Scanner(System.in); Getting input using scanner – int i = scanner.nextInt() –
Basic.  PS is a command line interpreter/scripting environment  Designed for.Net  Similar to C#  Easy to instantiate.Net classes  Standardized syntax.
MS WINDOWS POWER SHELL CSE 535 Operating Systems.
Programming Logic Program Design. Objectives Steps in program development Algorithms and Pseudocode Data Activity: Alice program.
AKTE X LINUXADMINISTRATION MIT DER WINDOWS POWERSHELL Thorsten Butz.
IST 210: PHP BASICS IST 210: Organization of Data IST210 1.
Logical or Boolean Data stored in Boolean form can only be one of two available values. Think of a light switch – it’s on or off. Examples include: YES.
ListBox, ComboBox, Menu Chapter 5.4, ComboBox Control: Properties & Methods u Combines TextBox features with a short drop- down list  cboOne.AddItem(string)
1. 3 x = x 3 2. K + 0 = K (3 + r) = (12 + 3) + r 4. 7 (3 + n) = n Name the Property Commutative of Multiplication Identity of Addition.
And other languages….  Array literals/initialization a = [1,2,3] a2 = [-10..0, 0..10] a3 = [[1,2],[3,4]] a4 = [w*h, w, h] a5 = [] empty = Array.new zeros.
Module 2 Creating Active Directory ® Domain Services User and Computer Objects.
CSCI 3327 Visual Basic Chapter 13: Databases and LINQ UTPA – Fall 2011.
1 Chapter Ten Using Controls. 2 Objectives Learn about Controls How to create a Form containing Labels How to set a Label’s Font How to add Color to a.
Data Types and Variables. Data Type! Computers are all about Data! Data can be in the form of Text Dates Sounds Pictures.
Conditional Statements.  Checking if input is a number  Radio buttons  Check boxes 2.
Xin Liu Feb 4, * Use midterm questions for previous 231/217 midterms for practices * ams
CSC115 Introduction to Computer Programming Zhen Jiang Dept. of Computer Science West Chester University West Chester, PA 19383
Computer Programming for Biologists Class 3 Nov 13 th, 2014 Karsten Hokamp
Datatypes, Variables, Constants Flash Class. What Does ActionScript Do? Automates Examples: – Tells animation what to do button is clicked – Turn off.
Data Types Declarations Expressions Data storage C++ Basics.
 An alias is an alternative name assigned to a Cmdlet.  Aliases allow users to quickly interact with the shell.  The Cmdlet get-alias is.
Slide 1 Using Menu Bar & Common Dialog Boxes. Slide 2 Setting Up the Main Items v First open the form on which you want the menu located v Then start.
School of Computer Science & Information Technology G6DICP - Lecture 4 Variables, data types & decision making.
CSCI 3327 Visual Basic Chapter 8: Introduction to LINQ and Collections UTPA – Fall 2011.
What is Windows PowerShell? The 6 things you must learn.
Windows PowerShell. What is Windows PowerShell? A command-line interface (CLI) A new way of developing Windows and other products to be more manageable.
A: A: double “4” A: “34” 4.
Higher Computing Software Development -So Far- 5/10/10.
Python Programming Lecture II. Data Data is the raw material that programs manipulate. Data comes in different flavours. The basic ones are called “primitive.
 Variables can store data of different types, and different data types can do different things.  PHP supports the following data types:  String  Integer.
DATA TYPES, VARIABLES AND CONSTANTS. LEARNING OBJECTIVES  Be able to identify and explain the difference between data and information  Be able to identify,
Announcements Assignment 2 Out Today Quiz today - so I need to shut up at 4:25 1.
Networking #notes from the field Thorsten Butz. # about_me $speaker name='Thorsten Butz' jobrole = 'Trainer','Consultant','Author' certification.
Click to edit Master text styles Stacks Data Structure.
IST 210: PHP Basics IST 210: Organization of Data IST2101.
I hate PowerShell! about the bad, the worse and the ugly Thorsten Butz.
Nano Server Administration Thorsten Butz. # about_me $speaker name='Thorsten Butz' jobrole = 'Trainer','Consultant','Author' certification = 'MC*','LPIC-2'
Azure on Steroids: Full Automation with PowerShell
Get-Help about_me $host name = Thorsten Butz jobrole = Trainer, Consultant, Author certification = MC*,LPIC-2 ^ = thorstenbutz = facebook.com/thbutz.
Introduction to PowerShell
07 | The Power in the Shell - Remoting
Review Operation Bingo
البرمجة بلغة فيجول بيسك ستوديو
Data Types.
CSC530 Data Structure - Decision
Chapter (3) - Looping Questions.
kbkjlj/m/lkiubljj'pl;
COMPUTER PROGRAMMING PYTHON
.., - I ':\ ' !' #
Conditional Logic Presentation Name Course Name
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.
Section 2.1 Properties of Numbers
C# Revision Cards Data types
Java: Variables, Input and Arrays
Data Types and Maths Programming Guides.
DataXfer Utility Version 3 by Stephen Johnson
PowerShell Core – from an OP's perspective
05 | Object for the Admin Jeffrey Snover | Distinguished Engineer & Lead Architect Jason Helmick | Senior Technologist, Concentrated Technology.
Constants, Variables and Data Types
Presentation transcript:

How to not (teach | use) Powershell by Thorsten Butz #b9

$speaker name='Thorsten Butz' mctCreationYear = '2000' citizenship = = gplus.to/thorstenbutz = thorsten-butz.de = slidingwindows.de }

KEEP CALM FOR YOUR MILEAGE MAY VARY

"Windows PowerShell has pipelines of objects instead of pipelines of text Being an object based shell is the difference between a lightning and a lightning bug It sounds the same but they're completely different." Jeffrey Snover, Nov 2007

Change-Water -into Wine Error : The term "Change-Water" ist not yet implemented.

$Host.PrivateData.ErrorBackgroundColor = 'white' $PSHOME\profile.ps1

[System.DateTime]::Now Get-Date date

# Integer # Object 1 Import-Csv -Path.\ducktown.csv # String 'Donald' # Boolean $false # Multiple items / Array 'Huey', 'Dewey', 'Louie'

Drive-Car Lisboa Drive-Car -destination Lisboa Drive-Car -destination Lisboa -fast 60mph Lisboa | Drive-Car

Drive-Car -destination Lisboa Lisboa | Drive-Car

'sea-dc1' | Test-Connection ERROR

Demo 1 Basics

devs? ops?

Get-Shapes | Where-Object {$_.Color –eq "Orange"} | Sort-Object Size

Get-Shape | Where-Object {$_.Color –eq 'Orange'} | Sort-Object –property Size -descending

$a = 1 $a = '1' $a.GetType( ) [int]$b = 1 $b = '1' $b.GetType( )

whoami.exe /groups /fo csv | ConvertFrom-Csv | Where-Object {$_. 'Group Name' -like 'contoso*'} } $src = 'c:\sales\2015' $dst = 'c:\backup\sales\2015' robocopy.exe /mir $src $dst

$computers | ForEach { Test-Connection -ComputerName $psitem} ForEach ($computer in $computers) { Test-Connection -ComputerName $computer }

Get-NetFirewallRule -Enabled true New-ADUser 'Donald' -Enabled $true Remove-ADUser 'Donald' -Confirm:$false

Demo 2 Challenges

Real \b(wo)?men\b don't click.