CE5148: Windows Powershell Programming

School Continuing and Professional Education
Department Code LEARN
Module Code CE5148
External Subject Code 100960
Number of Credits 10
Level L5
Language of Delivery English
Module Leader Dr Edward Evans
Semester Spring Semester
Academic Year 2020/1

Outline Description of Module

In the earlier versions of the Windows operating system, there was no significant scripting language.  Users could only create simple MS-DOS batch files.  Since version 7 of Windows, a scripting language called PowerShell is available that allows a user to create custom scripts similar to those that have been available in Linux for many years

On completion of the module a student should be able to

  • execute MS-DOS commands at the command prompt.
  • create, execute and schedule MS-DOS batch files
  • invoke and exit PowerShell
  • use PowerShell cmdlets to create PowerShell scripts
  • execute and schedule PowerShell scripts

How the module will be delivered

The module will be delivered via 11 weekly meetings of 3 hours giving a total contact time of 33 hours.  Each meeting will starts with a lecture and finishes with a practical session. 

Skills that will be practised and developed

  • analyse programming requirements
  • develop computer programming skills
  • ability to write PowerShell scripts

How the module will be assessed

Formative assessment takes the form of assignments submitted to the tutor

Summative assessment  is by means of a two hour written class test

 

 

Type of assessment   % Contribution    Title      Duration  (if applicable)   Approx. date of Assessment

Assignment                  40%                  Four assignments each of 10%  Regular intervals

Class Test                      60%                 Class Test                                  2hours  Week 12

The opportunity for reassessment in this module

Only the class test may be taken again but the total mark for the module will be recorded as 40%, the pass mark, when a class test is taken for the second time.

Assessment Breakdown

Type % Title Duration(hrs)
Written Assessment 100 Coursework N/A

Syllabus content

Introduction to MS-DOS commands

redirection of input and output

piping

use of MS-DOS commands to create an MS-DOS batch file

execute and schedule MS-DOS batch files

use of MS-DOS batch processing commands to allow decision to be made

invoke and exit PowerShell

use of PowerShell cmdlets

use of cmdlets to create PowerShell scripts

execute and schedule PowerShell scripts

arithmetic operators

comparison operators

use of If…Else statement

use of While, Do…While, Until and Do…Until statements

use of For statement

use of Foreach and Switch statements  

formatting of output

use of command line arguments

use of arrays

creation of functions

debugging scripts

Background Reading and Resource List

Indicative Reading and Resource List:

 

Windows PowerShell 3.0 by Ed Wilson (downloadable from internet as PDF)

 

 


Copyright Cardiff University. Registered charity no. 1136855