Boulos Dib September 21, 2011

Size: px
Start display at page:

Download "Boulos Dib September 21, 2011"

Transcription

1 Boulos Dib September 21, 2011

2 Independent Consultant Napeague Inc. Software Development since 1983 Few Facts First Personal Computer 1980 TRS-80 III First Z80 based product (EPROM based Protocol Adpator 1984) First Commercial PC-DOS product (Telex on PCs 1985) Started 16-bit Windows Development using Win 3.1 Developed on: 8080/Z80, 68xxx, PDP/RSX,VAX-VMS and x86/x64 (C/C++/C#) Worked with PowerShell since Monad (2006) Worked with SharePoint since STS (2003) More facts Favorite sport Windsurfing Favorite hobby Playing my sunburst Fender Stratocaster+ guitar. Favorite guitar players Wes Montgomery, Larry Carlton and Ritchie Blackmore (Deep Purple, Rainbow)

3 Overview of PowerShell Introduction to PowerShell Scripting Language Tools Script Authoring SharePoint Management Console SharePoint CmdLets

4 NYC Code Camp I will be presenting on LightSwitch and Silverlight at the NYC Code Camp 6 (Autumn 2011) Saturday October 1 st Pace University Registration Still Open

5 Interactive Command Shell Programmatic (Script) Execution Environment Dynamic Scripting Language Extensible (CmdLets,.Net etc ) Hosted (i.e. NuGet) Management tool for Servers

6 A shell is the piece of software that lets you access the functionality provided by the operating system. Bruce Payette - Co-Designer and Implementer of the PowerShell language. Example Windows Explorer Command.com Cmd.exe Bash (Unix) PowerShell

7 Interactive Environment with.net Automation Tool Easy to use Available on all Windows SKUs starting with XP SP2 and Windows 2003 Management tool for Servers Productivity Gains One Liner

8 Source:Wikipedia

9 Common Parameters -Verbose -Debug -WarningAction -WarningVariable -ErrorAction -ErrorVariable -OutVariable -OutBuffer Risk Mitigation Parameters (certainly critical in a production environment) What-If -Confirm Wildcard support. All names and parameter value can support wildcard. Pipeline Much more about this later.

10 Command vs. Expression mode parsing Echo Everything returns a value String Variable $ Prefix i.e. $var = Hello Sharepoint Type System All.Net types as well as Custom Types

11 Help Get-Help (or -? Following any command) Get-Help about_<<anyname>> Get-Help Examples Get-Help Full

12 High level task oriented abstraction Verb-XXNoun Verbs: Get, Set, New, Write, Read Nouns: Drive, Variable, Provider, Site, Collection Get-Verb Predefined Commands When Starting Remember these: Get-Help Get-Member Get-Command

13 Get-Help As it says, it helps!!! Get-Command Get information about what can be invoked Get-Member Show what can be done with an object Get-Module Show packages of commands GetType Discover details about an object s type information.

14 Compare Foreach Group Measure Select Sort Tee Where

15 PowerShell ISE Simple Editor and Debugger PowerGUI Administrative Console PowerGUI Editor Powerpacks a number to choose from. Visual Studio Notepad

16 Out-Host Out-Null Out-Printer Out-String Out-GridView

17 The best part about PowerShell Output of one CmdLet is Input into next CmdLet in pipeline. Uses the Pipe operator Output and Input are objects, not text like traditional shells. Example Get-Command Get-Member Get-Process Out-GridView

18 Case-Insensitive Variables: begin with $ (i.e. $a = test ) Script Blocks using {} Array $a = 1,2,3 $a[1] Hashtable $h b=2} Scope Functions and Script Blocks Security Context aware Remoting - WSMan

