r/PowerShell • • Dec 06 '19

Windows PowerShell Introduction

https://www.youtube.com/watch?v=TUNNmVeyjW0
143 Upvotes

14 comments sorted by

View all comments

6

u/OlivTheFrog Dec 07 '19

Ho How much I hate this !

  1. First command ==> No first cmdlet, it's Powershell, not DOS

  2. Use CD. CD is not a cmdlet, it's an alias of a cmdlet. Begin to explain the concept of Alias before to use it rough.

  3. Begin to explain Terminology (Verb-Noun) and parameters. Then explain, that Powershell play with Object (and collections of objects) and not text. Objects haves properties and methods. Illustrate this with some simple examples (i.e. : Get-Date have properties Day, month, ... and methods, AddDays(), AddMonths()) : So simple to explain

  4. After that explain the concept of pipeline before use it without how does it works. I.e. : you can't pass a property to another cmdlet if the property is not in the result of the first cmdlet.

Build a demo for the completly new powershell users, is always a good idea. But build a didactic and useful demo is better.

One positive point for the format (20 in max). After this time, you loose the attention of people.

This video could have been better.

regards

Olivier

P.S. : critical is easy, do the thing is harder, I know it. :-)

5

u/SeeminglyScience Dec 07 '19

First command ==> No first cmdlet, it's Powershell, not DOS

A cmdlet is a specific type of command, one that is a subclass of the .NET class Cmdlet. There are several types of commands that are not cmdlets. Functions (script based commands typically defined with the function language keyword), aliases, external scripts, scripts, workflows (Windows PowerShell only) and native. A cmdlet is a command, but a command is not necessarily a cmdlet.

Use CD. CD is not a cmdlet, it's an alias of a cmdlet. Begin to explain the concept of Alias before to use it rough.

An alias is considered a command at various points in the engine. It is ultimately translated to it's destination command before reaching a command processor so you might be able to consider that subjective, but generally speaking it's considered a command.