1
00:00:03,140 --> 00:00:07,640
So let's wrap up our time here together in this course.

2
00:00:07,640 --> 00:00:10,950
Some things I want you to take away, think about,

3
00:00:10,950 --> 00:00:14,740
and put on your to‑do list, first of all,

4
00:00:14,740 --> 00:00:20,450
you have to understand and recognize and treat PowerShell as a foreign language.

5
00:00:20,450 --> 00:00:24,080
Learning PowerShell is no different than having to learn a

6
00:00:24,080 --> 00:00:28,240
language like Chinese or Hungarian or Swedish.

7
00:00:28,240 --> 00:00:33,120
You have to practice it every day, you have to expose yourself to it,

8
00:00:33,120 --> 00:00:36,740
you need to read about it, you need to use it.

9
00:00:36,740 --> 00:00:40,200
That's the only way that you will be able to master PowerShell.

10
00:00:40,200 --> 00:00:44,830
I have been using, or if you will, speaking PowerShell since 2006,

11
00:00:44,830 --> 00:00:47,300
for almost 15 years as I record this course.

12
00:00:47,300 --> 00:00:51,340
So for me, I don't even have to think about it anymore.

13
00:00:51,340 --> 00:00:53,500
If you happen to speak a foreign language,

14
00:00:53,500 --> 00:00:54,540
think about it,

15
00:00:54,540 --> 00:00:58,000
think about how it was when you first started learning a

16
00:00:58,000 --> 00:01:00,180
language or even a programming language,

17
00:01:00,180 --> 00:01:03,930
like maybe you learned VBScript or Python or Ruby,

18
00:01:03,930 --> 00:01:06,440
remember how much you struggled to get started.

19
00:01:06,440 --> 00:01:09,530
But once you get over that initial hurdle and start

20
00:01:09,530 --> 00:01:12,900
seeing how things go together, a lot of it begins to click,

21
00:01:12,900 --> 00:01:15,400
and then you realize, oh, I got this, I understand,

22
00:01:15,400 --> 00:01:18,560
I can now speak this language, and because I can speak it,

23
00:01:18,560 --> 00:01:21,540
I can get a lot of my work done.

24
00:01:21,540 --> 00:01:26,310
Part of the PowerShell paradigm is objects and objects in the pipeline.

25
00:01:26,310 --> 00:01:28,240
Whenever you're working in PowerShell,

26
00:01:28,240 --> 00:01:31,850
always realize that what you're working with are objects.

27
00:01:31,850 --> 00:01:35,160
You're running a command, it's writing object to the pipeline.

28
00:01:35,160 --> 00:01:37,290
You're selecting properties of an object,

29
00:01:37,290 --> 00:01:39,100
you're grouping objects, you're sorting,

30
00:01:39,100 --> 00:01:43,500
you're filtering with Where object, you're always working with objects.

31
00:01:43,500 --> 00:01:45,600
And as I showed you in some of the demonstrations,

32
00:01:45,600 --> 00:01:47,540
you can also create your own objects.

33
00:01:47,540 --> 00:01:51,330
You don't have to rely on PowerShell to give you what you need,

34
00:01:51,330 --> 00:01:54,540
you can tell PowerShell, this is what I need.

35
00:01:54,540 --> 00:01:56,450
Going forward, there's more to PowerShell,

36
00:01:56,450 --> 00:01:56,920
of course,

37
00:01:56,920 --> 00:02:00,470
another big step for you to learn is all about

38
00:02:00,470 --> 00:02:02,630
PowerShell's remoting and remote management.

39
00:02:02,630 --> 00:02:04,920
So these would be things like using SSH,

40
00:02:04,920 --> 00:02:08,790
and remote sessions, and using the cim cmdlets.

41
00:02:08,790 --> 00:02:12,820
These are really key components because PowerShell is a management engine,

42
00:02:12,820 --> 00:02:15,870
and so you want to be able to manage, not only one server,

43
00:02:15,870 --> 00:02:21,040
but maybe 1000 servers, not 1 mailbox, but 500 mailboxes.

44
00:02:21,040 --> 00:02:22,450
You always want to be thinking,

45
00:02:22,450 --> 00:02:28,140
how can I use PowerShell to do more and to do lots of things all at once?

46
00:02:28,140 --> 00:02:32,550
And all of this is really going to lay the foundation for PowerShell scripting.

47
00:02:32,550 --> 00:02:35,740
The more that you run commands in the console and

48
00:02:35,740 --> 00:02:38,430
understand how the console works, and how commands work,

49
00:02:38,430 --> 00:02:39,960
and how the pipeline works,

50
00:02:39,960 --> 00:02:42,540
and a lot of things that we've covered in this course,

51
00:02:42,540 --> 00:02:45,910
all of that will make you a better PowerShell scripter.

52
00:02:45,910 --> 00:02:48,790
If you can't run a command from the PowerShell prompt,

53
00:02:48,790 --> 00:02:52,530
you will never be able to create a script or function around it,

54
00:02:52,530 --> 00:02:57,760
so you have to practice and learn the PowerShell language and understand the

55
00:02:57,760 --> 00:03:03,040
paradigm in order for you to be a great PowerShell scripter.

56
00:03:03,040 --> 00:03:06,540
And then finally, again, I'm going to urge you to read,

57
00:03:06,540 --> 00:03:10,640
read blogs, read social media tweets, go to conferences,

58
00:03:10,640 --> 00:03:14,740
expose yourself to PowerShell and to all the things that it can do,

59
00:03:14,740 --> 00:03:17,090
imagine what PowerShell is doing.

60
00:03:17,090 --> 00:03:20,170
I have found that people who can visualize what PowerShell is

61
00:03:20,170 --> 00:03:24,650
doing in the pipeline have an easier time in writing PowerShell

62
00:03:24,650 --> 00:03:27,370
commands or trying to figure out, hey, how come this doesn't work?

63
00:03:27,370 --> 00:03:31,510
Because they can visualize and imagine what PowerShell is doing.

64
00:03:31,510 --> 00:03:36,960
So read about something, imagine, okay, I need to do this particular task,

65
00:03:36,960 --> 00:03:38,060
how would I do it?

66
00:03:38,060 --> 00:03:39,080
Then try it out.

67
00:03:39,080 --> 00:03:41,240
If it doesn't work, no big deal.

68
00:03:41,240 --> 00:03:45,240
Read the error message, or the warning, or whatever you get back,

69
00:03:45,240 --> 00:03:46,730
repeat, revise.

70
00:03:46,730 --> 00:03:50,280
The more that you do this, the easier it will become.

71
00:03:50,280 --> 00:03:54,750
And then you'll wonder, why did I wait so long to learn PowerShell?

72
00:03:54,750 --> 00:03:58,790
I hear that all the time from people who they get over that hurdle and go,

73
00:03:58,790 --> 00:04:00,140
oh, I get it now.

74
00:04:00,140 --> 00:04:05,740
This makes sense to me, and I want you to get to that point as well.

75
00:04:05,740 --> 00:04:08,530
Thank you so much for spending some time watching this course.

76
00:04:08,530 --> 00:04:11,090
If you go to a conference and I'm speaking that you'll come up

77
00:04:11,090 --> 00:04:14,070
and let me know what you thought about it or any of the material

78
00:04:14,070 --> 00:04:16,840
in the library here at Pluralsight.

79
00:04:16,840 --> 00:04:17,820
Keep plugging at it.

80
00:04:17,820 --> 00:04:19,230
It will get easier.

81
00:04:19,230 --> 00:04:25,000
And I hopefully will catch you in another course later on down the road. Thanks for watching.