19 If then else If ($a eq test ) { It s a test } else { Not } While loop and Do While loop $i = 1; While ($i lt 10) {$i++} $i =5; do {$i} while (--$i) For loop for ($i=0; $i lt 10; $i++) { 5 * $i is $(5 * $i) } Foreach loop Foreach ($i in 1..10) { `$i is $i }

20 Foreach CmdLet ForEach-Object { begin } {$_ * 2} { end } Where Cmdlet Where-Object {$_ -gt 4 -and $_ -lt 10}

21 Arithmetic Operators + * - / % Assignment Operators =, +=, -=, *=, /=, %=

22 Get-Location and SetLocation Copy-Item Remove-Item Move-Item Rename-Item Set-Item New-Item Get-Content

23 Pretty much the same as CMD > replace file >> Append to file 2> File is replaced with error messages 2>> Error text is appended to file 2>&1 Error messages are written to output pipe

24 A module is a package that contains Windows PowerShell commands, such as cmdlets, providers, functions, variables, and aliases Need to create module folder new-item -type directory -path $home\documents\windowspowershell\ Modules Copy the module to the Modules folder. Start using a module (import-module etc )

25 Standard Providers Windows PowerShell providers are Microsoft.NET Framework-based programs that make the data in a specialized data store available in Windows PowerShell so that you can view and manage it Get-PSProvider Select -Property Name WSMan - Alias Environment FileSystem Function Registry Variable Certificate

26 Get-PSDrive New-PSDrive New-PSDrive -Name Y -PSProvider FileSystem -Root c:\temp Remove-PSDrive Remove-PSDrive Try a non-disk PSDrive like cert: Dir Cert:

27 A Script file is a text file with.ps1 extension containing one or more PowerShell command A Script is a simple mechanism to re-use functionality. To run a script on a remote computer, use the Invoke-Command and provide remote computer name as a parameter. Scripts can accept parameters. To run a script in the current session, we Dot- Source the..\script1.ps1 We can Scope Local or Global.

28 Single Line: # Multi Line: <# #> Comments can be used to automatically generate help

29 A function is a script block containing list of statements function small_files ($size = 1kB) { Get-ChildItem c:\temp where { $_.length -lt $size -and!$_.psiscontainer} } small_files To control how a function uses the pipeline, you use Begin, Process and End. function pipelinefunc { process {"The value is: $_"} } 1,2,3 pipelinefunc Advanced functions allow you to write CmdLets using scripts instead of compiled code.

30 try { $wc = new-object System.Net.WebClient $wc.downloadfile(" } catch [System.Net.WebException],[System.IO.IOException] { "unable to download MyDoc.doc from } catch { "An error occurred that could not be resolved." }

31 Sharepoint Management Shell Need to execute Add-SPShellAdmin in order to acquire permissions to run PowerShell on Sharepoint Farm component Member of Administrators group on the local computer Member of Farm Administrators SharePoint group Farm Yes No Yes Service application Yes No Yes Content database Yes No Yes Site collection No Yes Yes Site, list, document library Yes No Yes Source: MSDN Full Control on backup folder

32 Get-Command -Noun SP* (Get-Command Name *-SP* - CommandType cmdlet).count

33 $Host.Runspace.ThreadOptions = "ReuseThread" Get-SPAssignment Global $spweb = Get-SPWeb -Identity $url $spweb.treeviewenabled = $True $spweb.update() Stop-SPAssignment Global

34 Windows Powershell Blog Doug Finke MVP (Also ShowUI) PowerShell Magazine Jim Christopher MVP (Check out StudioShell) Tome Tanasovski MVP/Author NYC PowerShell User Group

35 Productivity PowerGUI PowerTab Community Extensions Quest ActiveRoles Management Shell UI ShowUI (WPF)

36 Tool PowerGUI PowerTab Community Extensions Quest ActiveRoles ShowUI Windows Automation Snaping for Powershell Url

37 NuGet StudioShell

38 PowerShell in Action Bruce Payette The book from the authority on PowerShell Windows PowerShell 2.0 Bible By Thomas Lee, Karl Mitschke, Mark E. Schill, and Tome Tanasovski

39 Automating Microsoft SharePoint 2010 Administration with Windows PowerShell 2.0 Gary Lapointe & Shannon Bray PowerShell for Microsoft Sharepoint 2010 Administrators. Niklas Goude & Mattias Karlsson

40 Next session will be about PowerShell Scripts in the SharePoint Management Shell Contact:

Product Page: https://digitalrevolver.com/product/automating-administration-with-windows-powershell/

Product Page: https://digitalrevolver.com/product/automating-administration-with-windows-powershell/ Automating Administration with Windows PowerShell Course Code: Duration: 5 Days Product Page: https://digitalrevolver.com/product/automating-administration-with-windows-powershell/ This course provides

More information

Corporate Training Centre (306)

Corporate Training Centre   (306) Corporate Training Centre www.sbccollege.ca/corporate (306)244-6340 corporate@sbccollege.ca Automating Administration with Windows PowerShell: 10961C 5 Day Training Program November 5-9, 2018 Cost: $2,700.00

More information

: 10961C: Automating Administration With Windows PowerShell

: 10961C: Automating Administration With Windows PowerShell Module Title Duration : 10961C: Automating Administration With Windows PowerShell : 5 days About this course This course provides students with the fundamental knowledge and skills to use Windows PowerShell

More information

PowerShell. Scripting in Windows Environments Gergő Ládi

PowerShell. Scripting in Windows Environments Gergő Ládi PowerShell Scripting in Windows Environments 2016.04.03. Gergő Ládi (me@gergoladi.me) About Me MSc Student @ BUTE (BME) Member of KSZK since 2011 Relevant certifications: 2016.04.03. Gergő Ládi (me@gergoladi.me)

More information

Automating Administration with Windows PowerShell

Automating Administration with Windows PowerShell Automating Administration with Windows PowerShell Course 10961C - Five Days - Instructor-led - Hands on Introduction This five-day, instructor-led course provides students with the fundamental knowledge

More information

COURSE 10961B: AUTOMATING ADMINISTRATION WITH WINDOWS POWERSHELL

COURSE 10961B: AUTOMATING ADMINISTRATION WITH WINDOWS POWERSHELL ABOUT THIS COURSE Learn how with Windows PowerShell 3.0, you can remotely manage single or multiple Windows-based servers and automate day-to-day management and administration tasks. This five day course

More information

Powershell. Functions, Parameters, User Input, Providers, WMI Objects COMP2101 Fall 2017

Powershell. Functions, Parameters, User Input, Providers, WMI Objects COMP2101 Fall 2017 Powershell Functions, Parameters, User Input, Providers, WMI Objects COMP2101 Fall 2017 Script Parameters Scripts can have parameters Use the param statement as the first line in your script to add parameters

More information

"Charting the Course... MOC C: Automating Administration with Windows PowerShell. Course Summary

Charting the Course... MOC C: Automating Administration with Windows PowerShell. Course Summary Course Summary Description This course provides students with the fundamental knowledge and skills to use Windows PowerShell for administering and automating administration of Windows servers. This course

More information

Automating Administration with Windows PowerShell

Automating Administration with Windows PowerShell Course Code: M10961 Vendor: Microsoft Course Overview Duration: 5 RRP: POA Automating Administration with Windows PowerShell Overview This course provides students with the fundamental knowledge and skills

More information

John Savill s PowerShell Master Class

John Savill s PowerShell Master Class John Savill s PowerShell Master Class Who am I? NTFAQGuy MCSE NT 4, Server 2012, Private Cloud, Azure, VCP 4/5, CISSP, ITIL v3 Author of the Windows FAQ Senior Contributing Editor for Windows IT Pro magazine

More information

Course Outline. Automating Administration with Windows PowerShell Course 10961B: 5 days Instructor Led

Course Outline. Automating Administration with Windows PowerShell Course 10961B: 5 days Instructor Led Automating Administration with Windows PowerShell Course 10961B: 5 days Instructor Led About this Course Learn how with Windows PowerShell 3.0, you can remotely manage single or multiple Windows-based

More information

Microsoft Automating Administration with Windows PowerShell

Microsoft Automating Administration with Windows PowerShell 1800 ULEARN (853 276) www.ddls.com.au Microsoft 10961 - Automating Administration with Windows PowerShell Length 5 days Price $4290.00 (inc GST) Version C Overview This course provides students with the

More information

Automating Administration with Windows PowerShell (M10961)

Automating Administration with Windows PowerShell (M10961) Automating Administration with Windows PowerShell (M10961) COURSE OVERVIEW: In this PowerShell course, you will gain the fundamental knowledge and skills to use Windows PowerShell for administering and

More information

PowerShell 10961: Automating Administration with Windows PowerShell. Upcoming Dates. Course Description. Course Outline

PowerShell 10961: Automating Administration with Windows PowerShell. Upcoming Dates. Course Description. Course Outline PowerShell 10961: Automating Administration with Windows PowerShell Learn how with Windows PowerShell you can remotely manage single or multiple Windows-based servers and automate day-to-day management

More information

Microsoft PowerShell for Security Professionals. Lab Guide Basics

Microsoft PowerShell for Security Professionals. Lab Guide Basics Microsoft PowerShell for Security Professionals Lab Guide Basics 1 Table of Contents Setup the Console... 3 Help... 6 Find the Right Command... 7 Providers... 8 File System... 8 Registry... 8 Extending

More information

Windows PowerShell. The next generation command line scripting

Windows PowerShell. The next generation command line scripting The next generation command line scripting Presented by Bob McCoy, CISSP/ISSAP, MCSE Microsoft Services Cyber Security Forum 07/18/2007 Windows PowerShell cmd.exe and command.com Lack of scriptable functionality

More information

Automating Administration with Windows PowerShell 2.0

Automating Administration with Windows PowerShell 2.0 Automating Administration with Windows PowerShell 2.0 Course No. 10325 5 Days Instructor-led, Hands-on Introduction This course provides students with the knowledge and skills to utilize Windows PowerShell

More information

10961B: Automating Administration with Windows PowerShell

10961B: Automating Administration with Windows PowerShell 10961B: Automating Administration with Windows PowerShell Course Overview This course provides students with the knowledge and skills to automate administration with Windows PowerShell, using features

More information

10961C: Automating Administration with Windows PowerShell

10961C: Automating Administration with Windows PowerShell 10961C: Automating Administration with Windows Course Details Course Code: Duration: Notes: 10961C 5 days This course syllabus should be used to determine whether the course is appropriate for the students,

More information

This course incorporates materials from the Official Microsoft Learning Product M10961: Automating Administration with Windows PowerShell.

This course incorporates materials from the Official Microsoft Learning Product M10961: Automating Administration with Windows PowerShell. Microsoft - Automating Administration with Windows PowerShell Code: URL: OD10961 View Online In this course, you will gain the fundamental knowledge and skills to use Windows PowerShell for administering

More information

[MS10961]: Automating Administration with Windows PowerShell

[MS10961]: Automating Administration with Windows PowerShell [MS10961]: Automating Administration with Windows PowerShell Length : 5 Days Audience(s) : IT Professionals Level : 200 Technology : Windows Server Delivery Method : Instructor-led (Classroom) Course Overview

More information

Windows Server 2012 R2 Windows PowerShell Fundamentals

Windows Server 2012 R2 Windows PowerShell Fundamentals Windows Server 2012 R2 Windows PowerShell Fundamentals Windows Server 2012 R2 Hands-on lab Windows PowerShell is a command-line shell and scripting language that helps IT professionals achieve greater

More information

Powershell. Working with Objects COMP2101 Winter 2018

Powershell. Working with Objects COMP2101 Winter 2018 Powershell Working with Objects COMP2101 Winter 2018 Objects An object is a data structure residing in memory That structure has places for code and data, those things are called members of the object

More information

10961B: Automating Administration with Windows PowerShell

10961B: Automating Administration with Windows PowerShell 10961B: Automating Administration with Windows Course Details Course Code: Duration: Notes: 10961B 5 days Elements of this syllabus are subject to change. About this course Learn how with Windows 3.0,

More information

Building Powerful Workflow Automation with Cherwell and PowerShell

Building Powerful Workflow Automation with Cherwell and PowerShell Building Powerful Workflow Automation with Cherwell and PowerShell Agenda Welcome & Session Introduction What is PowerShell? PowerShell ISE Commands/Cmd-Lets Operators Variables Flow Control LAB 1 Exploring

More information

Overview of Windows PowerShell 5.0

Overview of Windows PowerShell 5.0 CHAPTER 1 Overview of Windows PowerShell 5.0 After completing this chapter, you will be able to Understand the basic use and capabilities of Windows PowerShell. Install Windows PowerShell. Use basic command-line

More information

Automating Administration with Windows PowerShell (10961)

Automating Administration with Windows PowerShell (10961) Automating Administration with Windows PowerShell (10961) Duration: 5 Days Live Course Delivery Price: $2795 *California residents and government employees call for pricing. MOC On-Demand Price: $895 Discounts:

More information

Govindaraj Rangan Technology Strategist Microsoft India

Govindaraj Rangan Technology Strategist Microsoft India Govindaraj Rangan Technology Strategist Microsoft India Agenda Introduction to Windows Powershell Scripting with Windows Powershell Working with Objects (WMI, COM,.NET) Scripting Best Practices Agenda

More information

POWERSHELL. Introduction COMP2101 Winter 2019

POWERSHELL. Introduction COMP2101 Winter 2019 POWERSHELL Introduction COMP2101 Winter 2019 POWERSHELL VERSIONS Windows Powershell version 5.1 is the target version for this course The get-host command can be used to see your Windows Powershell version

More information

Microsoft Windows PowerShell v2 For Administrators

Microsoft Windows PowerShell v2 For Administrators Microsoft Windows PowerShell v2 For Administrators Course 50414 5 Days Instructor-led, Hands-on Introduction This four-day instructor-led course provides students with the knowledge and skills to leverage

More information

Linux Essentials. Smith, Roderick W. Table of Contents ISBN-13: Introduction xvii. Chapter 1 Selecting an Operating System 1

Linux Essentials. Smith, Roderick W. Table of Contents ISBN-13: Introduction xvii. Chapter 1 Selecting an Operating System 1 Linux Essentials Smith, Roderick W. ISBN-13: 9781118106792 Table of Contents Introduction xvii Chapter 1 Selecting an Operating System 1 What Is an OS? 1 What Is a Kernel? 1 What Else Identifies an OS?

More information

Automating Administration with Microsoft Windows PowerShell

Automating Administration with Microsoft Windows PowerShell Automating Administration with Microsoft Windows PowerShell Cursusduur: 5 Dagen Cursuscode: M10961 Beschrijving: This course provides students with the fundamental knowledge and skills to use Microsoft

More information

COURSE OUTLINE: OD10961B Automating Administration with Windows PowerShell

COURSE OUTLINE: OD10961B Automating Administration with Windows PowerShell Course Name OD10961B Automating Administration with Windows Course Duration 2 Days Course Structure Online Course Overview Learn how with Windows 4.0, you can remotely manage multiple Windows based servers

More information

Learn Windows PowerShell 3 in a Month of Lunches

Learn Windows PowerShell 3 in a Month of Lunches Learn Windows PowerShell 3 in a Month of Lunches Second Edition DON JONES JEFFERY HICKS 11 MANN I NG Shelter Island contents preface xx'ii about this booh author online xx xix about the authors acknowledgments

More information

NuGet Package Manager Console PowerShell Reference

NuGet Package Manager Console PowerShell Reference Appendix C NuGet Package Manager Console PowerShell Reference Throughout this book, you ve seen the NuGet Package Manager Console making use of PowerShell. Although those chapters already covered the most

More information

Index. Symbol. Begin block, 207 BuildConnectionString method, 174, 202 Build in configurations, 296

Index. Symbol. Begin block, 207 BuildConnectionString method, 174, 202 Build in configurations, 296 Index Symbol $bsql, 180 $ConfirmPreference variable, 220 $datetime.toshorttimestring(), 35 $DebugPreference, 222 $DebugPreference variable, 221 $filepath, 226 $LogEngineHealthEvent, 223 $myculture, 219

More information

Essential PowerShell Survival Skills

Essential PowerShell Survival Skills Essential PowerShell Survival Skills Shawn Bolan Microsoft Certified Trainer, VMware Certified Instructor, PRINCE2 Instructor New Horizons of Nebraska Essential PowerShell Survival Skills Welcome! Thank

More information

Bash command shell language interpreter

Bash command shell language interpreter Principles of Programming Languages Bash command shell language interpreter Advanced seminar topic Louis Sugy & Baptiste Thémine Presentation on December 8th, 2017 Table of contents I. General information

More information

PowerShell Master Class

PowerShell Master Class Region Example Creating a PowerShell Script Basics of PowerShell Script Best Practices for Script Authoring Interacting With Users 4 #region CIM Get-Command -Module CimCmdlets Get-CimClass -ClassName *disk*

More information

The power of PowerShell

The power of PowerShell The power of PowerShell Created by Ryan Woodward North Central Missouri College Table of Contents H R P C U G 1. About me 2. What is PowerShell? 3. Installing/Starting PowerShell 4. PowerShell Basics Variables

More information

Unix/Linux Basics. Cpt S 223, Fall 2007 Copyright: Washington State University

Unix/Linux Basics. Cpt S 223, Fall 2007 Copyright: Washington State University Unix/Linux Basics 1 Some basics to remember Everything is case sensitive Eg., you can have two different files of the same name but different case in the same folder Console-driven (same as terminal )

More information

Processes. Shell Commands. a Command Line Interface accepts typed (textual) inputs and provides textual outputs. Synonyms:

Processes. Shell Commands. a Command Line Interface accepts typed (textual) inputs and provides textual outputs. Synonyms: Processes The Operating System, Shells, and Python Shell Commands a Command Line Interface accepts typed (textual) inputs and provides textual outputs. Synonyms: - Command prompt - Shell - CLI Shell commands

More information

Windows PowerShell in Action

Windows PowerShell in Action Windows PowerShell in Action Errors, Updates and Clarifications Bruce Payette July 2007 This document lists all known errors in the book Windows PowerShell in Action by Bruce Payette, published by Manning

More information

Expert Reference Series of White Papers. Five Simple Symbols You Should Know to Unlock Your PowerShell Potential

Expert Reference Series of White Papers. Five Simple Symbols You Should Know to Unlock Your PowerShell Potential Expert Reference Series of White Papers Five Simple Symbols You Should Know to Unlock Your PowerShell Potential 1-800-COURSES www.globalknowledge.com Five Simple Symbols You Should Know to Unlock Your

More information

Learn Windows PowerShell in a Month of Lunches

Learn Windows PowerShell in a Month of Lunches Learn Windows PowerShell in a Month of Lunches by Don Jones Chapter 4 Copyright 2011 Manning Publications brief contents 1 Before you begin 1 2 Running commands 9 3 Using the help system 23 4 The pipeline:

More information

Part I. PowerShell for Exchange Fundamentals. Chapter 1: Getting Started with Windows PowerShell. Chapter 2: Using Exchange Management Shell

Part I. PowerShell for Exchange Fundamentals. Chapter 1: Getting Started with Windows PowerShell. Chapter 2: Using Exchange Management Shell Part I PowerShell for Exchange Fundamentals Chapter 1: Getting Started with Windows PowerShell Chapter 2: Using Exchange Management Shell Chapter 3: Using PowerShell to Deploy Exchange Server 2007 Chapter

More information

Part II: PowerShell s Basic Structure and Syntax... 47

Part II: PowerShell s Basic Structure and Syntax... 47 Contents at a Glance Introduction... 1 Part I: Get ting a Bird s-eye View of PowerShell 2... 9 Chapter 1: The Windows PowerShell Rap Sheet...11 Chapter 2: Customizing and Shortcutting the Environment...21

More information

CS Unix Tools & Scripting

CS Unix Tools & Scripting Cornell University, Spring 2014 1 February 24, 2014 1 Slides evolved from previous versions by Hussam Abu-Libdeh and David Slater A note on awk for (item in array) The order in which items are returned

More information

COPYRIGHTED MATERIAL. Getting Started with Windows PowerShell. Installing Windows PowerShell

COPYRIGHTED MATERIAL. Getting Started with Windows PowerShell. Installing Windows PowerShell Getting Started with Windows PowerShell If you are like me, then when you begin to look seriously at an interesting piece of software, you like to get your hands dirty and play with it from the beginning.

More information

Fundamentals of Leveraging PowerShell

Fundamentals of Leveraging PowerShell Fundamentals of Leveraging PowerShell By Carlos Perez Instructor Carlos Perez (Twitter @carlos_perez) Day job is Director of Reverse Engineering at a security vendor. Microsoft MVP on Cloud and Server

More information

POWERSHELL. Best Practices, Remote Management, Automation and More

POWERSHELL. Best Practices, Remote Management, Automation and More POWERSHELL Best Practices, Remote Management, Automation and More POWERSHELL #ILTAG119 Best Practices, Remote Management, Automation and More @thejasonhelmick Jason-Helmick@Pluralsight.com Author/Evangelist

More information

CSCI 211 UNIX Lab. Shell Programming. Dr. Jiang Li. Jiang Li, Ph.D. Department of Computer Science

CSCI 211 UNIX Lab. Shell Programming. Dr. Jiang Li. Jiang Li, Ph.D. Department of Computer Science CSCI 211 UNIX Lab Shell Programming Dr. Jiang Li Why Shell Scripting Saves a lot of typing A shell script can run many commands at once A shell script can repeatedly run commands Help avoid mistakes Once

More information

Automating Administration with Windows PowerShell

Automating Administration with Windows PowerShell Automating Administration with Windows PowerShell 10961; 5 Days, Instructor-led Course Description Learn how with Windows PowerShell 4.0, you can remotely manage multiple Windows based servers and automate

More information

SharePoint 2010 and 2013 Auditing and Site Content Administration using PowerShell

SharePoint 2010 and 2013 Auditing and Site Content Administration using PowerShell SharePoint 2010 and 2013 Auditing and Site Content Administration using PowerShell 55095A; 1 Days, Instructor-led Course Description This one day class is designed for SharePoint 2010 and 2013 server administrators

More information

Automating Administration with Windows PowerShell V3

Automating Administration with Windows PowerShell V3 Automating Administration with Windows PowerShell V3 Course Details Duration: Course code: 5 Days M10961 Overview: In this course you will learn how with Windows PowerShell 3.0, you can remotely manage

More information

POWERSHELL MANAGEMENT IN A NUTSHELL

POWERSHELL MANAGEMENT IN A NUTSHELL POWERSHELL MANAGEMENT IN A NUTSHELL Jeffery Hicks Windows PowerShell MVP jhicks@jdhitsolutions.com AGENDA What is PowerShell? Why does it Matter? Key Features Demos Resources Q&A WHO AM I? Windows PowerShell

More information

Course Outline: Course Automating Administration with Windows PowerShell v3.

Course Outline: Course Automating Administration with Windows PowerShell v3. Course Outline: Course Automating Administration with Windows PowerShell v3. Learning Method: Instructor-led Classroom Learning Duration: 5.00 Day(s)/ 40 hr Overview: This five day course provides students

More information

Course 10961: Automating Administration with Windows PowerShell

Course 10961: Automating Administration with Windows PowerShell Course 10961: Automating Administration with Windows PowerShell Overview Learn how with Windows PowerShell 4.0, you can remotely manage multiple Windows based servers and automate day to day management

More information

SAMPLE CHAPTER SECOND EDITION. Don Jones Jeffery Hicks Richard Siddaway MANNING

SAMPLE CHAPTER SECOND EDITION. Don Jones Jeffery Hicks Richard Siddaway MANNING SAMPLE CHAPTER SECOND EDITION Don Jones Jeffery Hicks Richard Siddaway MANNING PowerShell in Depth by Don Jones Jeffery Hicks Richard Siddaway Chapter 1 Copyright 2015 Manning Publications brief contents

More information

Shell Programming Overview

Shell Programming Overview Overview Shell programming is a way of taking several command line instructions that you would use in a Unix command prompt and incorporating them into one program. There are many versions of Unix. Some

More information

Mastering Windows Powershell Scripting Second Edition One Stop Guide To Automating Administrative Tasks

Mastering Windows Powershell Scripting Second Edition One Stop Guide To Automating Administrative Tasks Mastering Windows Powershell Scripting Second Edition One Stop Guide To Automating Administrative Tasks We have made it easy for you to find a PDF Ebooks without any digging. And by having access to our

More information

UNIX Shell Programming

UNIX Shell Programming $!... 5:13 $$ and $!... 5:13.profile File... 7:4 /etc/bashrc... 10:13 /etc/profile... 10:12 /etc/profile File... 7:5 ~/.bash_login... 10:15 ~/.bash_logout... 10:18 ~/.bash_profile... 10:14 ~/.bashrc...

More information

Jerry Yasir SharePoint Server MVP, MCT

Jerry Yasir SharePoint Server MVP, MCT ABSTRACT This document is written for developers who would like to get started with writing PowerShell script. It also include examples of using PowerShell 3.0 with SharePoint 2013, Office365 and Active

More information

Bash scripting basics

Bash scripting basics Bash scripting basics prepared by Anatoliy Antonov for ESSReS community September 2012 1 Outline Definitions Foundations Flow control References and exercises 2 Definitions 3 Definitions Script - [small]

More information

TEC US 2011: PowerShell Deep Dive Aleksandar Nikolić Constrained PowerShell Endpoints

TEC US 2011: PowerShell Deep Dive Aleksandar Nikolić Constrained PowerShell Endpoints TEC US 2011: PowerShell Deep Dive Aleksandar Nikolić Constrained PowerShell Endpoints These are the scripts Alexandar was using. You can also find his: Slides here: http://dmitrysotnikov.wordpress.com/2011/08/18/slides-from-deep-dive-sessions/

More information

AppCapture 3.5 Administration. VMware Horizon Cloud Service with Hosted Infrastructure 17.1 VMware Horizon Cloud Service

AppCapture 3.5 Administration. VMware Horizon Cloud Service with Hosted Infrastructure 17.1 VMware Horizon Cloud Service AppCapture 3.5 Administration VMware Horizon Cloud Service with Hosted Infrastructure 17.1 VMware Horizon Cloud Service You can find the most up-to-date technical documentation on the VMware website at:

More information

An administrator s guide

An administrator s guide S AMPLE CHAPTER Covers PowerShell 3.0 An administrator s guide Don Jones Richard Siddaway Jeffery Hicks MANNING PowerShell in Depth by Don Jones Richard Siddaway Jeffery Hicks Chapter 1 Copyright 2013

More information

AppCapture 3.4 Administration

AppCapture 3.4 Administration This document supports the version of each product listed and supports all subsequent versions until the document is replaced by a new edition. To check for more recent editions of this document, see http://www.vmware.com/support/pubs.

More information

Linux shell programming for Raspberry Pi Users - 2

Linux shell programming for Raspberry Pi Users - 2 Linux shell programming for Raspberry Pi Users - 2 Sarwan Singh Assistant Director(S) NIELIT Chandigarh 1 SarwanSingh.com Education is the kindling of a flame, not the filling of a vessel. - Socrates SHELL

More information

COMP 4/6262: Programming UNIX

COMP 4/6262: Programming UNIX COMP 4/6262: Programming UNIX Lecture 12 shells, shell programming: passing arguments, if, debug March 13, 2006 Outline shells shell programming passing arguments (KW Ch.7) exit status if (KW Ch.8) test

More information

Shell. SSE2034: System Software Experiment 3, Fall 2018, Jinkyu Jeong

Shell. SSE2034: System Software Experiment 3, Fall 2018, Jinkyu Jeong Shell Prof. Jinkyu Jeong (Jinkyu@skku.edu) TA -- Minwoo Ahn (minwoo.ahn@csl.skku.edu) TA -- Donghyun Kim (donghyun.kim@csl.skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu

More information

Lecture 5. Essential skills for bioinformatics: Unix/Linux

Lecture 5. Essential skills for bioinformatics: Unix/Linux Lecture 5 Essential skills for bioinformatics: Unix/Linux UNIX DATA TOOLS Text processing with awk We have illustrated two ways awk can come in handy: Filtering data using rules that can combine regular

More information

Sample Application: Frequency of words in text

Sample Application: Frequency of words in text A Word-Frequency Task using CMD, PSH and BASH c 2008 Dr Gonzo Publishing 1 Sample Application: Frequency of words in text It is easy to install cygwin on an XP machine to get the bash command-line interface.

More information

SharePoint 2016 Administrator's Survival Camp

SharePoint 2016 Administrator's Survival Camp SharePoint 2016 Administrator's Survival Camp Installing and Managing SharePoint 2016 in an On -premises Environment Course Code Audience Format Length Course Description Student Prerequisites SSC2016

More information

Review of Fundamentals

Review of Fundamentals Review of Fundamentals 1 The shell vi General shell review 2 http://teaching.idallen.com/cst8207/14f/notes/120_shell_basics.html The shell is a program that is executed for us automatically when we log

More information

Exploring PowerShell Automation Selections by Richard Siddaway Manning Author Picks Copyright 2016 Manning Publications To pre-order or learn more about these books go to www.manning.com For online information

More information

Microsoft Official Course

Microsoft Official Course Microsoft Official Course Module 1 Deploying and Managing Microsoft Exchange Server 2013 Module Overview Exchange Server 2013 Prerequisites and Requirements Exchange Server 2013 Deployment Managing Exchange

More information

WHITE PAPER POWERSHELL FOR DUMMIES HOW TO KEEP TRACK OF

WHITE PAPER POWERSHELL FOR DUMMIES HOW TO KEEP TRACK OF White Paper PowerShell for Exchange- Beginner level to average GSX SOLUTIONS WHITE PAPER POWERSHELL FOR DUMMIES HOW TO KEEP TRACK OF YOUR EXCHANGE Project: Supervision Targeted Product: GSX Monitor & Analyzer

More information

Microsoft. Inside Microsoft. SharePoint Ted Pattison. Andrew Connell. Scot Hillier. David Mann

Microsoft. Inside Microsoft. SharePoint Ted Pattison. Andrew Connell. Scot Hillier. David Mann Microsoft Inside Microsoft SharePoint 2010 Ted Pattison Andrew Connell Scot Hillier David Mann ble of Contents Foreword Acknowledgments Introduction xv xvii xix 1 SharePoint 2010 Developer Roadmap 1 SharePoint

More information

Cisco IOS Shell. Finding Feature Information. Prerequisites for Cisco IOS.sh. Last Updated: December 14, 2012

Cisco IOS Shell. Finding Feature Information. Prerequisites for Cisco IOS.sh. Last Updated: December 14, 2012 Cisco IOS Shell Last Updated: December 14, 2012 The Cisco IOS Shell (IOS.sh) feature provides shell scripting capability to the Cisco IOS command-lineinterface (CLI) environment. Cisco IOS.sh enhances

More information

Linux Shell Scripting. Linux System Administration COMP2018 Summer 2017

Linux Shell Scripting. Linux System Administration COMP2018 Summer 2017 Linux Shell Scripting Linux System Administration COMP2018 Summer 2017 What is Scripting? Commands can be given to a computer by entering them into a command interpreter program, commonly called a shell

More information

Shell Programming (Part 2)

Shell Programming (Part 2) i i Systems and Internet Infrastructure Security Institute for Networking and Security Research Department of Computer Science and Engineering Pennsylvania State University, University Park, PA Shell Programming

More information

Windows PowerShell in Action by Bruce Payette Chapter 10

Windows PowerShell in Action by Bruce Payette Chapter 10 SAMPLE CHAPTER Windows PowerShell in Action by Bruce Payette Chapter 10 Copyright 2007 Manning Publications brief contents Part 1 Learning PowerShell 1 1 Welcome to PowerShell 3 2 The basics 25 3 Working

More information

Essentials for Scientific Computing: Bash Shell Scripting Day 3

Essentials for Scientific Computing: Bash Shell Scripting Day 3 Essentials for Scientific Computing: Bash Shell Scripting Day 3 Ershaad Ahamed TUE-CMS, JNCASR May 2012 1 Introduction In the previous sessions, you have been using basic commands in the shell. The bash

More information

81225 &SSWSSS Call Us SharePoint 2010 S:

81225 &SSWSSS Call Us SharePoint 2010 S: 81225 &SSWSSS Call Us SharePoint 2010 S: +91 93925 63949 Course Objectives At the end of the course, students will be able to:! Understand IIS Web Server and hosting websites in IIS.! Install and configure

More information

Welcome to Linux. Lecture 1.1

Welcome to Linux. Lecture 1.1 Welcome to Linux Lecture 1.1 Some history 1969 - the Unix operating system by Ken Thompson and Dennis Ritchie Unix became widely adopted by academics and businesses 1977 - the Berkeley Software Distribution

More information

Manual Script Windows Batch If Condition. Syntax >>>CLICK HERE<<<

Manual Script Windows Batch If Condition. Syntax >>>CLICK HERE<<< Manual Script Windows Batch If Condition Syntax Command line interface and Batch Files (PRO and SCRIPTING Editions) The Play(Loop) will repeat the macro up to the maximum loop number specified. For more

More information

Multi-Environment PowerShell console AD, Exchange and PowerCLI in one happy place!

Multi-Environment PowerShell console AD, Exchange and PowerCLI in one happy place! Multi-Environment PowerShell console AD, Exchange and PowerCLI in one happy place! With the increase in the use of PowerShell as part of an administrator s toolkit, it can be challening with multiple shells

More information

Powershell: Introduction and Practical Uses. Presentation URL:

Powershell: Introduction and Practical Uses. Presentation URL: Powershell: Introduction and Practical Uses Presentation URL: http://bit.ly/2ick4pt HELLO! I am Chris Wieringa CS Lab Manager for Calvin College cwieri39@calvin.edu 2 1. Goals What we will cover today...

More information

Assignment clarifications

Assignment clarifications Assignment clarifications How many errors to print? at most 1 per token. Interpretation of white space in { } treat as a valid extension, involving white space characters. Assignment FAQs have been updated.

More information

PowerShell-Module Documentation. Release sql

PowerShell-Module Documentation. Release sql PowerShell-Module Documentation Release sql Apr 02, 2017 User Documentation 1 Requirements 3 2 Installation 5 2.1 Option 1: Installer Script......................................... 5 2.2 Option 2: Manual

More information

Contents. Note: pay attention to where you are. Note: Plaintext version. Note: pay attention to where you are... 1 Note: Plaintext version...

Contents. Note: pay attention to where you are. Note: Plaintext version. Note: pay attention to where you are... 1 Note: Plaintext version... Contents Note: pay attention to where you are........................................... 1 Note: Plaintext version................................................... 1 Hello World of the Bash shell 2 Accessing

More information

GMI-Cmd.exe Reference Manual GMI Command Utility General Management Interface Foundation

GMI-Cmd.exe Reference Manual GMI Command Utility General Management Interface Foundation GMI-Cmd.exe Reference Manual GMI Command Utility General Management Interface Foundation http://www.gmi-foundation.org Program Description The "GMI-Cmd.exe" program is a standard part of the GMI program

More information

Chapter 2 Operating-System Structures

Chapter 2 Operating-System Structures This chapter will discuss the following concepts: 2.1 Operating System Services 2.2 User Operating System Interface 2.3 System Calls 2.4 System Programs 2.5 Operating System Design and Implementation 2.6

More information

example: name1=jan name2=mike export name1 In this example, name1 is an environmental variable while name2 is a local variable.

example: name1=jan name2=mike export name1 In this example, name1 is an environmental variable while name2 is a local variable. Bourne Shell Programming Variables - creating and assigning variables Bourne shell use the set and unset to create and assign values to variables or typing the variable name, an equal sign and the value

More information

Shell Start-up and Configuration Files

Shell Start-up and Configuration Files ULI101 Week 10 Lesson Overview Shell Start-up and Configuration Files Shell History Alias Statement Shell Variables Introduction to Shell Scripting Positional Parameters echo and read Commands if and test

More information

Computer Systems and Architecture

Computer Systems and Architecture Computer Systems and Architecture Stephen Pauwels UNIX Scripting Academic Year 2018-2019 Outline Basics Conditionals Loops Advanced Exercises Shell Scripts Grouping commands into a single file Reusability

More information

TechNet Home > Products & Technologies > Desktop Products & Technologies > Microsoft Office > SharePoint Portal Server 2003 > Deploy

TechNet Home > Products & Technologies > Desktop Products & Technologies > Microsoft Office > SharePoint Portal Server 2003 > Deploy TechNet Home > Products & Technologies > Desktop Products & Technologies > Microsoft Office > SharePoint Portal Server 2003 > Deploy Reference: http://www.microsoft.com/technet/prodtechnol/office/sps2003/deploy/spst2003.mspx?pf=true

More information

Unix Guide. Meher Krishna Patel. Created on : Octorber, 2017 Last updated : December, More documents are freely available at PythonDSP

Unix Guide. Meher Krishna Patel. Created on : Octorber, 2017 Last updated : December, More documents are freely available at PythonDSP Unix Guide Meher Krishna Patel Created on : Octorber, 2017 Last updated : December, 2017 More documents are freely available at PythonDSP Table of contents Table of contents i 1 Unix commands 1 1.1 Unix

More information

I m a really lazy person by nature. I m not lazy in the sense that I like to sit

I m a really lazy person by nature. I m not lazy in the sense that I like to sit In This Chapter Chapter 1 The Windows PowerShell Rap Sheet Following the birth and evolution of Windows PowerShell Installing Windows PowerShell 2 Interacting with the Windows PowerShell command shell

More information