PowerShell Class 2 Substituting for Doug Spindler 1-23-14.

Slides:



Advertisements
Similar presentations
Using Microsoft PowerPoint in the Classroom
Advertisements

How can Microsoft PowerPoint 2007 help you share information?
EXCEL Spreadsheet Basics
Microsoft Word 2010 Lesson 1: Introduction to Word.
XP Tutorial 4 New Perspectives on Microsoft Windows XP 1 Microsoft Windows XP Personalizing Your Windows Environment Tutorial 4.
Microsoft Windows Vista Chapter 5 Personalize Your Work Environment.
Copyright 2007, Paradigm Publishing Inc. POWERPOINT 2007 CHAPTER 1 BACKNEXTEND 1-1 LINKS TO OBJECTIVES Create Presentation Open, Save, Run, Print, Close,Delete.
WINDOWS XP BACKNEXTEND 1-1 LINKS TO OBJECTIVES Starting Windows Using the Taskbar, opening & switching programs Using the Taskbar, opening & switching.
Adding metadata to intranet documents Please note: this is a temporary test document for use in internal testing only.
Command Console Tutorial BCIS 3680 Enterprise Programming.
Office XP Introductory Concepts and Techniques Windows XP Edition M i c r o s o f t Windows XP Project An Introduction to Windows XP Professional and Office.
Copyright 2007, EMC Paradigm Publishing Inc. WINDOWS XP BACKNEXTEND 1-1 LINKS TO OBJECTIVES Starting Windows Using the Taskbar, opening & switching programs.
Google Earth How to create a Google Earth Tour and place it in your Wiki.
Using the “CLI” Unix / Linux Preparation Course May 25 Djibouti.
1.Sign onto VPN 2.Right-click My Computer & select Explore from pop-up menu 3.Go to the View dropdown menu and select Details 4.Go to the Tools dropdown.
Microsoft Windows LEARNING HOW USE AN OPERATING SYSTEM 1.
Project 3 File, Document, Folder Management, Windows XP Explorer Windows XP Service Pack 2 Edition Comprehensive Concepts and Techniques.
Office 2013 and Windows 8: Essential Concepts and Skills
Lesson 1: Getting Started
MICROSOFT WORD GETTING STARTED WITH WORD. CONTENTS 1.STARTING THE PROGRAMSTARTING THE PROGRAM 2.BASIC TEXT EDITINGBASIC TEXT EDITING 3.SAVING A DOCUMENTSAVING.
®® Microsoft Windows 7 for Power Users Tutorial 13 Using the Command-Line Environment.
Exploring Your Desktop To run presentation, please click on bottom arrow to right to change to next frame.
Microsoft Windows Vista Chapter 1 Fundamentals of Using Microsoft Windows Vista.
Office 2013 and Windows 8: Essential Concepts and Skills Microsoft Access 2013.
Win’XP keyboard short cuts CTRL CTRL (Copy the selected item) CTRL+SHIFT CTRL+SHIFT (Create a shortcut to the selected item) CTRL+RIGHT ARROW CTRL+RIGHT.
WINDOWS Part 1 – Start Up Basics
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment.
Office of Education Technology (OET) Active Directory Bulk Import Saturday March 11, 2006 /8:30 – 10:30 AM.
Microsoft ® Office OneNote ® 2003 Training Get to know OneNote CGI presents:
File Management Presented to The Glades Computer Club January 4, 2001.
Productivity Programs Common Features and Commands.
Windows Tutorial Common Objects ACOS: 1, 4. Using the Taskbar 1. Using the taskbar, you can switch between open programs and between open documents within.
XP New Perspectives on Microsoft Windows 2000 Professional Windows 2000 Tutorial 1 1 Microsoft Windows 2000 Professional Tutorial 1 – Exploring the Basics.
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
Using Commands Unix / Linux Preparation Course May 6, 2012 Serrekunda, The Gambia.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 8 Debugging, Creating Executable Files, and Distributing a Windows Application.
MODULE 2 Microsoft® Windows 7 Chapter 1: Navigating around Windows Chapter 2: Managing Files and Folders Chapter 3: Working with Windows Settings, Gadgets,
Click your mouse to continue. The Office Shortcut Bar The Office Shortcut Bar contains program buttons that, when clicked, start new documents or start.
Using Advanced Options Lesson 14 © 2014, John Wiley & Sons, Inc.Microsoft Official Academic Course, Microsoft Word Microsoft Word 2013.
© 2010 Pearson Education, Inc. | Publishing as Prentice Hall1 Computer Literacy for IC 3 Unit 2: Using Productivity Software Chapter 1: Starting with Microsoft.
CMPF124: Basics Skills for Knowledge Workers Manipulating Windows GUI.
Review: File Management Part 2: Formatting Text Part 3: Tools
Lab 0 / Chapter 0 Windows XP Environment. 2 User Interfaces: A different perspective.
Microsoft Office 2010 is the newest version of Microsoft Office, offering features that provide users with better functionality and easier ways to work.
Using the “CLI” Unix / Linux Preparation Course June 9, 2013 Lusaka, Zambia.
Microsoft Word Level 1 Michael Carco. Word Level 1 Agenda  Word Basics  Navigating in a Document  Inserting and Modifying Text  Creating and Modifying.
Computer Skills Chapter 3. Computer Skills1 by Maram & Dareen windows It is a GUI (Graphical User Interface) operating system which is designed for personal.
HTML Concepts and Techniques Fifth Edition Chapter 3 Creating Web Pages with Links, Images, and Formatted Text.
AL A. LAURIO Teacher Microsoft Windows Vista. DESKTOP is the main screen area that you see after you turn on your computer and log on to Windows. it serves.
Creating and Editing a Web Page
© 2015 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner.
Office 2013 and Windows 8: Essential Concepts and Skills Microsoft Office 2013.
With Word & Internet Explorer. Stewart County Elementary School Lumpkin, Georgia Tuesday, August 18, :30-12:30 Mary Starke and Toni Webb Chattahoochee-Flint.
MICROSOFT WORD PRESENTATION. Word Processing  Software that is designed for the entry, editing, and printing of documents.  Windows Version = Microsoft.
Creating Web Pages with Links, Images, and Embedded Style Sheets
Welcome to the Basic Microsoft Word Guide. Before you start this Guide, you will need to complete “Basic Computer”; “Basic Windows” and know how to type.
Project 3 File, Document, and Folder Management and Windows XP Explorer.
Copyright 2007, EMC Paradigm Publishing Inc. WINDOWS VISTA BACKNEXTEND 1-1 LINKS TO OBJECTIVES Starting Windows Using the Taskbar, open & switch programs.
Editing Documents.
Microsoft Word Illustrated
Computer Skills windows.
Introduction to Windows Your Name Goes Here. Evolution of Windows Windows 3.1 –First widely used successful version of Windows –Replaced MS-DOS Windows.
Editing Documents.
بسم الله الرحمن الرحيم.
Editing Documents.
Introduction to Internet Explorer
Computer Skills windows.
Computer Skills windows.
Presentation transcript:

