1
00:00:00,940 --> 00:00:03,880
Welcome back, everyone, to the next lesson in my course

2
00:00:03,880 --> 00:00:07,440
on Installing and Running PowerShell.

3
00:00:07,440 --> 00:00:09,050
We're working with PowerShell 7,

4
00:00:09,050 --> 00:00:12,140
which we installed on Windows 10 in the last module.

5
00:00:12,140 --> 00:00:16,340
Now I want to show you how easy it is to run and get started with it.

6
00:00:16,340 --> 00:00:19,470
You can get into a PowerShell session a number of ways.

7
00:00:19,470 --> 00:00:22,610
It's really no different than anything else you install in Windows.

8
00:00:22,610 --> 00:00:26,120
You can launch PowerShell from the Start menu.

9
00:00:26,120 --> 00:00:27,350
Now if you don't have it pinned,

10
00:00:27,350 --> 00:00:32,240
you can easily search for it by starting to type pwsh.

11
00:00:32,240 --> 00:00:32,900
Now personally,

12
00:00:32,900 --> 00:00:37,340
I pin mine to the taskbar so I can easily open it at any time.

13
00:00:37,340 --> 00:00:41,600
Or, from any command prompt or the run box, just type the name

14
00:00:41,600 --> 00:00:45,440
of the executable, pwsh.exe.

15
00:00:45,440 --> 00:00:47,410
What I want to make sure you understand,

16
00:00:47,410 --> 00:00:52,050
though, is that PowerShell itself technically isn't the application.

17
00:00:52,050 --> 00:00:56,940
It's an engine that is hosted inside another application.

18
00:00:56,940 --> 00:01:02,340
Now for most of you, this will be the traditional PowerShell console.

19
00:01:02,340 --> 00:01:05,710
This is an instance of PowerShell running inside the

20
00:01:05,710 --> 00:01:10,000
traditional cmd​.exe window, which, as you'll see later,

21
00:01:10,000 --> 00:01:15,740
is configurable so that you can make it easy to read and use. A newer option is

22
00:01:15,740 --> 00:01:18,740
to use the Windows Terminal app from the Microsoft Store.

23
00:01:18,740 --> 00:01:22,440
This is what I use on a daily basis for working in PowerShell.

24
00:01:22,440 --> 00:01:26,240
This app lets you run multiple shells in a tabbed format. You can even

25
00:01:26,240 --> 00:01:30,190
have tabs open for Windows PowerShell, PowerShell 7, or even an

26
00:01:30,190 --> 00:01:33,640
old‑fashioned DOS prompt, and it's highly customizable.

27
00:01:33,640 --> 00:01:37,060
I think of this as the next generation shell for Windows. Now,

28
00:01:37,060 --> 00:01:40,000
it's certainly not without its own limitations,

29
00:01:40,000 --> 00:01:44,080
but the project is definitely a work in progress and is in active development.

30
00:01:44,080 --> 00:01:47,210
These are the two primary ways most of you will probably work with

31
00:01:47,210 --> 00:01:52,000
PowerShell. And as a reminder, there is no PowerShell 7 version of

32
00:01:52,000 --> 00:01:56,130
the PowerShell ISE. For scripting, you are encouraged to use Visual

33
00:01:56,130 --> 00:01:59,340
Studio Code from Microsoft, which is free. And remember,

34
00:01:59,340 --> 00:02:01,930
you only need to install it where you're going to be

35
00:02:01,930 --> 00:02:05,970
writing scripts. Now I know some people use VS Code as

36
00:02:05,970 --> 00:02:08,040
their PowerShell console as well,

37
00:02:08,040 --> 00:02:11,900
but personally I think VS Code is forward scripting. For day to day

38
00:02:11,900 --> 00:02:14,970
and interactive work, I use one of the console apps, either the

39
00:02:14,970 --> 00:02:18,540
traditional console or Windows Terminal.

40
00:02:18,540 --> 00:02:22,280
In fact, if you're like me, you'll spend a lot of time in PowerShell.

41
00:02:22,280 --> 00:02:25,240
You'll want to configure it to make it easy to use.

42
00:02:25,240 --> 00:02:28,050
I'll show you how to set some basic settings later in the demo,

43
00:02:28,050 --> 00:02:31,140
both for the console and the Windows Terminal.

44
00:02:31,140 --> 00:02:36,140
And once you are in PowerShell, as the name implies, it can act as a shell.

45
00:02:36,140 --> 00:02:38,110
This means that you can navigate it.

46
00:02:38,110 --> 00:02:40,440
If you've ever been in a C prompt in Windows,

47
00:02:40,440 --> 00:02:45,000
you'll have no problem getting around in PowerShell, and I'll show you how easy this is going to be.

