PowerShell Introduction Copyright © 2016 – Curt Hill.

Slides:



Advertisements
Similar presentations
COMPUTERS: TOOLS FOR AN INFORMATION AGE Chapter 3 Operating Systems.
Advertisements

What is an operating system? Is it software?
Utility SQL Bin (v3.3). Agenda  Purpose  Target User  Benefits  System Requirement  User Guide Introduction Navigation Add New SQL Add New Version.
 An operating system (OS) is a set of computer programs that allow the user to perform basic tasks like copying, moving, saving and printing files. 
Copyright © – Curt Hill Files to Hand-In And other things you should know.
NETW-240 Shells Last Update Copyright Kenneth M. Chipps Ph.D. 1.
F2032 Fundamental of OS Chapter 1 Introduction to Operating System Part 4.
Guide To UNIX Using Linux Third Edition
Guide to Linux Installation and Administration, 2e1 Chapter 6 Using the Shell and Text Files.
Introduction to Unix (CA263) Introduction to Shell Script Programming By Tariq Ibn Aziz.
Installing Windows XP Professional Using Attended Installation Slide 1 of 41Session 2 Ver. 1.0 CompTIA A+ Certification: A Comprehensive Approach for all.
Systems Software Operating Systems.
INTRODUCTION TO OPERATING SYSTEMS. An operating system is a program that controls the overall activity of a computer. Like an orchestra conductor an operating.
Introduction to Shell Script Programming
Chapter 18: Windows Server 2008 R2 and Active Directory Backup and Maintenance BAI617.
– Introduction to the Shell 10/1/2015 Introduction to the Shell – Session Introduction to the Shell – Session 2 · Permissions · Users.
Shell Features CSCI N321 – System and Network Administration Copyright © 2000, 2005 by Scott Orr and the Trustees of Indiana University.
®® Microsoft Windows 7 for Power Users Tutorial 13 Using the Command-Line Environment.
Appendix A Starting Out with Windows PowerShell™ 2.0.
Computer Programming for Biologists Oct 30 th – Dec 11 th, 2014 Karsten Hokamp  Fill out.
Shell Scripting Introduction. Agenda What is Shell Scripting? Why use Shell Scripting? Writing and Running a Shell Script Basic Commands -ECHO - REM.
The Command Line Mostly MS Dos with some UNIX/LINUX Copyright © Curt Hill.
Shell Programming. Introducing UNIX Shells  Shell is also a programming language and provides various features like variables, branching, looping and.
Windows Builder An Eclipse Plugin for Creating Windows Graphical User Interfaces Copyright © 2014 Curt Hill.
Operating System What is an Operating System? A program that acts as an intermediary between a user of a computer and the computer hardware. An operating.
Sanjay Johal. Introduction(1.1) In this PowerPoint I will be explaining :  The purpose of the code for each of the two given programs, e.g. to carry.
1 Day 18 Bash and the.files. 2 The.files ls shows you the files in your directory –Or at least most of them. –Some files are hidden. Try: ls –a –This.
CIS 1402: Intro to CIS Tom Gustafson. Facts About PowerShell PowerShell is Microsoft’s command-line interface that provides scripting and management capability.
POWERSHELL BASICS. BACKGROUND  Powershell is a task automation and scripting language based off the.NET framework  It provides the user full access.
Introduction to UNIX CS465. What is UNIX? (1) UNIX is an Operating System (OS). An operating system is a control program that allocates the computer's.
 It is Microsoft's new task-based command- line shell and scripting language designed especially for system administration.  It helps Information Technology.
