1
00:00:01,140 --> 00:00:01,910
For some of you,

2
00:00:01,910 --> 00:00:06,850
it might matter what PowerShell 7 release branch you install from. Now

3
00:00:06,850 --> 00:00:09,280
Microsoft has been doing this for a while going back to the PowerShell

4
00:00:09,280 --> 00:00:13,640
Core days. Organizations have options.

5
00:00:13,640 --> 00:00:16,280
Many large organizations tend to lean towards the

6
00:00:16,280 --> 00:00:19,980
long‑term service branch, or LTS.

7
00:00:19,980 --> 00:00:23,760
This version is synced with the LTS release of .NET

8
00:00:23,760 --> 00:00:27,940
Core. PowerShell 7 is the LTS release.

9
00:00:27,940 --> 00:00:33,070
This means it has about three years of support and doesn't need to be updated.

10
00:00:33,070 --> 00:00:36,950
The branch information is maintained online at this URL. It's

11
00:00:36,950 --> 00:00:39,540
just a JSON file that you can take a look at.

12
00:00:39,540 --> 00:00:43,390
The stable branch is the current active PowerShell release,

13
00:00:43,390 --> 00:00:45,680
and as of the time I'm recording this course,

14
00:00:45,680 --> 00:00:48,440
this is also PowerShell 7.

15
00:00:48,440 --> 00:00:53,580
Microsoft typically releases a new stable branch about every six months.

16
00:00:53,580 --> 00:00:55,220
And if I recall correctly,

17
00:00:55,220 --> 00:00:58,760
this branch is supported for about a year and a half. And

18
00:00:58,760 --> 00:01:01,630
this too has a web resource that you can use to determine

19
00:01:01,630 --> 00:01:03,540
the current stable build.

20
00:01:03,540 --> 00:01:07,240
Finally, because PowerShell is under a very active development,

21
00:01:07,240 --> 00:01:10,020
there's almost always a preview build available.

22
00:01:10,020 --> 00:01:13,110
This is what is coming next. Today,

23
00:01:13,110 --> 00:01:17,780
PowerShell 7 is in preview. Now, eventually it will be

24
00:01:17,780 --> 00:01:20,600
released and become the new stable release.

25
00:01:20,600 --> 00:01:25,760
I assume shortly thereafter we'll see a preview release for PowerShell 7.2.

26
00:01:25,760 --> 00:01:30,100
And as with the other releases, you can keep track online.

27
00:01:30,100 --> 00:01:35,370
PowerShell 7 includes a mechanism to notify you of any new updates.

28
00:01:35,370 --> 00:01:39,780
Now for the most part, most of you probably won't need to do anything.

29
00:01:39,780 --> 00:01:44,290
However, you can explicitly set an environment variable.

30
00:01:44,290 --> 00:01:49,140
If you don't set it, PowerShell will use your current branch.

31
00:01:49,140 --> 00:01:52,890
You might want to set this to LTS if you were on that branch and wanted to

32
00:01:52,890 --> 00:01:56,400
make sure that your users don't get prompted, or you yourself don't get

33
00:01:56,400 --> 00:02:01,690
prompted, to update to something other than the LTS release. PowerShell

34
00:02:01,690 --> 00:02:07,160
will check for updates about every 24 hours. You'll get a notification the

35
00:02:07,160 --> 00:02:11,010
next time you start PowerShell that there is a new version available for

36
00:02:11,010 --> 00:02:12,440
you to install.

37
00:02:12,440 --> 00:02:14,960
But you can disable that notification by setting this

38
00:02:14,960 --> 00:02:18,750
environmental variable in your PowerShell profile, or

39
00:02:18,750 --> 00:02:21,240
however you manage environment variables.

40
00:02:21,240 --> 00:02:24,370
Your other option is to build your own notification system using

41
00:02:24,370 --> 00:02:26,940
the release channel links I showed you earlier.

42
00:02:26,940 --> 00:02:29,930
Regardless, Microsoft won't automatically update to

43
00:02:29,930 --> 00:02:38,000
newer versions of PowerShell. At best, what you'll get is a notification that there's a new update available for you.