PowerShell Class 2 Substituting for Doug Spindler

Notes are Online

Pin PowerShell to Taskbar Start Search for PowerShell Open it Right-click taskbar button, "Pin this program to taskbar" "Run as Administrator" in Windows 7

Run as Administrator Right-click taskbar button Right-click "Windows PowerShell" Click Properties Click Advanced Check "Run as Administrator" Click OK, OK

Checking Administrator Status Look at the top of your PowerShell window – The "title bar" It should start with "Administrator"

Case Insensitive GET-DATE is same as get-date LS is same as ls – Surprise for Linux users Use Notepad to save commands

Copy and Paste in Notepad Click & drag to highlight text Ctrl+C to copy Ctrl+V to paste This is the standard for Windows, but, unfortunately, NOT in PowerShell (or DOS)

Copy and Paste in PowerShell Click & drag to highlight text in Powershell Press Enter to copy Right-click to paste Ctrl+C cancels a command, it does not copy

Keyboard Shortcuts Tab Completion – Very useful, prevents misspellings – Can hunt for commands – Try get-c Tab Tab again for next alphabetical command Shift-Tab to go backwards through the alphabet Up-arrow history – VERY handy to fix incorrect commands, or to construct similar commands

Red Letters = ERROR

DOS Commands Clearing the screen: –cls –cls /? for help clear works in Linux and PowerShell but not in DOS

DOS Commands Working directory –cd does nothing (unlike Linux) –cd.. goes to the parent directory –cd \ goes to the root of the current drive –cd \Temp goes to C:\Temp (if current drive is C:) –chdir Same as cd

DOS Commands DIR Shows contents of current directory Required often, since you don't have a window showing the contents of the working directory –dir Normal directory listing –dir /w Wide output (doesn't work in PS) –dir /p One page at a time –dir W* Show files and folders starting with w –dir /? Help

DOS Commands copy a b Copy file a to file b mkdir C:\foo Creates directory C:\foo Demo Run in CMD Run in Powershell Save as.BAT file Run.BAT file

Translating DOS to PowerShell Use Get-Help command command can be in DOS, Powershell, or Linux

Get-Help CD Read the whole thing – Append | more for large help pages Note examples at bottom

Help get-help (General) get-help location (More specific.) get-help get-location (Even more specific.) get-help about_locations (And even more specific.) get-help get-* list of all the uses of get (This changes as Microsoft adds more commands..) Look at the difference between – get-help get-location –examples – get-help get-location –detailed – get-help get-location –full

The PS verbs Get, Set and New Get – Retrieves or Gets information. Set – Establishes or Sets a parameter. New – Creates a new item.

Customizing the PowerShell Window Click the icon in the upper left, Properties Can adjust fonts, colors, etc.

iClicker Questions

Which button launches PowerShell? A B C D E

What's wrong here? A.Syntax is incorrect B.Wrong PowerShell Version C.Must open a different Powershell window D.Must use CMD to do this E.Nothing is wrong, the command worked

Which of these is not a valid PowerShell verb? A.Get B.Run C.Set D.New E.None of the above

What action pastes code into PowerShell? A.Ctrl+V B.Enter C.Right-click D.Left-click E.None of the above

What action cancels the current command? A.Ctrl+V B.Enter C.Ctrl+X D.Left-click E.Ctrl+C

What keypress completes a command automatically? A.. B.Enter C.Tab D.Logo E.Up-arrow

What keypress repeats a previous command? A.. B.Enter C.Tab D.Logo E.Up-arrow

What can you add to a command to stop it scrolling off the screen? A.| more B./ more C./p D.| less E.More than one of the above

Challenge Convert to PowerShell

Answer