Batch Files Weaker form of UNIX shell scripts Copyright © by Curt Hill.
THE WINDOWS OPERATING SYSTEM Computer Basics 1.2.
Chapter Eight Exploring the UNIX Utilities. 2 Lesson A Using the UNIX Utilities.
Batch Files Flow of Control to Strengthen Copyright © by Curt Hill.
1 Week 8 Creating Simple Shell Scripts. 2 Chapter Objectives  In this chapter, you will :  Learn how to create Shell Scripts  Commenting / Making Portable.
Batch Files More flow of control Copyright © by Curt Hill.
Windows Server 2003 { First Steps and Administration} Benedikt Riedel MCSE + Messaging
CS 350 Lecture 3 UNIX/Linux Shells by İlker Korkmaz and Kaya Oğuz.
Chapter 2 Operating Systems
Operating System.
Lecture-7 Introduction to DOS. Introduction to UNIX/LINUX OS.
PowerShell Chattanooga
Mostly MS Dos with some UNIX/LINUX
Computers: Tools for an Information Age
Development Environment
CMIT100 Chapter 14 - Programming.
Administration Tools Cluster.exe is a command line tool that you can use for scripting or remote administration through slow WAN links. Cluadmin.exe is.
Python Lesson 12 Mr. Kalmes.
Shell Features CSCI N321 – System and Network Administration
An Eclipse Plugin for Creating Windows Graphical User Interfaces
Computer Fundamentals 1
Console and GUI Programs
Introduction to Programming the WWW I
Python Lesson 12 Mr. Kalmes.
Windows Operating Systems (Cont.)
Copyright © – Curt Hill Bash Scripting Fundamentals Copyright © – Curt Hill.
Compilers, Make and SubVersion
UNIX/LINUX Commands Using BASH Copyright © 2017 – Curt Hill.
Cmdlets “Command-lets”
Copyright © – Curt Hill Bash Flow of Control Copyright © – Curt Hill.
PowerShell Flow of Control Copyright © 2016 – Curt Hill.
Linux Professor Sabol.
Week 1 – Lesson 2: Creating Shell Scripts, Linux Commands
Java Looking at our first console application in Eclipse
CST8177 Scripting 2: What?.
Securing and Sharing a Presentation
An Eclipse Plugin for Creating Windows Graphical User Interfaces
Microsoft 365 Business Technical Fundamentals Series
Visual Basic for Applications: Introduction
Presentation transcript:

PowerShell Introduction Copyright © 2016 – Curt Hill

Shells The notion of a shell dates back to early versions of UNIX or before A shell is a command interpreter It gave an interactive means for a user to use the system UNIX allowed anyone to create their own shell, while Windows was less forthcoming in this respect On most versions of Windows this is the DOS command prompt Copyright © 2016 – Curt Hill

Shell Scripts If the shell can accept commands from a file instead of the console this is called a shell script UNIX had a command redirection feature that enabled this The > and < on the prompt A shell script is a full but simple programming language with variables, flow of control and other features we expect in programming languages Copyright © 2016 – Curt Hill

Microsoft Batch Files The batch language of Windows (and previously DOS) is the script It allowed execution of programs and added the features of a programming language such as comments, variables, decision and looping statements Compared to UNIX/LINUX shell scripts these were unsatisfactorily weak You should have been exposed to batch files previously Copyright © 2016 – Curt Hill

PowerShell History The problems with batch files caused MS to develop a new shell named PowerShell that was released in 2006 This same project had previously been released as a beta under the name Monad as early as 2003 Several releases followed In 2016 MS made it open source and had ported it to other platforms such as LINUX and OS X Too soon to tell if it will be widely adopted outside of Windows Copyright © 2016 – Curt Hill

What is PowerShell? A task automation and configuration management tool It is a command-line shell and a language Designed to allow system administrators to perform tasks on both local and networked devices Based on the .NET framework This makes the portability easier Copyright © 2016 – Curt Hill

In Windows Windows 10, by default, has PowerShell In previous versions it required a separate, but free, installation Copyright © 2016 – Curt Hill

Execution Two possibilities A DOS like resizable window A script file There are four types of commands that may be executed: Executable files on the path Cmdlets (pronounced command-lets) PowerShell script files (.ps1 extension) PowerShell functions Further examination of these is in order Copyright © 2016 – Curt Hill

Window PowerShell is in the Windows 10 menu of all applications Under Windows not Microsoft Clicking on it gives the possibility of the next two screens Copyright © 2016 – Curt Hill

Windows 10 Menu Copyright © 2016 – Curt Hill

In Action Copyright © 2016 – Curt Hill

Notice The prompt looks like a DOS prompt except that it is prefixed by a PS Default background is blue rather than black In this picture are two commands that are the same in either DOS or PowerShell D: to change default disk cd to change directory The prompt has the PS as well as disk and directory Copyright © 2016 – Curt Hill

From DOS Box You may also execute the PowerShell from the DOS box But why? In that case PowerShell takes over the DOS box See next slide Copyright © 2016 – Curt Hill

PS from DOS Copyright © 2016 – Curt Hill

Commentary The exit command works in PowerShell similarly to DOS The cd command changed PowerShell’s current directory, but not that of the enclosing DOS box Copyright © 2016 – Curt Hill

Finally for Now As you can see PowerShell has much in common with the DOS box We will consider the newer and better features in subsequent presentations Of course, we must have a PowerShell assignment! Copyright © 2016 – Curt Hill