The Complete PowerShell 7 course: Beginner To Advanced | Fettah BEN | Skillshare

The Complete PowerShell 7 course: Beginner To Advanced

Fettah BEN, Apps developer, Business Expert and CPA Marketer

The Complete PowerShell 7 course: Beginner To Advanced

Fettah BEN, Apps developer, Business Expert and CPA Marketer

Play Speed
  • 0.5x
  • 1x (Normal)
  • 1.25x
  • 1.5x
  • 2x
112 Lessons (9h 13m)
    • 1. Welcome to This Course

      2:19
    • 2. A Brief History of Windows PowerShell

      3:44
    • 3. PowerShell Console Overview

      1:49
    • 4. Discover Windows PowerShell and ISE

      4:12
    • 5. Multiples Ways To Launch Windows PowerShell

      2:19
    • 6. Introduction to Windows PowerShell 5.1

      5:01
    • 7. Installing Windows PowerShell

      7:49
    • 8. Installing the Windows Management Framework 5

      3:13
    • 9. Introduction to PowerShell 7

      5:23
    • 10. Windows Powershell vs PowerShell 7

      3:00
    • 11. PowerShell 7 For Windows, Mac OS and Linux

      2:23
    • 12. PowerShell On GitHub

      3:48
    • 13. Download PowerShell 7 Package For Your Platforms

      4:17
    • 14. Installing PowerShell 7 On Linux & MacOS

      3:31
    • 15. Installing PowerShell 7 On Windows

      3:56
    • 16. Downloading Visual Studio Code

      2:01
    • 17. Installing Visual Studio Code For Powershell Scripting

      5:17
    • 18. Customizing PowerShell for Your Comfort

      4:27
    • 19. Introduction To PowerShell Cmdlet

      3:14
    • 20. PowerShell Command Syntax

      4:58
    • 21. PowerShell Snap-ins and Modules

      4:33
    • 22. Running Basic Commands on Windows PowerShell 5.1 and PowerShell 7

      6:07
    • 23. Finding And Using PowerShell Modules

      5:02
    • 24. Importing PowerShell Modules

      2:19
    • 25. Running the PowerShell Module Commands

      4:49
    • 26. Listing PowerShell Module Commands

      4:49
    • 27. PowerShell Modules Paths

      6:04
    • 28. Finding Command of Multiple Modules

      6:35
    • 29. Specifies An Array of Command Verbs

      4:01
    • 30. Filtering Command Through wildcard

      3:28
    • 31. Gets Commands With Specified Characters

      6:17
    • 32. Run Commands in ISE and Visual Studio Code

      4:42
    • 33. PowerShell Cmdlet And Parameters

      3:26
    • 34. Introduction to PowerShell Help System

      4:34
    • 35. Get the Help of Powershell Cmdlet

      4:59
    • 36. Get The Online version of Cmdlet Help

      3:41
    • 37. Downloads and Installs the Newest Help Files

      6:24
    • 38. Understanding PowerShell CmdLet Syntax

      6:01
    • 39. Understanding Parameters Value

      2:42
    • 40. Optional and Required Parameters

      7:39
    • 41. Parameter Name Requirement

      10:43
    • 42. Parameter Description

      4:07
    • 43. Positional and Named Parameters

      14:28
    • 44. Double Quotes and Escaping in PowerShell

      4:24
    • 45. Default Values in PowerShell Parameters

      6:57
    • 46. Multiple Values in PowerShell Parameters

      6:47
    • 47. Parameter Accept Pipeline and Wildcard

      3:40
    • 48. Multiple Syntax of PowerShell Cmdlet

      9:59
    • 49. Introduction to PowerShell Alias

      1:47
    • 50. Alias PowerShell Commands

      4:23
    • 51. Creates A New PowerShell Alias

      4:42
    • 52. Gets and Export Aliases For The Current Session

      4:30
    • 53. Alias Drive in PowerShell

      3:45
    • 54. Introduction to Powershell Engine

      3:42
    • 55. Commands List of Windows PowerShell 5.1 and PowerShell 7

      4:49
    • 56. Verbs Approved To Use In PowerShell Commands

      5:29
    • 57. Gets All Types Of PowerShell Commands

      3:14
    • 58. Gets All Applications Of PowerShell

      3:28
    • 59. Gets All aliases Of PowerShell

      8:43
    • 60. Filter, Function, Script and other PowerShell Commands

      7:12
    • 61. Filter the PowerShell Commands List

      6:19
    • 62. Gets The Syntax

      6:47
    • 63. Get Commands With Specific Parameter Names

      5:44
    • 64. Gets The Events Log

      5:33
    • 65. Get Commands With Specific Parameter Types

      6:06
    • 66. Show Command Info

      6:33
    • 67. The Three Core Cmdlets in PowerShell

      1:39
    • 68. Introduction to PowerShell Providers and Drives

      6:16
    • 69. Understanding PowerShell Providers - Part 1

      5:43
    • 70. Understanding PowerShell Providers - Part 2

      4:02
    • 71. Everything About ShouldProcess

      2:53
    • 72. PowerShell Transactions

      5:43
    • 73. WhatIf and Confirm Parameters

      4:30
    • 74. The Registry Provider

      4:38
    • 75. Using PSDrives

      4:18
    • 76. Managing PowerShell Drives Files

      3:42
    • 77. Create a New PowerShell Drive

      5:33
    • 78. Remove PowerShell Drive

      4:48
    • 79. Introduction To PowerShell FileSystem

      2:21
    • 80. Set Location

      7:42
    • 81. Get ChildItem

      5:11
    • 82. Creates a New Directory

      4:09
    • 83. Creates New Files

      4:08
    • 84. Specifies The Value of The New Item

      2:38
    • 85. Remove Directory

      6:17
    • 86. Remove Files

      4:02
    • 87. Copy files and Folders

      8:16
    • 88. Recursive Copy

      6:08
    • 89. Moves Files and Folders

      6:55
    • 90. Gets Content of The Item

      2:34
    • 91. Adds Content to The Specified Items

      6:47
    • 92. Gets The Security Descriptor For a File

      3:09
    • 93. Introduction to PowerShell Variables

      2:50
    • 94. Naming PowerShell Variables

      4:13
    • 95. Create New PowerShell Variables

      3:58
    • 96. Variables Data Type

      3:41
    • 97. Int32, String, Boolean and Double

      3:59
    • 98. PowerShell Casting

      9:01
    • 99. Gets A DateTime

      4:33
    • 100. Gets PowerShell Variables

      5:08
    • 101. Set, Clear and Remove PowerShell Variables

      4:49
    • 102. PowerShell Variable Drive

      3:42
    • 103. Convert a String To Datetime In PowerShell

      7:00
    • 104. Convert A String To XML in PowerShell

      2:48
    • 105. ValidatePattern And ValidateCount Attribute Declaration

      4:33
    • 106. Creating And Initializing PowerShell Array

      3:39
    • 107. Cast PowerShell Array

      6:58
    • 108. PowerShell Array Index

      5:38
    • 109. Introduction to PowerShell Hash Tables

      3:41
    • 110. Creating And Initializing PowerShell Hash Tables

      6:49
    • 111. Hash Tables Keys and Values

      6:16
    • 112. PowerShell Hash Tables Objects

      7:04
  • --
  • Beginner level
  • Intermediate level
  • Advanced level
  • All levels
  • Beg/Int level
  • Int/Adv level

Community Generated

The level is determined by a majority opinion of students who have reviewed this class. The teacher's recommendation is shown until at least 5 student responses are collected.

21

Students

--

Projects

About This Class

Jump-start your career, and your IT environment, by getting up and running with the latest version, PowerShell 7.

PowerShell is the must-have tool for system administrators. Jump-start your career, and your IT environment, by getting up and running with the latest version, PowerShell 7.

PowerShell is a cross-platform task automation and configuration management framework, consisting of a command-line shell and scripting language. Unlike most shells, which accept and return text, PowerShell is built on top of the .NET Common Language Runtime (CLR), and accepts and returns .NET objects. This fundamental change brings entirely new tools and methods for automation.

Unlike traditional command-line interfaces, PowerShell cmdlets are designed to deal with objects. An object is structured information that is more than just the string of characters appearing on the screen. Command output always carries extra information that you can use if you need it.

If you've used text-processing tools to process data in the past, you'll find that they behave differently when used in PowerShell. In most cases, you don't need text-processing tools to extract specific information. You directly access portions of the data using standard PowerShell object syntax.

PowerShell is rapidly becoming the solution that Operators turn to with its powerful combination of a scripting language, command line speed, and GUI tools (Graphical User Interface).

This course is an introduction to PowerShell where you'll have an opportunity to learn how to replace manual, repetitive, and time-consuming operations with an automated solution.

With a solid foundation in PowerShell, you’ll learn the fundamental knowledge of PowerShell and how to utilize the program efficiently, through these courses, you’ll explore the critical skill of how to use the PowerShell help system and build the command syntax. Next, you'll discover how to use commands and be introduced to aliases, cmdlets, providers, and psdrives. Finally, you'll learn how to configure, navigate, and get the most out of the different PowerShell consoles.

By the end of these courses, you’ll have elevated your PowerShell skills to the next level and taken the next step towards PowerShell mastery.

The ideal students for this course is the system and network administrators that want greater efficiency in their daily administrative work. Whether you have zero scripting experience or are looking for highest-level, advanced training. PowerShell allows you to go straight to the command line and get jobs done with greater speed, consistency and even repetition.

Enroll in the course now.

Meet Your Teacher

Teacher Profile Image

Fettah BEN

Apps developer, Business Expert and CPA Marketer

Teacher

Hi there. My name is Fettah BEN and I want to get real with you for a minute.

Ben is an IT Administrator Diploma and has built a successful business in coaching, online marketing, Web Development, content marketing, Virtualization, Server Administration and lot of other projects.
In this Profile I share with you my skills, my successful strategies and techniques in different fields with an easy ways that takes you from beginners levels to expert levels.

By taking one of my courses you will be able to get the Full Support and Answers to any of your questions.

See full profile

Class Ratings

Expectations Met?
  • Exceeded!
    0%
  • Yes
    0%
  • Somewhat
    0%
  • Not really
    0%
Reviews Archive

In October 2018, we updated our review system to improve the way we collect feedback. Below are the reviews written before that update.

Your creative journey starts here.

  • Unlimited access to every class
  • Supportive online creative community
  • Learn offline with Skillshare’s app

Why Join Skillshare?

Take award-winning Skillshare Original Classes

Each class has short lessons, hands-on projects

Your membership supports Skillshare teachers

Learn From Anywhere

Take classes on the go with the Skillshare app. Stream or download to watch on the plane, the subway, or wherever you learn best.

phone

Transcripts

1. Welcome to This Course: Hey, it's green. And I would like to welcome to the complex PowerShell course, one of the most important knowledge for system administrator. And this course is going to change your IT Cara and how you manage in your IT environment. Whether you use it on Windows, Linux, or Mac OS, when it's come to automation and configuration framework. But what she is the overwhelming favorite, making the standard scripting language on the most popular desktop OS even more dynamically powerful. Ok, this course you will be arbitrary in style multiple version of PowerShell in your machines and know how to open it and customize it to fit your comfort. You will be able to find and use local module. You will learn about the help system, including Aphrodite will help in the stand-in syntax and discoverability. They will go into talk a little about the aliases and how you can be able to use the old Windows and Linux commode with PowerShell is leap. At this moment of the course, it will be easy for you to start running command and working with PAS providers and be as drivers. For that, we're going to see some example to find a common ground and the syntax of this common and then run it to get the required result. Will create copy, rename, move, delete some files and folder or file system. That's mean you will be able to manage files and folders in your machine without any problem, will create and manage some variables. Ris and hash table. See the benefit of using them into scripting process will cost some string and integer value will manage the datetime. And later, we'll see a little about the transaction that is available only in Windows PowerShell. And they will complete the course by covering all the PowerShell operator available and how we can use them to script and filter anytime we want. At the end of this course, you will be able to use PowerShell to do a lot of task. And then you will be able to start creating your first script to automate you walk dropped PowerShell scripting. So let's start learning PowerShell and use each as it was mean to use it. 2. A Brief History of Windows PowerShell: Hello and welcome. To discover the most important tools of Microsoft Windows that scholars do. Powershell or the Windows PowerShell. Lets see how we can open the terminal of Windows PowerShell. So if you remember, in the first time when we cross off, start within their windows, did create a tool collects Cmd or MS DOS. This tool was bowl full to hip mutual manage your machine. But it was not easy to use it. It was a little difficult to use it. So if you remember, we go to the start and we top cmd and we open. So this is do Command branch or the CEO of Microsoft. You seek Microsoft Windows version and the cooperates then see user and the name of the user to help you to darpa do command that you want, for example, help you get some kind of come and use it to manage your machine troppo command prompt. Later, Microsoft develop our powerful tool that scholars Windows PowerShell that is more powerful than the Command Prompt MS DOS and more easy to use than the MS DOS. So for those, if we want to open the Windows PowerShell, it's a really simple. We click on star and we simply pop by war shell. So where do you see that we have multiple program collects, Windows PowerShell Windows PowerShell ISE 32-bit, and to support the PowerShell console 32-bit. So let's discover each one of these. So the first one is the Windows PowerShell. And we see right here that we have another Windows PowerShell x 86. That's mean the 32 bit. If you have a Windows, boy, on the 32 bits, you will get only the Windows PowerShell ISAs 86, and the Windows PowerShell 86. But if you have a Windows world on the 64-bit, if you know how we can get the bit from right here, I forgot to do appropriately. See that's where we have. The system type is 64 bit operating system, 64 Bassett processor. If you don't have this number right here, that's new, you have a 32 bit. If your operation system worked on the 32 bits, you will see it right-hand. So for that, if we use our 64 bit, we also have our 32 bits available in this machine. In case we want to manage our remote server that is welded on the 32, or we want to run a script boiled on the 32-bits, you need drew up under 32 bit to run that script. And if you want to walk on a 64-bit, you can simply open the Windows. Powershell did the same for the ISE. The ISE is do I though, for creating a script. So the Windows PowerShell is the common line that run directly. And the ISA, the integrated Script environment is Drew, creates our scripts and run it. Drew, apply your script in any machine you want. So let's open them one by one and see the difference between the ISE Windows, PowerShell. 3. PowerShell Console Overview: So this is the Windows PowerShell. If we click on it, we're going to open it. So you see the difference between the command plant, the MS dos, and do Windows PowerShell. So it's look similar, just a little difference between the texts. So right here you see the logo or the picture is C, colon backslash. And here you see this symbol that is far most buy PowerShell, the greater than and do in this car. Then we have the name right here is Command Prompt, and here we have Windows, PowerShell and do same. You see right here Microsoft Windows and division of the windows and the copyright. And here you see Windows, PowerShell didn't do copyrights. Microsoft Corporation are right, reserve it. Then we have our new text right here. Tried to new cross-platform PowerShell, aka MS BS score six. We're going to talk next about this version, but no, let's just concentrate on the Windows PowerShell. Then we're going to talk about the newer version colored PowerShell Core, or PowerShell that is across platform. So then you see right here we have the spears, this mirror PowerShell here. We don't have BS, we have C, colon user and do name. The hair. We have BS, that's mean we are into PowerShell, then see user and do name. So this is the difference between MS DOS and the PowerShell, but in the real they're are a big difference between using the Windows PowerShell and using the MS DOS. Do future that you can't do it by using the Windows PowerShell is more than 1000 time what you can't do it by using the MS DOS or the cmd. 4. Discover Windows PowerShell and ISE: Then we have du, ISE, do Windows, PowerShell, ISE Integrated script environments. So if we click on it, it will open the Windows PowerShell ISE. So this is the tool of Microsoft Windows PowerShell to create your script. You see right here this place with darpa, the script right here. Here we can see how the results will be, run it. And here we have some common available to pick up and use it manually. So this is the Windows PowerShell Integrated skipped environment. So it's like in a program, you create your script like that, then you save it. If you want to open on your script. If you want to open our scripts into folder, cards, passed clean indoor Bly to run the script, this is Duran are seduction or discouraged. For example, this one only. And we run it like that. You know, of course you will see a little red hair better not get about distinct. We're going to cover it later. Here if we want to use PowerShell remotely. And here if we want to open the PowerShell console, like this one that we see in the preview and hairdo view, how it will look. One example like that, or like that, or like that, etcetera. This to show the command. For example, if you want to get to come out of the specific keyword. And this show the como Adam, this tab right here. So this is a quick overview about the tool and about the integrated Script environment and about the Windows PowerShell. An important thing that you should do it in your mind every time when you want to run the Windows PowerShell or the integrated scripts environment, is to open PowerShell as an administrator. So you see, we click on it, run as administrator. If you don't open Windows PowerShell, as an administrator, you cannot apply more than 70 or 80% of the command into PowerShell command that need administrator privilege to be run it. So we always run it as administrator. So the difference between Windows PowerShell and our Windows PowerShell run as administrator. That's right here we have the expression administrator colon, the Windows PowerShell. So this is administrator and this is only select Windows PowerShell. So this is the difference between them. But in the real environment when you start working, a lot, a lot of common, we're not going to work if you use Windows PowerShell without the administrator privilege. So always remember to run PowerShell as administrator. Always put it in your ment. Also, if you want to open, for example, PowerShell. When we start using it, a lot of time, we can click on it. And we thought being to-do task bar or to do thought, I alerted the opinion right here you see Windows PowerShell and Windows PowerShell ISE. But in the first time, when you want to do it, it will be infinite like that. So if we check, it's not even right here. So with BOP PowerShell and we go to the bullshit, click on it. We chose beam to start like that. So if we check right here, here is it, it's printed in the star, and I move it to this right here so I can easily get access to it. So the same four do PowerShell, ISE. If you want to use it, you can do the same thing by peanut to start or to do task bar, the task bar at the bottom of the screen. It will be available directly from the bottom of the screen. 5. Multiples Ways To Launch Windows PowerShell: We have another option to open the PowerShell. We go to this VC and we go to the sea driver. We gotta do windows and then system dirty too. And in the system to do with search for Windows, PowerShell is it's Windows PowerShell, the V one, the original version of Windows PowerShell. And here we have the PowerShell dot z, and the PowerShell ISE X-Y. So if we open it is the same as we did in the previous one. But her it show you the path that we are opening it. Open the Windows PowerShell for this bit. So the location of the beat is in the same place, then the same. If we want to open it as an administrator, we chose run as administrator. And is it, it will run as administrator and back to the system 32. And the same for the ESI, we click on it and it will be open as the same as the Windows PowerShell. So this is the second technique to open do Windows PowerShell from the original pate. And also we can't run the Windows PowerShell from the MS DOS. We are inside the MS DOS. We can't stop Beauvoir share like that. And we Presenter, No, we are moving from the command prompt To do Windows PowerShell. So if you check right here, you see that when we run this command, PowerShell, open Windows PowerShell as do same right head corporate, Microsoft Corporation, try new cross-platform and BSC user, the name of the user. So the same we did right here. Or also we can't BOP Power Shell dot exist like that. We'll do the same thing. So PowerShell or PowerShell dot z, it will be the same. So this is how to open Windows PowerShell in your machine. And next we'll see the new cross-platform PowerShell. So see you in the next lecture. 6. Introduction to Windows PowerShell 5.1: Hello again. So no, we're going to talk about Windows PowerShell and different version we have and how we can install Windows PowerShell in our Windows machine. And next we're going to talk about the cross platform of PowerShell. So now let's see the version available in this machine and how we can get different version to your machine. For that, we open the Windows PowerShell and we are run as an administrator. And is it, so this is the Windows PowerShell. And if we want to know the version available in this machine, we have our common that started with the stdio lot BS version table. And instead of tapping the version completely like that and table, we can simply start the word, the first three or four character of the expression. And we click on the tab keyboard. When we click on the top keyword, they automatically complete syntax and use do syntax as do CamelCase, do CamelCase, PowerShell, walk, or use the hormone syntax as the camel case. If you want, you can tap into Google about common case to know about it. So the common case is very simple. The text in the PowerShell that used to come Locke's created as a single word. For example, this is an example. So this is an example. You see we have example as a word and a single word is the word. This is Fort Worth. That's new hub for word in this expression. But it's righted only as one word. So the camel case is very simple. You is always the first character of the word as our capital. So this is an example. So when we see this text rioted in this syntax, that's mean this is our common case format. But if we use, for example, like this, it will be not. This is not an example of comma k. So this format right here, this is not our CamelCase syntax. To CamelCase shoulder B, like that is an example. So in Windows, PowerShell are the common created as our common keys format. And we're going to see it later when we start in a command. It's always good to the first character of the word as our capital, then the other as small character, they have another word, it will be also as our capital. So if we try the same as the DLR PS version. So you see I top ps version has small character, but when I click on Tom, he will change it to do capital character as a CamelCase. So the ps, that means power share as our capital D. And we have the version as the V is our capital than the table t capital. So we simply click on Tab key word to complete the syntax. So if we press Enter, see the version we have. The ps version is 5.1. That's the version of Windows PowerShell in this machine is due five D21. And to know more about the different division we have, you see right here, that's BS compatibility vision. That's mean the other version that is compatible with dispersion is the version one, version two, version three, version four, and we have another version collects version five. So this five version is compatible with the version 5.1. But if I have a script created on the version one or version two, version 34 or five. I can't run it without any problem in version 5.1. But the opposite, it's not correct. If I create a script in the version five, I can run it in R or Windows PowerShell, version two or version three, because there are some difference between the new version and the old version. So to know more about the vision and how we can get different division. See you in the next lecture to know more about it. 7. Installing Windows PowerShell: Hello again. So no installation and do orientation. So you should know that if you have a different windows vision in your computer, you will get a different version of Windows PowerShell. And you should not that Microsoft stops supporting the version one and version two. That's mean only from version three, vision five that will be available to use it. Because the version two was available in the Windows XP. No, Microsoft stops supporting windows expedience mean stops reporting the PowerShell version two and do the same for the version one that is stops reported from a long time ago. So if you have a Windows seven, the service pack number one or the server 2008 R2 service pack one. You already have version two in your machine and you can't get an update to the version three or you need to update it manually by us Tallinn, do WM F 310 to W M F mini Windows Management Framework. You should note that do Windows PowerShell is not a software. You can download it and as pallets directly in your machine. But it's come in our package college, WMS, Windows Management Framework. And we have different versions of Windows Management framework. That's contents do Windows PowerShell and the vision of it. So if you want to update your version in Windows seven or Windows Server 2008, you need to simply search for the WM F 310. Do I get the update to do PowerShell version three? And if you want, for example, to unstyled or version four or the version five or the version 5.1. You simply need to download and install the Windows management frameworks for the specific version you want, for example, version four or version five or version 5.1. And to see if you have Windows eight or Windows Server 2012, you already have our Windows PowerShell three available in your machine. You don't need to do any attempt to get the version three. It's other AD and style it. And if you want, for example, to gulf from version three to version four or two, version five, you need to do the same thing. You need to download the WMS brought and install it in your machine. If you have, for example, Windows Server 8.1 or the Server 2012 R2, you already have the BS version for as palette. So you see we have Server 2012 and December 2012, R2. What's the difference between this one and this one is only the update. If you have a server 2012 and you get an update to the Er2. It's automatically updates the PowerShell three through PowerShell for. So it's happened automatically when you update windows and do so for example, for Windows ten, when I installed Windows ten, machine for yeah, I go, I only have Windows PowerShell five inside it. But when my Windows gets an update automatically from the Internet, and I have the latest version of Windows Update in my machine. I already have the 5.1. I did not install the WFP automatically and starlit drug do update. So this is the y to update your PowerShell version available in your machine to do next version by US style into w, m, f. And I'm not gonna information you should know about it is that when we use, for example, the WM f 5.1 and install it into Windows ten and Windows Server and Windows eight, Windows seven, that's me. Do we have the PowerShell version 5.1? That does not mean that we have the same commode or the same option of do Windows PowerShell five, 0.1. so you should be careful about this point. When we installed the PowerShell version five in different windows, for example, 1087, that's me. We don't have the same future or the same command available in the four or the five machine. Because power washer and the future available in PowerShell, it is interrelation about do windows and not about the version. I'll sort it is interrelation about do software and started in Windows and not about the version. So let me give you an example. For example, windows ten, we have the BS vi dot one. So this is the PowerShell that we're going to get after Stalin, the WM F5, or automatically updated drug the Windows update. But if we have the same version, 5.1 in Windows eight for example, it will be like that. And not to the same. So you see it is less option then do Windows ten. Then, for example, if you have Windows eight dot one, and we have some other software and install it in the Windows eight, for example, and start to Hyper-V and unstable some other kind of software. Do PowerShell option or the command available in the Windows 8.1. In the version 5.1, it will be like that, for example, bigger than do what? Windows ten. So always put in your man, that version does not mean I have the same future and command. The version have some capability, but it is in the ration about do open agent system and the software and started inside it. So I hope you get to the idea between the different division. Even you have the same version in your machine. That's mean if I use Windows ten in this course, and I have version 5.1 and you use Windows seven or Windows eight. And after you have the version 5.1, but there is not meaning that you will get the same common data I get in this Windows. You will have some common not available in your Windows. Eight, for example. A simple example is the Hyper-V. By the way, the Hyper-V is the software of Microsoft to create a virtual machine in Europe computer. If I enable do Hyper-V in my machine, Windows tip and I opened do Windows PowerShell. I have some comments about the Hyper-V como to manage the virtual machine and create a virtual machine into hybrid. But you, in the Windows seven, you don't have to do a hybrid in your machine. So automatically you can't find inner Komodo about virtual machine. So you should be careful about this idea. So next we'll discover more about the different version. So see you in the next lecture. 8. Installing the Windows Management Framework 5: Hello again. So to update your PowerShell version in your Windows machine, you can simply tap into w, m, f, and the version that you want, for example, five dot 0 and search for it. The first result is the one that's where lead you to download the framework. So if we get inside it, you see that we have the Download button to download the Windows Management Framework five dot 0. And here you see a description about it. For example, please download the app, the M version of 5.1 from displace Windows Management Framework and collude updates. You see the Windows Management Framework five dot 0 include update to Windows PowerShell, and do Windows PowerShell, DSC, desired state configuration, DSC and Windows remote management when at M, Windows Management and S3 motion, WMA and some other lot, right, HER2 normal aborted. So if we go to the right here you see the date of the version are readable, hair some update as will happen. For example, PowerShell module discover and star and inventory with PowerShell gate. Powershell script discovered, generate PowerShell command late posit on our data and plant networks, wage, etc. So you see the different updates that will happen to your machine after can study and do WM F five dot 0 here, do you see the system requirement that's mean where you can start the WM version 5. You can't do it for the Windows Server R2 or Windows Server 2012, windows server 2008. That's when you need to have our Windows Server 2008 error to service pack one. If you have only Windows Server 2012, you cannot update your. But we'll share or other software to do version 5.1. It's only available for the vision for and do sin for the Windows 8.1. That's mean if you have Windows eight, you need to update it to Windows eight dot one before be able to install the framework 5-0, then do Windows seven, service pack one, and some deduction if you want to know how to do that. But it's very simple. You download the software and start the installation. And the same for the version 5.1. Like that, we go to the same page, what the version 5.1, you see the same information and here the DTI. What will happen when you install the version 5.1, the update that we will be happened right here, the system requirements and is it a different system and the style instruction. So you can simply click on download and install the version 5.1 if you want to get the latest version of Windows PowerShell in your machine. So next we'll see more about the PowerShell. You in the next lecture. 9. Introduction to PowerShell 7: Hello again. So now we see a little about Windows PowerShell. That's mean the PowerShell that's work on Windows. Only. Know Microsoft start thinking about getting his jewel, true. We run it on other operating system like Linux, Unix and MAC OS. And for that, he creates another version of Windows PowerShell that's colored PowerShell Core, or we call it simply PowerShell. So Windows, when we create Windows PowerShell, it's with this on the.net framework. So Windows PowerShell is welded on the.net framework language. And importantly, the.net framework is not available in the Linux or Mac OS. So products do Windows portion that is welded on the.net framework. It's only work on Windows machine. That's hard. The.net framework. That's mean if you want to run a Windows PowerShell in your machine, you should already have a.net framework and studied in your machine. No, we cross off to want to get more user or more client trees too. So he decided to create our PowerShell as unopened source. That's me know, PowerShell become free to download and on style. And even it is an open source. You can edit the content of the PowerShell to fit what you need. So for that, he creates a PowerShell Core that is welded on the.net caught and not the.net framework. Know the version available of PowerShell that Scarlett PowerShell Core six, that's mean the next version. If you remember, we see that the latest version available in Windows PowerShell is phi dot one. That's mean this is the version available at this moment, and Microsoft decided that this is the latest version of Windows PowerShell. Lets mean there are no other version more than 5.1 of Windows PowerShell. So we seek windows and not only PowerShell, this version that is welded on the.net framework, Microsoft creates a new version, collects PowerShell Core six, and it is welded on the botnet chord. And the botnet score is the software that's work as r cross platform. So no, the newer version, PowerShell, is a cross platform task automation and configuration management framework consisting of a command line shell and scripting language in like roast Chili, which accept and return text. Bold share is wind on the top of the Common Language Runtime, CLR and accept and retune.net object. This fundamental change bring an entirely new tool and method for automation. As we know the PowerShell, the powerful thing in PowerShell is automation of the task. If you want to do some administration task in Europe, environment, or in your server, in your machine, in your data center. It is not practically true. Do the task manually every time you need to create a script to do that. And the best choice ever available to do that is through PowerShell scripting. You create a PowerShell script to do this task and make it automation. So for that, no, PowerShell is available for Linux and Mac OS. So anyone get the powerful offer Windows PowerShell in a Linux or Mac OS machine. As we know, a lot of data center or your environment use Linux machines. So as an administrator, you want to manage the Windows machine and do a Linux machine. But before having the PowerShell code, we cannot create a script to do that for the Linux machine. No, we can't do it without any problem by using the PowerShell Core. So the PowerShell version available is the version six and version seven. The first time when Microsoft create the PowerShell that is with it on dot.net code, he creates the Vision Colored PowerShell Core six. Then at this moment we have the version seven. That's Scarlett only PowerShell. So the first time when they create the PowerShell Core, he colored PowerShell Core six. No, the changed the nature PowerShell seven. So the court is only to know that the portion is with it on the.net car? No. No. This inflammation. So no need to mention two core expression after the word PowerShell. So the simply keep the word PowerShell and do number of the version that is available at this moment. 10. Windows Powershell vs PowerShell 7: And you should know the difference between Windows PowerShell, PowerShell as the same as we say before, between the Windows PowerShell, the subversion in different windows. So we Macrosoft star willed into PowerShell Core, the standard greeting to come on, or the function available in the Windows partial true PowerShell Core. But dot. There's not meaning that the version six have every tank about the vision. Five, 0.1. so you should not use the logic to compare these two versions. What's happened right here, but I mean, we have do Windows PowerShell, that's Microsoft will keep updating the version 5.1, fix the bogs enhanced suntan. But of course the star concentrates on the PowerShell code. That will be the next generation of the Windows PowerShell. So when we use the Windows PowerShell version 5.1, imagine that this is the Windows PowerShell 5.1. When Microsoft create the version, six dots mean our new vision. But in the real, when we check the PowerShell six, it's only like that. Just like that. That's mean the star migrating the commode and the formation or the script or anything I really built into Windows PowerShell, PowerShell Core. So they get at this step right here. So if I have a Windows PowerShell 5.1 and you have PowerShell six, you will get only this small part of what I have in Windows PowerShell 5.1 did the, creates our version number seven that is available right now. We're going to see it and download it to install it. The vision civil, it's become like that. It's almost this. You exceed two. Agreed to come on a little bit in Windows PowerShell to do version seven of PowerShell. So this is the difference between PowerShell and Windows PowerShell. And of course, in the next time, D will create division aids, which line, and et cetera. So you should know that Windows PowerShell, We'll stop are the version 5.1. But the PowerShell will keep running to the version six, version seven, version eight, which lie, and so on and so on. But no, we have only the version seven available. So I hope that you get the idea and we'll see how we can install the PowerShell cross platform in our machine. So see you in the next lecture. 11. PowerShell 7 For Windows, Mac OS and Linux: Hello again. So no, if you want to go from Windows PowerShell, PowerShell. And especially if you have a Linux machine or a Mac OS and you want to follow this course. You need to have a PowerShell in your machine. But you cannot have the Windows PowerShell in your machine. So for that you have only the option of PowerShell do cross platform. You see right here that Windows PowerShell give me this length, that's me and tell me that I can't try do new cross-platform PowerShell. So we copy this link and we go to the Internet and we visit this link to see the information about the PowerShell from Microsoft. You see on Stalin values version of PowerShell. So over the years there have been many Israelis of PowerShell in Israeli Windows PowerShell was built or the.net framework. So I tell you that the.net framework used the 1.5, the Windows PowerShell, and only work on Windows system. So it's only available for Windows system. We do colon trialist of PowerShell user.net score 3.1. That's mean, it's where this, the botnet core as its runtime PowerShell runs on Windows, Mac OS, and Linux platform. That's mean no PowerShell can work on the Linux and Mac OS, and also we can use this on the Windows. It is welded on the goodness, the goodness core also available in windows. So we can run PowerShell or Windows PowerShell inside a Windows machine. So here it's true you how to install, do PowerShell or Windows, or Linux or Mac OS, or even own the IRM and another kind of operation system. So if we click on Windows right here, you will see a lot of information about it to different version, how you can do to install it and so on and so on. But this is for system administrator D can't follow this step. But as our new user to Windows PowerShell or to the PowerShell, you can follow the step right here that will show in the simple way to do it. 12. PowerShell On GitHub: So as I till your Microsoft creates the PowerShell Core has an open sewers and do most foremost place for up and sues software is github.com. There are, for example, GitLab bit bucket. But the famous one is the get hop Holstein to host your open-source software and project. If you want to know more about how we can use the GitHub, you can check my other course about it. So for that, we have the GitHub.com. If you want to go directly to this page, you go to github.com slash PowerShell slash shell. So the first PowerShell is do user, the username of the occurrence created in the github. And second, PowerShell is the name of the project that's colored PowerShell. If we go right here, this is the username PowerShell. So this is the account of the PowerShell team into good hope. And inside the account, the half some project or some repository. One of them is the PowerShell. For example, another project scholars Visual Studio code PowerShell. Then as soon as the winter t2, etc. Then if we go to the PowerShell, the one that we want, it is it is the same length we see before. Here you see the different file and folder of the PowerShell software. It is an opensource. That's mean people can add or edit something right here to enhance the use of PowerShell. For example, if you are a student, listen to our command to do something very useful for the system administrator. You can't do it right hair by sending a pull request to the administrator of this one and he will check it if he see that it will work perfectly and halfs good enhancement to the PowerShell. It will approve this editing and added to the next version of the PowerShell. So for that, drew you to the PowerShell that we want. You see right here, the Read Me file content at description of the PowerShell into GitHub. And here you see Windows PowerShell, PowerShell Core. I'll talk this repository started as our fork of the Windows PowerShell code base. That's me. He starts from the Windows partial codebase change mud in disarray is positive, does not make their way back to Windows. Powershell 5.1. Lets me do update as will happen in this repository right here, will not affect the Windows PowerShell. The Windows PowerShell 5.1, have his own team to do the updates are needed. So this is also mean that issue tracking her. I'll only for PowerShell. If you have an issue of using PowerShell six or PowerShell seven, you'll come back to this website right here. You create your According to YouTube and you got to do is right here. And you create a new issue, right? Her to lead the team of the PowerShell, you know, about it and fix it. So I already explained everything about Git and GitHub in my other goals, how to create issue, pull requests and so on and so on. So if we're back right here and we see new auto PowerShell, if you are new to PowerShell and would like to learn more, we recommended reviewing, Getting Started. This documentation to let you know about PowerShell. Then gets the PowerShell. 13. Download PowerShell 7 Package For Your Platforms: Then get the PowerShell so you can download and install a PowerShell package for any of the following platform. So the first thing you need to choose the platform that you have in your machine. So this is the difference platform or the operation system that is supported through half a PowerShell inside it. And here you see download the latest the latest version, and is it the luckiest one? If we check right here, will show that PowerShell, thus seven dots 0 No.3 when 64 bit and her staff do lattice version that is stable and it is the same. Includes for example, the version 03 still not stay with you. We'll get right where the lattice division is 70 to three, but the stable is seven dot 0 dot. That's mean the version two is stable, but the latest one variable is division three, but still not be stable. And if we check right here, you'll see that it's 7 when the one is 703, but the upcoming version is 7.1 and it's still in the preview. That's me. If you want to use it, you can use it, but It's still in the preview version. It's like a bit of vision. And they are not sure if everything is working perfectly. So the stamp this then it entailed front that no-one have an issue with it, then it will become the next version are readable into stable and in the lattice. So you trick if you have, for example, Windows 64 bit or 32 bits and download the MSI software of Einsteinian do PowerShell. But in case you have the one true and the different version do Debian, CentOS do red-hot, the open Zeus or the Fedora, or do mock oils. You choose the one that beat your operating system. Also, we have some other operation system like this one. Here does it. And here you can also download the partial binary Archie for Windows, MacOS. This one, if you want to get the greenery ownership of the project to download it and do the editing necessary, then installed it in your machine by using the command line. So to get the simple why we go to do Windows 64-bit, that's me. I have a 64-bit. You chose the one that fits for you. And I are a commodity stable version. If you have different division between the lattice and distribute, I are commonly used stable version. So we got to download the Windows version 64-bit. We click on it and here is it. Do download will start. So next we'll see how to install the PowerShell, the available version in your machine. By the way, you can go right here to do, realize and see that different profession we have in PowerShell and we can't use it. For example, if we want to use an old version, we can't go to do really is right here, or we go to the tank. That is it, you see a different version available. For example, you want to use the version 6.2. You can click on it. And you go to the download right here and choose the one that fit for your operation system. For example, linux, ALVINN Linux, arm, Linux 64 beats when arm, when 64 bits, this is the one for Windows, then four dB for r, 12, etc.. Or you want to get do source code. That's mean the original software as an open source to make the editing necessarily for you. So at the same you choose any version you want. So for example, here we have the version 03, the latest one, and the upcoming one will be available later. So see you in the next lecture to unstyled the PowerShell on Windows machine. 14. Installing PowerShell 7 On Linux & MacOS: Hello again. So if you want to install the PowerShell in your Linux machine, you can choose the one that fits your operations is there, for example, CentOS seven or eight. And you click on the constriction to see how you do that from, for example, CentOS seven is the same as sad or eight. So if we click on this, it will take us to the Microsoft website, the one that we see right here before, Paris, Berlin, PowerShell or Linux, the same page right here. So this is, will take you directly to do operation, the version that you chose. So to OnStar Rhea package. As I don't have a Linux machine to do that, you can simply follow the constriction, right? Her drew as palette sort. You can simply run this command register, the Microsoft agreed heart repository. You run this command to get the version seven of PowerShell and the production repo, the file. It will download the file from this URL and run this pseudo tea to do it. Then you start the sudo yum and span. Thus, why PowerShell? This one, we're going to create a repository of the PowerShell in your machine. And this one will start installing it in your machine. So linux use the YUM installation. And then when you complete the installation, you can start bleep up WASH. to open the PowerShell in your console of Linux. So the same for the other version, for example, the Debian ten you can run this command is the same as CentOS. You give it the length. Then you do dp KG package to give the package sudo up BET, GET update, to get the update. Then still do RPT get install. Dash y, PowerShell. Drew unstyled the bullshit in your Linux machine. D, b ws, ash drew upon PowerShell. So there are different regression and how to do that. Installation is supported VR's mapped for instruction, see snob package. So if you have eroded to 18, you need to follow this link to get to step through the same photo, 19420 and so on and so on. And the same for MacOS. You're can't suddenly go to Start PowerShell or MAC OS. And you run this command right here. It's really simple. This command will go into download and unstyled the PowerShell, then the PW SSH to open do PowerShell. And if you want to update your current around this command to get the update, for example, from version six, version seven. And there is it to come on a reservation table, get the version available. So I hope that it's a very simple to do this step right here, because I don't have a mach machine, so I cannot do the step right now to show you how to do that, but it's very simple and the same for the Linux machine. So see you in the next lecture. 15. Installing PowerShell 7 On Windows: Hello again. So to install PowerShell in your Windows machine, we simply run the download software that we downloaded in the previous lecture. And we follow the step as simple as possible. This is PowerShell seven. That's mean version available at this moment. If you have another version available, it's not the problem you can follow the course for. Our upcoming version will be the same as what we going to see in this course. But if you have an old version, for example, PowerShell sticks, you win, have some common not available in that version because it is an old version. So I always recommended to use the latest version available in the GitHub PowerShell. So we click Next. Next, the part that chose to unstable it at PowerShell to the part environments, you should check this one. Lit a PowerShell available into plant environment, the register windows, PowerShell remote. In this one, we're not going to use it, but we're going to see it later if you want to use the remote PowerShell. And odd open here, contexts miniature explorer, if you want to add it to the Explorer. So we click Next and we chose n star. It's very simple to install the PowerShell in your machine. So how is it we can chose to launch PowerShell or we can do it manually. So we click finish. So we got to start right here and we top as the same way we did in the preview with tough worship. And here it is, this PowerShell 764 bit. So we click on it to open it. You will see that is the same as Windows PowerShell. So like that. So this is the Windows PowerShell and distance do PowerShell seven. We know the version available is the same with top a pseudo lot BS version table. We click OK and he will complete it with this anther No do version is seven dot dot f1. And here the acetyl RPS version table like that is 5.1.1. If we check right here, you will see that this is Edition 0s on the core version. That's mean this is the core edition and this is the Desktop Edition. That means this is a Windows PowerShell. And this is our PowerShell Core that is welded or.net. So the same the or as Microsoft Windows. This is the windows available in this machine. If you have Linux, you will see right here Linux machine, et cetera. The platform is when two, t two and t, That's me. This is running in the Windows machine and not indeterminate is compatibility is 12345, etc. The Smith, if you have a script welded or Windows PowerShell, you can run it without any problem in PowerShell seven and so on. So this is the difference between the PowerShell and Windows bullshit. And to save for PowerShell, we can't run it also as an administrator, so that is it. Click on it. We chose Pin to Start. And is it no, it will be pin it right here. And we click on it. And we chose ran as administrator, always open PowerShell grant as an administrator. So next we will see how to customize the PowerShell to look more clear for using it in the next lecture. So see you in the next lecture. 16. Downloading Visual Studio Code: Hello again. So as we see in the preview lecture when we talk about Windows PowerShell console, that's mean the one that we use it to run the command and answer. We have the Windows PowerShell Integrated Script environment, the one that we cleared the script inside it. So here we create the script that we want and receive it to use it later. But now, as we have the version seven, the PowerShell seven, if we want to create a script or PowerShell seven, we cannot do it in Duke Integrated Scripting Environment. The integrated scripts environment is only available for Windows machine and only walk. We do Windows PowerShell 5.1 and old version. That's me for well-run right-hand version table, but it's only random version 5.1 and not the version seven. So for that, Microsoft have another option by using the vizier Studio code. This open source software will lead you to create a PowerShell script inside it and run it in your PowerShell. So for that we go to the code dot Visual Studio.com and we download the Visual Studio for Windows because I use Windows, if you have a Linux, you can chose the Linux one. And for the MacOS, download the version available. Of course, he will automatically detect your operating system and we'll show you the one, right for you. So for me it's Windows, so show me windows. So we click on Download, and he will start downloading the version I already downloaded and installed the Visual Studio code in our machine. 17. Installing Visual Studio Code For Powershell Scripting: So the head is it download Visual Studio Code. We click open and we start the installation. So we accepted the dam next, next, next. And the same for the paired. If you want to create a desktop icon next, next and stop. So no, we are styled the Microsoft Visual Studio code that will lead you creates our PowerShell script and also its work for different programming language like Python, C sharp, and so on. By the way, the PowerShell scripting is powerful as the same as Python scripting. As we know, the Python language is very farmers. Do PowerShell script. It can bid, do Python scripting in system administration. So we click finish through lunch, do Visual Studio code, that is it. And we need to make our negative du. Let the Visual Studio code walk with over-share. So head is it the Visual Studio code that we're going to use to create our scripts. So in the first time, you will get this complex right here you see that the Visual Studio Code constitute broad JavaScript's Python, PHP, Docker and more. And the same for the PowerShell. He also conscript boards do PowerShell. So the next step we need to do to MC, the Visual Studio Code supported the PowerShell is to go to the extension right here. And here we have some popularity extension. So for example, if you want to create a Python script, you need to install Python. If you want C plus plus C Sharp, et cetera, you need to onStart the plugging for this one. So for that we want to use the PowerShell. So we simply search for the PowerShell. And you see this is the version that we want, the PowerShell, we click on it. So you need to download this extension or this plug-in to lead the Visual Studio Code to report the PowerShell language. There are a lot of other extension, but this is the important one that is from Microsoft. So we click on style. That is, is it will download and install the PowerShell extension into Visual Studio code. So you see this extension provide the rich PowerShell language support for Visual Studio code? No, you can't write and debug PowerShell script using the excellent idea like interface that Visual Studio code provide. So head is it when you install it, it will change the one to PowerShell, ISE or too dark, the preview one that was dark, which going to chose the PowerShell ASA, this one look better. So see right here, it change it to the PowerShell Integrated console version 2026. This is the latest version available head as it version. So no, we're back right here, or we can close this one right here. And here you see that no, we are in the PowerShell Integrated scripts. And if we take a pseudo RPS version table like that, it will show you that this is the version 5.1. That's mean the Visual Studio code integrated with do Windows PowerShell version five. If we want to move to the version seven, we can click on this one right here. And we chose the PowerShell slash seven, be WASH. if you remember, if you run a PowerShell in Linux or Mac OS used the expression b, w is h. So we click on it. There is it. If we click on this new one, it will move to the new PowerShell. Be WASH. that is it. No, we are in the PowerShell seven version 703 and the same if it were random version table, make that USC it will be seven dot 0 core edition. So now we have the integrated Script environment for Windows PowerShell, and do Visual Studio Code to create two scripts of PowerShell, seven, or even the old version 5. So this is the important software necessary to follow the course. You should have the PowerShell seven and do Visual Studio Code and Einstein expansion of PowerShell inside it. So you can use it as Integrated Scripting Environment. All you can't follow the course by using the old Integrated Scripting Environment and the Windows PowerShell 5.1. So see you in the next lecture. 18. Customizing PowerShell for Your Comfort: Hello again. So when you want to start using the PowerShell console, you need to customize it to fit your environment and to avoid mixing some earlier when using the text in the console. So for those we can customize the terminal of the power ship by clicking on this picture right here. And we chose property. So here we can change the size of the text and the templates. So before that, let's get an example. So for example, using this size and font of the text, if, for example, Sumi come up or karma colon or using the single quote, double quote, or square bracket or guarantees, or curly brackets. Any symbol does we're going to use it. It will be difficult to read the contents right here if you see it did look similar between the priorities and do purely bracket. And the same for the camera and colon and tsunami come up. So for that, we need to change the property of the console by using our big size, for example, 18. And we need to choose a font that will look good. For example, her career or for example, consoler. Let's try consoler or lucid console. So let's try console off. First head is, is, you see, you know, the texts more clear to read. If, for example, chose lucid consoler, like this one. Here is it, it's no bigger and we can't read the text without any problems. So we see this is Samira comma, this is comma colon, single quote, double quote, square bracket. I want this and curly brackets and so on. So this is important to do it. We already did it in the Windows PowerShell, and no, we do it in the PowerShell Core. So we can also make a screen, the background of the screen, blue, like this one. That is it. So we need to close it and open it again. So it will be applied. And is it ran as an administrator? That is it know the color of the background become blue. And this is the famous color of PowerShell. When we see a console that has a blue background, we automatically know that this is due shin and not do Cmd. Of course, we can change the color of the same digit become blue. But the storm br of the software is that the same? The always have APOC, background, dirt, PowerShell and half are blue, back ground. So the same, you can customize the text, the pop up text and so on and sold jus feature option. This is the buffer size. This is the proper size, that's mean the size of the software like that. This is the buffer. We can't control it from displays. And we always recommended that the buffer size of the white short equal do windows size of the white. That's mean the wide of the buffer size. That's mean this is the buffer size of the wide in this direction. If we put it, for example, like this one, that means 13 or 14. And up in the window size 100, that's mean the text will be inside the screen and we'll need to move the scroll bar from this direction to seek the content. So always recommended that the window size should be less than do or buffer size or should be equality. To avoid that problem, then the font we see it and option if you want to make some editing and the terminal. So this is the important editing to do it, to customize PowerShell console. So when we tap any tank into PowerShell, we can easily read the symbol inside it. So I'll see you in the next lecture to start running our command in PowerShell. So see you in the next lecture. 19. Introduction To PowerShell Cmdlet: Hello and welcome in this new section. So note we're going to start running some real common in PowerShell. So as we know, PowerShell consisting of our common line shape and a scripting language. So when we see a command line, that's mean we use some command to do some task. For example, when we use the common line right here, the cmd, we run this command, for example, via Mike DADT or CD, two bags to the preview and so on. So this syntax we use write HER collared command. So this is our command. And this is a command if we're run another column on the right, her like that. What example, CD two, something like that. So this is our command. But in PowerShell, when we run our common, that's mineral rights are syntax criteria to run it, it, we do not call it, are common, but we call it R, C and D late. So when we use PowerShell, we talk about Cmd late. That's come on late. This is the expression, specially for the PowerShell command. So do seem delete is a light white command that is use it in the PowerShell environment. The power-sharing runtime invokes this cmd delete. We do context of automation script that are provided to come online. The PowerShell run-time also invoke them programmatically dropped. Powershell upbeat. So when you're right, though, common writes her or in a script, it is colored cmd and PowerShell will handle this cmd delete drew grandeur, right? Script, alright, function that the command do. So do Cmd, lead are the man why to interact with do command line interface. If we want to interact with the PowerShell, we lose the cmd late. That means this is the man. Why to interact with the command line interface because we have some other kind of format that we can use it. It's not the same, but the man command we use in PowerShell is do SIM D late. So the most cmd D leads are writing in C Sharp and comprise it of constriction designer to perform a function that returns a.net object. So you should know that when you see the expression Cmd delete, that's mean a PowerShell command. And this PowerShell Cmd lead is greeted drug the C sharp. In the upcoming section, we'll see how we can create our Cmd late, but by using the PowerShell scripts and not do C sharp. So this is the first important thing you need to know before you start running the command. So see you in the next lecture. 20. PowerShell Command Syntax: Hello again. So now we see that all the men come out of our share is the seam delayed. And this CM delete is rightly in c-sharp. That's mean the developer teams creates that command to run drug do C sharp scripting to get the result necessary. So when we see SCM delete button, when we see a specific format to create that command. And in PowerShell, we use are the cmd lead in a specific format that's colored verb, dash, noun. When we want to create our seemed delete, we created as the format verb dash. Now, like that, are the CM delayed in PowerShell created in this format. So always remember that we create verb, dash or minus noun. So as an example of our common late, I've really been in PowerShell that scholars get dash, date. You should know that's PowerShell. Use a simple expression that have the same meaning of command. If you remember right here, if we want to tap dire, but I mean, we want to see the different file exists in the paid see user habitat. So we use the command that does not have any meaning in our dictionary. We don't know that the expression buyer minium to show content in the folder. But in PowerShell, we use logical command to get the result. So by suitably read The expression, good date, that's me. You automatically know that this command will give you something about the date. And if you see right here, the verb is gate, the noun is date. So let's do it like that. This is verb. So the verb is Gate and the noun is date, like that. And of course we use do CamelCase expression. The comma k is syntax. You see the first character in capital, then the rest of the word. The second word starts with another capital. So always PowerShell use the camel case. By the way, the PowerShell is not a case sensitive. That's me. If you write the character in a capital or not, are capital, it's not our problem in some other programming language. If you write, for example, get date, it's not the same as good date. So in another language that is a case sensitive, this command is not the same as this one, but in PowerShell is the same. These two command is the same because it is not a case sensitive. So this is the syntax to write R command. You always write the verb at the first dean, the noun, good, date. So let's run the command. Get date in a smart character. So with top until we get to resolve of the date right now. And the same if we do it in our capital character, for example, gate. They eat like that. The same result. But the common keys format is always the first character in capital, then the second character of the first keyword also in our capital. So please enter is always the same result. So this is meaning that's PowerShell is not artist sensitive. And also we can simply type begets and dash. Then we start with the first or 2 first character of the second expression. Because on a day like that and we'll press tab, it will show you different como dot star with d, e you until you get to do write one. So d, that's me. The days and other common da, Client expression. The connection, the on three points, table A1, etc, until you get to do the date in date. So it automatically change the format to do CamelCase. So good, smart character, date like that. So it changed automatically literal common keys. It will press Enter, it's the same result. So always remember to use the command as verb, dash, noun. So next we will see more about the common late. See you in the next lecture. 21. PowerShell Snap-ins and Modules: Hello again. So another important information about the command lit, when Microsoft create those common lead, the seaweed inside R p is snappy module. In the first time when PowerShell start, decree is common late inside R P is not been. And when we ran the command PowerShell, he automatically good, do script or the information that the Duke from our specific file call it p is snapping and our thought there are another package colored module. So do ps. Smart pin. Like that. Dou P is snapping is been edified, usually our DLL file developed by a third party vendor that content new commonly, but you can use with our PowerShell session scripts or function. So when we run this command, the PowerShell search for this command from our DLL file that's colored BS. Snapping, that cleaned off is our slapping to get do information about Duke command and give you the result that fit this command. So this is how PowerShell and do, do different common line. And also we have more deal. The new generation of the command is CVD in our module to the ps snapping is the original package for the common line for the CMNH delayed. No, we have the module that is our packers does content PowerShell commands to the same BS mapping content PowerShell seem delete and module also, content PowerShell, CM delayed. You should know that we have the cm delete and also we have some function, some workflow, some variables, some areas is R, This data is severe inside are more dude. So people who receive our module can add the command in the module today or PowerShell session and use them just like the width end command. So if we want to use the simple PowerShell, we use the ps snappy and some principle or basics module.com. We do PowerShell to handle the different functions available in the PowerShell. But in case you want to extend your PowerShell by using some other kind of command. There are some new module of it every time that help you to get more. Command. Drew ran it in your session. So for that, we have something callee's module. And next we're going to see how we can get the module and import the module in our session. So we can use this command available in that module. So every module have some specific command late, that is interrelation about that model. And also, for example, if developer, hopefully it are specific software. For example, if we start the Exchange server in our machine or unstyled Hyper-V or any other kind of software. And the developer of that software warm the administrator to be arbitrary manner that softer Arturo do. Powershell command line decreed a specific module for that software. And when we installed that software, we get the module and integrated with our PowerShell. So we'll be able to use that Komodo, especially for that software. For example, a farmer's software colleagues, hybrid V. When you installed the Hyper-V in your machine. To create the virtual machine, you will find a new module colored Heiberg available in your PowerShell and Aldo common available inside it, you can get it. So next we will see how we can check to command available in a specific module. For example, the Hyper-V call, any other module. So see you in the next lecture to discover more about the calmodulin. 22. Running Basic Commands on Windows PowerShell 5.1 and PowerShell 7: Hello again. So you should know that anytime we do it right her we can't do it also in the PowerShell seven. So the same idea and the same information, we run the common good date and we click down they completed and give us the same result as the Windows PowerShell. So if you follow this course, truck Windows, PowerShell, five dots, or PowerShell seven is the same, but in case some different will be available. And I tried to mention it, drove to court. So if we want to clean the screen reasonably use the old command of the common line, cmd does CLS. So the good tank in PowerShell that we can use the old command of command line like CMD or the common line from the Linux and so on. So this is one of the benefit of using PowerShell that if you already have experience with common line, you can easily integrated with the PowerShell, you can use your old command to run and get the same result in the power shell. So the same for the PowerShell seven here, is it the same result? So I know we talked about the common late and that common laid exist in RPS not being or in our module. So see the PSS sloppy. We have our command colored, good BS. It's not been and we clicked that like that and you will see the commode is completed. So ever please enter we have do ps snappy available in this Windows PowerShell extension that skeleton microsoft dot PowerShell bought crop. That's mean this is the name of the snot beam that's content do cor command. So PowerShell have some core current and some other command. So description, this Windows PowerShell snap been content commonly use it to manage component of Windows PowerShell. So to manage the component of Windows PowerShell, we use the commode that exist in the slot being Microsoft PowerShell Core. And importantly, discover and still not available in the PowerShell seven. If we run it like that, you will see that it does not exist. Ps is not been even I clicked up, it does not complete it. If we're complete it, it shows you that gets PS snapping the ten gets snapping is not recognized as the name of common lake or function or script file or odd parabola program. So he tell you that this common still not exist in the PowerShell as ITU. The new version where it is on the record have some difference than the Windows PowerShell. And some command that exist in Windows PowerShell still not be available in the PowerShell version seven or PowerShell Core. So this is the smart been available and do seem if want to get the module. So know, if you remember this expression right here we use verb and now, and here's the logic to get the command. So for that to seem idea, as we get the ps snappy, we can't get the module by using the same expression. So we pub Good dash and with top module. So we'd simply start the first character of the module and we click that. He will complete it. So you see good modules. So if we press enter, you see that we have different modules available. Microsoft's PowerShell management, Megalosaurus, bullshit agility, and bs redline. And the version did some command that exist in the module. Powershell management, for example, to add computer. At content checkpoint you see are the command, write it in the same format of verb dash now. So add verb computer, now, add verb content, now, checkpoint verb computer now and so on. And the same for the other modules have this kind of command. And to save for the third module have this gain of command. So the same thing will happen right here. If we thought the good module, you will see it's the same result. That is it. But no, this is greatest for the version seven. That's mean they add this module in the version seven and not in division six as ITU. The PowerShell is a new program and not an update of the all the Windows PowerShell, this is our new brand software collects PowerShell and the star, mirroring or migrating Tacoma that already exist in PowerShell to do PowerShell Core. So the creates the module PowerShell management and add Aldous comma that is the same. For example, add computer is add content, clear content, clear item, and so on. Of course we are going to see the list of the different command later. And the add this module in the version seven and the same for this one. And this one already exists because this is our script. And so he can only copy and past the script to do a new version of PowerShell seven without any problem. So he keep the version, draw the arrow to the old version that exist in this one. So this is how to get the module and do ps mapping. And next we will see more details about how we can handle the module and do command. So see you in the next lecture. 23. Finding And Using PowerShell Modules: Hello again. So we see that the common leed exists in modulus and know how to use our module. That's me. We want to use that module that's content, some specific commands so we can use it in our session drove the PowerShell console. So the step to using our moderate is to unstyled do module. But this is often done for your, when you ask part, for example, doing douse, there are some module or style it automatically. When you start a specific software here, automatically add the module to the paid of dividends module of PowerShell and so on. So you don't need to install the module manually because it's always done for you. But in case you have A-module, didn't ask Dalit, you can add it to the bait and we're going to see it later. So the next thing is to fund the command that DOM module update. That's when you see the difference of command available in that specific module. For example, necrosis PowerShell management. This is the different commands available and there are more command right here. We can't see it. We're going to see how we can get to come out of a specific model. Then we use the common dots DOM module added. That's me in that module. And we get this command. We can use it to do the task that we want. So to fund a module that already exists in your machine will run this comma that gets module. And when we run this command and get more, do it. Show you only the module that is loaded in your station. When we open PowerShell, we open our specific session. And when we work on neat, we use some specific module that is loaded automatically. So this is the module available in this session. And if we want to get other module available in our machine so we can use it later. We run the command git module like that, space, and we tap dash and report list available. So with top on the list and click dot, he will show you list available. That's me. Show me the module that's available in my computer. So this anther, You will see a big list of modules available in our machine. Here is it do different name of the module and here another list of module. So we will run the command gets modulist available. He checked the directory C program file Windows PowerShell module, and show you this is the module available in but bade. For example, the up local, the Microsoft's PowerShell, the package management, the Bestor, the PowerShell, the red line, and then in another directory, this one to PowerShell version one module, we have this list of more dude. So if you have another Windows operating system, for example, Windows eight, you should see a difference between the list of modules available in this Windows and in your windows. And the same if you use a Linux or Mac OS. So this module is in relation about the operating system and do software. So for example, right here you see that we have a moderate candidate Hyper-V. This module is only available in Windows machines that do Hyper-V. For example, Windows seven does not support the Hyper-V. So you can't find this module in your list when you run this command, get modulus available. You can't find the main Hyper-V in the list of the module available in your Windows seven. And to see if you are Windows ten and you disable the Hyper-V, you can't see it. And the same for the Mac OS or the Linux. But of course you will see some other kind of model that there is not available in this screen, but it is available in your machine. So I hope you get the idea. So this is the different modules we have in our machine. So if we want to get a specific module to do session right here, that's me in this PowerShell is decisions that we work on it. And this is the module available in the directory of the module, this one and this one. So if we run again the command git module like that, you will see that we have only three module and do list available is more than 50 or 60 module available. 24. Importing PowerShell Modules: It sought to import module to the session right here. We ran the command import more dude, and we clicked up, he will complete it automatically. And we thought a name of a specific module. For example, do a Hyper V. As an example, the Hyper-V does not exist in your session. You can chose another module available. So we click under, so it shows you that the commode is bus without any result. So to see the result of this command, we need to run the command git module again. And you will see that we have the hybrid loaded in our session with the different command does he have? So that's we know we can use this command in our station. So the server, if you want to import the module, for example, Windows update with top common import module and with top windows. As it know, if we Bach and the random common good module, you will see that we have Windows Update, lauded and unimportant information as IT LOW that this tank is only available in this session. When we close PowerShell and open it, it will work to the original state before making this action in the station. So you see right here that the gizmo dude show us that we import the Hyper-V and Windows Update Manager. If we close this windows and we operate again, run as administrator. And we ran the command. Good module. You'll see that we're back to the original situation only treat module and we need to do it again, import more do and do it shows, for example, the high-born V like that. And if we're run again to get more, do you see that the Hyper-V is loaded? So anytime we do it in this session, stay in this session, we will close it. Every tag will gone, and we need to start from the beginning. So see you in the next lecture to discover more about the common late. 25. Running the PowerShell Module Commands: Hello again. So another information about the module, that's mean when we get the module right here, we can get the common available in this or dude. And we have our very important command that we're going to use it a lot, lot of time in PowerShell that skull it get command. So the foremost command that we use it in PowerShell is the get command. This command will show you, i'll dot com on our readable in power shell. So if we press Enter like that, it will show you a lot, a lot of common and function available in PowerShell. So you see right here, this is our common late and right warming command lead, rights, verbals. This is our description of the module that's content. This command, for example, this is Microsoft's PowerShell utility. This is the version. So let's start from the beginning to see results more clear. So how do you see a lot of command that is already built? So of course right here to commutative is alias. That mean this is analogous. We don't care about it right now. We are going to cover the IRS, the function. We're going to talk about it later. And then we have the command late. Come on late when we have the syntax of the command, the version and the module. That's content this common. So this is an important command that's got it. Good. Command like that to see the result. So let's clean the screen, gets Module. Another important information. You should know that if you use Windows PowerShell version two and you want to run, for example, this command. You should necessary to run command import module space Hyper-V to be able to run this command. But from the version 34567, No, you don't need to import the module to be able to use the command. You can simply run the command and he will automatically in the background with important module, then ran the commode in your session without any problem. So to show you an example of how common that exists in a model that does not important yet in this session. So we're ran for example, good. Thus, travel, shooting, bake. So we press enter, it will ask you for other information and we click Control C to cancel this command. That's mean, we're run this command but we did not complete the bait. So we can't sleep drug using the K control plus C in your keyboard click or Control C to counsel the command running. So when we run this command that exist in a specific module without running the import module. If we check the good module, you will see that we have a new module colored troubleshooting imported automatically. And you see that we have the comma and the good troubleshooting pack and invoke trouble shooting back that module have to command and it is automatically imported to do session without using the commode impart module. So from the version tree, no need for the commode import module. Even it's still available, but we don't need to use it. We can simply run the command that we want. And he will automatically import the module that have this command in your session. And the same thing for PowerShell seven. If we back right here and we run the command git module, that is it, you see that we have three module without good troubleshooting, bake like that, we cancel the command and the top gets module again. You see that we have the troubleshooting big, applauded automatically without need to run in import module space troubleshooting, bake, so that you get the idea and see you in the next lecture. 26. Listing PowerShell Module Commands: Hello again. So now if we want to get at the specific command of our specific module. So the same way around the common good, come on space. And no, we do dash module like that and click on the top keywords to complete the expression module and deal with dark do name of the module. For example, Heiberg, And we just click on Tab. He will automatically know that I want to import the module Hyper-V. So automatically we know that I want to get the command of the module Hyper-V. So not if we please enter here will show me this list of commands that exist in the Hyper-V module. So please enter like that to see the result. Here. Is it our big list of the command that is interrelation about do a hybrid model. So you see right here is a common laid. The name is WM. Our senior mobile device does mean virtual machine, the VM virtual machine. And the version and the SUS IS do Hyper V. And here are lots of other command. For example, add VM DVD drive or if you want to add activity driver to the virtual machine and run this command, our VM fiber channel each be the vivir channel. B is the part to connect the fiber channel cable by using the fiber channel, HP and so on. So what we have a list of common are readable to run it, drag the module Hyper V. And the same for example, good. By the way, if we want to use the previous command, we click on the row up and down. So for example, up we back to the previous command. So down we worked through the new commands. So this is the previous command. This one was before, and this one was before. If we click on the down, we back to the previous one, and so on and so on. So if we want to run a command again, we can just back to it and Nick the editing necessary without needing to type the file command again and again. So for example, right here we want to get the command of troubleshooting, bake or press enter. Now it shows you that we have to command in the module, trouble shooting, bake. So the same if we run the command git command module and ran the name of the module without needing to import the module to the good module right here. We can run this command and he will automatically import the module to do module list. So let's try it again. For example, git command, module dash modulus mean the module that we want to get. And for example, give it bit transfer or BitLocker like that. So let's try bid transferred. But it's under, it shows you a list of the command available in the module, did transcripts. So we have other bits, file, complete bits transferred, deeds, the transfer removed resume, CDE starts respond. So always we have verb and now verb, noun and so on and so on. So now when we run the command, git command to give the command available in the big transferred. If we're again, you receive that he automatically import the transfer module to the station. So always if we want to get to come out of a specific module. So if we're R1 gets module, thus less available to see the difference mode. If we want to get to the common list of a specific module, we surplus that wget command, space, dash module space. And we do name of module like that. With top right here, the name of the module from the list to get the commode available off that module. This is the list of the command. And there are more. When we run this command, we can see are the command, I really believe in that specific module. So every time when you want to get the command, you run this command, git command space, thus module space and the name of the module. So, see you in the next lecture to discover more about module. 27. PowerShell Modules Paths: Hello again. So to know the place of the module available in our machine, we can't run the command is C dollar ENV, that's mean environment colon, BS module. But and we click on the tab, he will complete automatic leader command. And we'll press Enter. And here you see the different bead that contents, the module supported by PowerShell. So when we open decision of PowerShell, he chick dissipate you found the module that can be used in this consult. So this is the first place, this is the second place, and this is due to place. So to check those bad guys up the copy the path and for example, top Explorer space. And we thought the URL of the page and her visit you see you have in the c program file Windows PowerShell module, and you see the module available in this session exist right here. So this is the module available to be use it in the station if you remember the red line, the PowerShell gate to disturb the package management, the up local z and the because of PowerShell operation. If we click on it, you see the version and some script that content, the command syntax and the operation that he do as. So this is the different module and the same, for example, where the other paid like this one. This one is the one that's contained the module of the lists available. So what is it you see, are the module available? If you remember, when we run good common list are readable. You see this list of module, that is it, good module lists available. You'll see the list of the module right here are readable in the screen. So if we check like that, Windows Update provider, Windows Update provider, Windows Update and Windows search head is Windows Updates and Windows search and so on and so on. So are the lists are mutable module exist in this bait right here, see Windows system to T2, Windows PowerShell version one and modulus. And the same for the other one that we see it right here. This is the module that exists in the C Windows program file, Windows PowerShell, and module. And also we have another paid, this one, but we see it right here. This one is for creating or adding your module. If you get our model manually and you want to admit you need to put it in this place. So if we copy this bot and tap explorer, again, of course, the folder does not exist yet. It is is we are in the sea document, say user. I've lifted document and Windows PowerShell. So that is it, the Windows PowerShell. But when we get inside it, we do not have do folder module. So if we want to add our module manually, we need to go right here. And we'll create a new folder. Colleagues, more dude, make a dat. And inside that's more dude, we can add our module manually and he will be able to read the content of that module. And when we run the gizmo do list available here will show you a new directory like this one and this one. The directory of the sea user at lifted Aki motoring those partial model. And I'll do module available in that for level. So this is the different paid to have your module in your machine. So a run this command in that environment, colon PS module part, and you will get the different bits and check them manually by could be the base and go to do pay to see the content of it. And of course, if we want to add another page, we can't use a specific command. The acetyl, our environment, that's mean environment. And PS module. And with top blasts space, we had double quotation mark Sumi comma and dealing with top Duke bait for example, C slash C colon backslash B, S where example, module slash, module like that. And we press Enter, No, you see that we have the new beads exist. That's mean any module we passed it or we move it to this bit right here. It will be available in the lists of module of Windows PowerShell, or even in the same for PowerShell seven. So the same right here. If we tap a CDO are ENV colon BS or do you like that? You will see that we have see user instead document to PowerShell and the program phi PowerShell module and c program file PowerShell module seven, that's me, and this is for the version seven. And also we have PowerShell or do we have system to draw PowerShell and version one of module. So here we have a new date for the Windows PowerShell seven. And also he gets the module available in the Windows PowerShell to. So see you in the next lecture to discover more. 28. Finding Command of Multiple Modules: Hello again. So when we run the command git command to get the command of a specific module, you should know that we have more option to do with the command git command. So this git command, we do it to run the kids Aldo command or a specific command. So now we're going to talk a little about do come on, get command to know more about it. So it will run the command git command module like that. And we thought, for example, a Hyper V like that we see are the command available in the hybrid R3. But if we want to get, for example, two modules at the same time, for example, get or do. Lists are ready volt. Like that. We see the different module. And we want to get, for example, the commode of Windows search and Windows Update. So to do that, we simply tap good command like that. Thus, module and space dealing with top windows, and we click Tab to complete it. So up the name of the window search. If we want to get the cohort of Windows search and Windows update at the same time, we simply taught comma did with up. Windows are given. And we clicked up. They will complete again and we found Windows Update. So now we want to get the command of the module, Windows Updates and Windows search. You see right here we have get Windows search sitting, and here we have only get Windows update law. So let's press enter to see the result. Head is it you see good Windows update log, this one that exists for the module windows Update. And gets windows search sitting and sit. Windows says she dream that exist in the Windows search module head as it gets windows search city and sit Windows Server 16. And here you can see that the source doesn't mean the model that's content. This command is Windows Updates and Windows search. And Windows search again for the second command. So you can add new tuple module name to get the command how readable in that module by using the command syntax. So the same if we want, for example, to get command dash module and the module that star with w for example, we want Windows development license, windows reporting, window search, Windows Updates, and Windows Updates provider. We want to get to command for this module. So in this case, we don't need to write them out to dinner, we can't do it. But in kids we are, for example, ten or 20 module, which will take a lot of time too. Type the name of each module list right here. So for that, we have the symbol star that scholars do, wild card. So the wildcard character represent one or mini character. You can use them to create our word Patel in our command. That's me. If I stop, for example w and start, that's me. Give me are the modules that star with the W and any tank else. So the wildcard, meaning one or multiple character that's can exist in displays. So if we run this example to see it, that is it, press enter. It will show you the command available in the module that star with dou w. So you see W DIC, Windows Updates and Windows Update provider and so on and so on. So let's get to example more career for example, gets more do like that. And with top name and W wildcard, please enter it, show your empty result because the gizmo deal have only these four option. So for that we run the code again and return a list of readable that's me. From the lists are relevant in different paid. So you see right here we have W DAC, wh, and Windows Developer license, Windows error reporting, window search, Windows Update, and Windows Update provider. So the wildcard is very useful in PowerShell and this is one of the powerful thing about PowerShell that he supports do wildcard to get multiple resort in different format. So the same if we do it again and we tap a wildcard, that's mean Aldo module that start with a head. Is it? You see that we have the module up background task, up locker, up, the client are Bx and a senior access. So you can get new trip results about its, for example, that star with a and end we do, for example, x like that. This anther, You will see that only one module that start with the character e and this via character x. And due soon, for example, if we want to get an expression in the Center, for example, it tank into beginner. Then for example, local, then any tank after the local expression. So please enter, we have up locker and bit locker. So this is the powerful thing about using the wildcard. So even there are nothing at the end of the expression. It's correlated as our wildcards. So empty result right here is also count as our wildcard. So this is the benefit of using the wildcard. So see you in the next lecture to discover more about git command. 29. Specifies An Array of Command Verbs: Hello again. So at the beginning of the course we talk about the syntax of the command, that is a verb and noun. So for that, if we want to give a specific command in specific verb or a specific No, we can't do it by using the command git, commands like that. And as I told you that we have verb and now, so we are also at the common good, come on. We have the option dash by using the verb. So we click Vi and click on the top keyword to complete. Here, automatically show you the expression verbal. So in this situation, we want to get the camo. When the verbs we use this dash, that means this is a condition or our parameter would only to see it later. The parameter of our c'mon. So verb space and we type the name of the verb. If remember this example right here. Good deed. So with top, the command, git command dash, and with top gate, the space and with top dash, noun, that's mean we want to get now of a dot-com around the space and the same we have did this one with that date like that, and we press Enter. So you see right here that we have assumed delete colored good date the version, and don't module, that's content, this command. So the Microsoft PowerShell agility contents do come on, get dates. How we know that good. Command, like that, space module, Macrosoft utility like that. If we check writerly reaffirmed that we have a common colored good date. What is it? Gets five. That is, it is Aaliyah member harris, It's good data. Good data exists in the module, Microsoft's PowerShell, EGD. So if we're back again and we tap the command, get verb, good and do noun, date. It show you that we have a common colors, good date and the version of it. And for example, we want to get all the common, that's hard. The expiration dates in the not. So for that we need just delete this part of the common good. Come on and we go directly to do noun like that. And with pub date, that's RED. Show me Aldo commode that have the noun date. So please enter. We have good date and state date. So logically, when we see sit, there, doesn't mean we want to set the date of the machine by editing it drove.com and sit date. So we have to command that have the noun date. So you still want to get the commode dot to content in the verb gate. So what we do get command, dash verb and we talk gates like that, please. Okay, you will see that we have are what lot of commands that start with do gets. You see, are these command starts with the verb gate. You see a big list of commands. So the same if we want, for example, to get to the commode dot star, we said we have the same command and with that verb, sit here, does it a different command that content the sate. 30. Filtering Command Through wildcard: And the same by using the wildcard. For example, let's see an example of a command without the GET command, and we'll stop now. And we talked for example, item, that's an insure me though command that half-done now, item like this until we have clear item B item gets item, Iraq, item more, new, remove, rename seat. So we have this list of commands that have the item. And if we want to use the wildcard, that's me and give me a common dot start the noun with the item and anything else. So logically, if you remember from the previous lecture, we can simply repeat the same command and use the wildcard right here. So please enter. You see we have a new command called Atum, proper UT, copy, item, propriety item, property, value, and so on, remove, rename, etc. So he'd give me are the common Hindu noun, item and any thing else, and so on and so on. So this is the benefit of using do wildcards are the same if we try to use the wildcard or beginner like that, it's odd anew. I won't call it D on three-point table item, that's me. Have some tank before the name item and emit tank after the item is empty. So this is the list of the New York command R. This by using the pattern wildcard item and wildcards. So this is the other option. So if we try our game and we delete the last wife garden like that, it will show you only do common dots and we do expression. Item to item exists at the end of the command, you will see that the item property is no more available. So I hope you get to the idea of using the command git command and do item. So the same if we ran good command and thus verb, a tank for example, as a like that star, that's me in a command that's hard to verb star with the essay. So it press enter. And logically it will show you seat, for example, in a commode that star with the S like that. So you see a common that have a verb star with the Is and anything else. So sync, switch, spurned, stop, stop, and so on, star split. So are the stag is our verb that start with dou s. So the same if we want to get any tank in the verb and Andy's by w, like that. It is it, we have new and show, so it always ended by a w at the end of the verb. So you can use this wildcard to get multiple resort dot fit your needs. So you should know that the wildcard is very powerful. So next we'll see how we can customize the search of a specific command by using another symbol. I see you in the next lecture. 31. Gets Commands With Specified Characters: Hi again. So no, we see how we can use the command git, command earned. We use the wildcard to get specific expression. That star with a character and in a tank is all star with any tank. And Andy's by our character. Or the character should be inside the expression like that. So for example, this example right here, it shows you all the commands that Harvard do w in the beginner or in the end, or inside it. So if we want to get a specific number of character to be variable and our specific character. So the same way around the common good hormone and verb. And instead of using the wildcard, we can use the question mark. So the question mark meaning one character. So to understand more bitter, let's do it for example like that. But this is the active and this is the second character. And for example, w, that's mean. Give me a command that hard the verb have to character then w. So this anther to see the result, you'll see it show you only the expression nu. The nu is the one that's fit the condition. That's me. First character, the second character d, w here is it, the first character is n, the second character is a, then w. If we do it by using the wildcard, you will see that we have a different result, has it? You see, it's show you. We have Show and new and show again. So we have to kind of common that Harvard the verb and by W. So does this show, and this is new. So if we want to get the show by using the exclamation mark, we have 123 w. So we do that. I give, we put 123, then w would press enter it, show you only the commode that have the verb. That's 3.5 character in w. So the same, for example, we want to get to come on. That's how W, any character, the air then wildcard, that's me. The first character of the command, shoulder be w. The second character should be any tank, then the toured character, then any tank. Of course this one does not exist. It will show you an empty result because we don't have any verb that's half this expression. So let's do it again. Like that. That's mean any verb that star with our character and Harvard as our second character, then any tank else? So we'll press Enter. You will see that we have the common right. So the first is any tank, then the air, then anything else? Then her grant, that's mean the first is one character. We don't care about it. Then the second one shows the bit error, then any tank else. So the same four, right? For grant, for group. So G, air, anything else? Be that's mean one character, the air, the tank else. Threes, that mean one character air, any thank S and so on and so on. So the same thing that we did in the verb, we can't do it in the noun. So instead of verb with OK. Now, for example, a character, then E, then any tank else, sushi, we have Aldo name dot star with a character. Then have a VIN anytime else. Our character a, anything else? Our character a, anything else, and so on and so on. For example, we want to get a t and then one other character. So logically is due dates and feeds through the beta 80 at the center and have one character at the beginner, one character at the end. So the same four date and V8. So you can use this symbol to get multiple results. And the tank that we can use bolted in the question mark and do wildcards so hard is it, for example, any tank, then 80, then one characters, you see 80, then one character, a t, and one character. So all of them have 81 character and anytime before that expression. So I hope that you understand how we can use the symbol, question mark and the wildcard, and we can't do it even for any commode in PowerShell, for example, this module, name, one character because dp. Anything else? It will show you in a tank. Let's try it like that. Of course we need to use lists available to get all the lists head. Is it you see that we have up locker that start with the character didn t, then any tank else, another one, another one, and so on. So the one character b and any tank else, if we use this one does have to be. It will not showing us this expression. Let's try it like that. And we have another B. That's me. Only do module that have WP after the first character here, is it you see, no, we cannot see the VPN clients in the list, right head. So see you in the next lecture to discover more. 32. Run Commands in ISE and Visual Studio Code: Hello again. So in the previous lecture we see how we can get different module available in our machine and in our PowerShell. So the same thing, we can get this information from the integrated Script environment, PowerShell, from the Windows PowerShell Integrated script. We have this Barber I tear about the command. And here you see that we have named module and we have. So if you remember when we run the command, git, command like that and show us a big list of the command. This list of commands available right here, add up local policy contents. And we can scroll down to see all the other kind of command we have in PowerShell, five dot one is you see a big list of commands available to use. It drove the integrated Script environment. So the idea right here to see the difference module and commands. So for that we go to the module and we click on this. You see that we have the list of module are readable in PowerShell in this machine. So for example, we go to the Hyper-V. And is it if we chose hybrid, IT should we only do list off the command about Hyper V. It's all about the VM virtual machine. So let's try, for example, the troubleshooting. But we see that if you have to command, then the same, for example, Windows surge have to command that we've seen before. So we can't use this integrated Script environment to see the module and do common available sort. For example, this one command, this one have this list of common and so on and so on in each module have some specific command inside it. So this is our quick idea about how we can use the module from the integrate script environments and do the same. If you remember when we make this search, for example, lists chores are, then we date, for example, did it show you all the commands that hug the expression? Did so update this, update, updates, et cetera. Then, for example, gets date, get Windows Update long. So it had these inside updates, and so on and so on. But here we cannot use the wildcard like that. It does not recognize the wildcard as our pattern expression. That's me in a tank. He tried to find a cohort that have date star, but he cannot run this because the star, the wildcard does not walk right here. We can only use it in the PowerShell console. So the same for example, sit in, we'll show you the command that have sit inside it. For example, this command tab seats at the end. This one, this one, this one. And for example, sitting is half the explanation seat and so on. So if we want, for example, to get to come out that star, the verb sit, we simply park dash and he will give you any bank that have seat dash, for example, arrested, have sit dash, a receipt received in sit Aaliyah City, Sim instance and so on and so on. So this is a technique to use the search in the integrated scripts environment. Unfortunately, the Visual Studio code does not have this option. The Visual Studio code does not have this option to see the different commands available inside it. And we can't not do it from the Visual Studio code. So right here you can't find any tank about the module end command to get the list of it. But of course you can't run the same command right here. For example. Get more do like that. It will show you the result of the module. Then get more do lists are readable. It will show you the results right here as what we seen before. But we cannot get the list of the module that we have in the integrated scripts environment like this one. So next we'll see how we can run a specific command. So see you in the next lecture. 33. PowerShell Cmdlet And Parameters: Hello and welcome again. So now we've tried to run some specific commode and see some different results and the syntax of the command. So for that, we'll try to use our foremost kimono collect, good process. The command gets process will show you the process available in your machine. So the process in our machine, we can get to do the task management right here. And you see this is the different software or process running in my machine, right? No. So you see the Camtasia recorder do complier, do Google Chrome, the Microsoft Word, Notepad, et cetera. This is a different process that is run it right now. So to get this information from the PowerShell, we ran the command git process that will show you the details about the process available to the press enter i tell you see, we have a list of the different processes are available in my machine. So if we go right here, you see the handled in PM, do pm, the Ws, the CPU, the AD, and the process name. So you see we have application frame hosts are m as Vc, the audio DG, picture, the camera corridor, the Chrome. This is the crown and the cmd D, that is, run it right now. For example, this one, the code for the vizier code studio. This one right here is the code and saw and songs. We have what off process that is, run it in our machine right now. So if we seek that we thought good process like that and we'll press Enter and it'll give us the result that's near. This command can run without any parameter that's Millikan sampling, pub needs process and we'll get the result. So no, we'll try to run a command, collect new alleles and we'll see do resort. So if I press enter, you see that? Ask you for a name, tow c and d, late new alleles at command pipeline position one, supply value for the following parameter, that's me. It does do como, new alleles can not be, run it alone without the following parameter, that's call it name. So he ask you to add a name to the common to accomplish the process. For example, it's give it like that. We press enter. Again, he asked you for our value. That's many, asks you to get the value before running this command. So for example, let's give it a value, CD like dot and press enter. No do commode is pass it. So the question here, why the commode? New ideas need our parameter name and a parameter value. But due gets process does not need a specific parameter. So for that, we're going to explain that in the next lecture. 34. Introduction to PowerShell Help System: Hello again. So to know more about a specific command and the parameter available in that command and why we need to put the parameter or we don't need it, has the same for the previous command gets process that can't be right without any parameter. We need to get the help of that colon to know more about it. So for that we have a common colored, get, a hope like that. Drew, give the help of a specific command. If you don't know the command before, you can, for example, that the GET command and ask for any command that have in the noun, any dank, herald in a tank like that. So here it shows that we have good held self-help and update. Hell. So the Como, the GitHub, the one that we want. So I automatically know that we have our Komodo colored. These herds, saw what I do. I part good space. And then we stop the name of the command that we won't know about it. For example, the new ideas like that. That is if Duke new ideas, so wherever it is and it will show us a list of the help about this command. So please enter head. Is it you see that good health about new ideas? It show you the name is new. Heliostats me. The name of the command that you ask for the help About It is new ideas. The synopsis is create a new Aaliyah statesmen. What this can do is create a new areas. Then we have the syntax does mean how we can create this command, how we can use this command in R syntax format. So you see right here with up new ideas and we pop this parameter right here that we're going to explain them one by one. Then we have the description. A description, this is a small description. The synopsis is an obligation of the Coleman and her our description. So the new allele as is commonly, that's mean this is our common lead, create our new alleles in the current Windows PowerShell session. If you remember with, to do that, we use current Windows PowerShell incision, that's mean we will close this one. Anytime we do it in decision will be gun. So if you want to keep the editing in your session, you need to create our profile. And we're going to see it later, how we can create our profile. So the new allele has created a new alias in the PowerShell station. Ideas greeted by using new ideas are not seaweed after you exist decision or closed Windows PowerShell. So when we close the session or the Windows partial form displease the aliases that we created will not be CBD. So for that you need to use do export ideas. You can use the export ideas come and lead to save your IDSs and formation to R5. You can litter US imports. Ali asked Drew, retrieve that ceded areas information. You can use this command to export the Aaliyah CEU credit indecision. And next time when you open the windows partials, you can run the command import alleles to import those aliases in your station. And here you see a relative links gives you a link to get the head from the aligned you see. Because as partial utility, new ideas view, we'll share five dot one. That's mean this is for the version five D21. If we get to see him come on, this one in the Windows, PowerShell seven, you will see that we have PowerShell seven. And then we have some other kind of common dots have relation. We do cohort that we get to help out. It didn't remark to pseudo example, type detailed new Ollie's example. Get help new ideas, details to get more information. And get help new ideas fall to get the Fall information. And for all line gets how new ideas that are light green to seat them one by one in the next lecture. So see you in the next lecture. 35. Get the Help of Powershell Cmdlet: Hello again. So in the preview, we see the health of the command. Colored new ideas by using git help new Aaliyah us. An important information that you should know it about. The commode gets hurt. That in PowerShell, we treat your that are the commode star with the verb dash known. You see right here, verb dash now. But there are an exception for the common. Good hope that we can use this only by using do now. So Institute of topic, get help. And then the command that we want to get to hell about it, we can simply pop help the new ideas and we'll learn to help us do same as get help. So let's try it again. It is, it, you see it's the same result. But the benefit of using health, IT show you more options right here that's linear. Please enter to get the result again. So if we're up good. Help. New aliases like that, it shows you all the help. At the same times you need to scroll up and down to seek the help. But if we're run help new alleles, it show you the hurt from the beginning. And it asks you to click. And third to see more results or pop until you see the other contents at is it everytime when we click on the Enter, it show you're more result. So this is the benefits of using the short expression held didn't do command that you want to give to her about it. So you see right here that we can't get example about the command by running the get help new ideas. Thus example. So let's do it. Help. New aliases did example. So I click on the on top and he will complete the expression. So when we replaced until it directly to do examples, you seat name, the new ideas. The synapse creates a new areas. The example. Show you an example of the command, create an alias for R cmd. Here is example, new ideas, name, list gets child Atum. Then another example is it another example and a description of that example. Then we have the same. By using the Debye. It does mean we want to get, do Debye yet a health about it. So we have new ideas and whip up the pie yet as it would please enter. No, it show you more details about the helps you see. We have a new section collects parameter and have some definition like that. You see option, we press enter to see more about it. So know you see that we have a long how about.com? And you see the example, the parameter is added in the previous time where we're run only help new ideas. It show you a little information. Only the Synopsis, Syntax, Description, Related link and Rome. Ok. But when we run it, show you the description do parameter and the parameter available with that description of it. And then the example that we seen before. Then the same for the fall. You can't get a full details about the help had, is it you see, it will show you our DTI, more organizations. So you see right here, the parameter description have this description right here. But when we run the command with the file, you see the parameter description. With the description and more information about the requirement, the position, then another parameter call it force the details about it. Then the option Data eyes and so on. You see more digitized every time when we use an option, we can't get more details through your cell right here. Important output, not the Hindu example. Do rotated link. So this is how you get the help of a specific command. You see, right hairdo, new ideas, and do fall. So next we will see another option we can use it. Do good to help you in the next lecture. 36. Get The Online version of Cmdlet Help: Hello again. So to get more help about a specific command, we complete our example about health, New York, IDSs like that. And we have another option College Online, thus online. But we want to give the help of the command from the website of the support of PowerShell. So please enter. It will take us to do length of PowerShell and the new alleles and the description of our two-tailed Is it the PowerShell do syntax, the description, the example. And here you can see that we have through example didn't do parameter, the description, et cetera, and so on and so on. So the same result that we see right here, when we ran, fall, like that, it should yield the same result as do websites bought in the website received at the format of HTML page. That's me and we can see it in this format. And we can search for other command right head. And do seem if we run it from the PowerShell seven here automatically take you to do PowerShell seven dots, one like that if we chose it right here. So we are no Windows, PowerShell seven, it'll give you the same results. And do seem if we do it from PowerShell seven, like that, help new audiences. Then all line and we'll press enter here will take you to the same page, but for the PowerShell seven and not the PowerShell 51. So you see it's the same results in another page. So now we see the different syntax to get the help of our command. And you see right here we can read the head from displeasure right here, or from the online version. But for me, I always prefer to read it as in another format by using the parameter help new ideas. And we talk show windows. I will press enter here will show you the help in this format right here in our new windows. And I like this format more than this format right here. So instead of red to concentrate hair, I prefer to show it in the windows. And you see right here, new ideas help. Didnt do. Synopsis is the same text, but in this format, I can read the content without struggling to do up and down Windows. Powershell concerns. You see description, the parameter. So this command right here, show Windows. It automatically show you the fall of the commands you see right here we can read the help of the Common Era. Is it the syntax, the inputs, the output, the nod, the example, and the relative link. And that will take you to the online version of the command. So from the next lecture, I will always lead to the help of the command by using the Show windows. So I don't need to, every time a fall or the tired or example to see it. I always show it in the windows and I can't go directly to the example. So next will see more details about the help and how we can use it. So see you in the next lecture. 37. Downloads and Installs the Newest Help Files: Hello again. So in the preview we see the commode get hurt or simply help. And with type the name of the command and we see the different options we can do it for example, fall DTI example and align the show windows to see it in on your Windows. Sometimes when your style, your operating system and you have the PowerShell, sometimes the help is not available or have an older version of the help or simply half are small herb in your machine for that unit, always do update your hope in any situation that you have do internet connection. So for example, I want to work in this New York machine. The first tank I do if I have the academic connection, is to update the head. So if you remember with Pap, good command and we see the different chromosomes that have the expression help. You see that we have good help, save help and update head. So always I run the command, update, help to update, to help to get the latest update of the help of any command in my machine. If for example, I have, I hope of a specific command and then Macrosoft, deceit to update that her literal know more information about that. Come on. The old division will not have this updates. So I need to run the command update and hope to get the latest updates of the head in my machine. So update, thus help. And we press enter and we'll connect to the internet to download, do a help available for the different modules you see right here, updating to help for modern Microsoft. So the difference in more do show up right here and we need to do update of dirt to the machine. So always tried to do this task when you have connection. And when you want to use the PowerShell for the first time in that machine, if you alerted the do it, you don't need to do it again because you need only a mandate for the moment, because the update will not go into change in the next two or three months, it will build tick about one or two, or maybe three years to see a new update. So you see right here I complete the update, but some more dude cannot get to update. So prior to update her for the module, configure different there. So another module cannot get the update, this one right here. So it goes up problem the important is that we have update for the most important module available. So let's clear the screen. And as you know, my hope is updated and icon get the largest health of any command in my machine. Then in another case, you have a machine that does not connected to the Internet and you want to get the update helped to that machine. So for that we have saved her. So what are the save help? We can create a folder to see with the help inside it. For example, regarded as c like that. Pop. What example? Ps Herb doesn't mean this is the place that we want to save the hep inside this. And we need to run the command civic button in this machine connected to the Internet. I will download the hub and civic in that vibe. And did I went to get money really to the machine or to do a server or to the BSE that does not have an internet connection and thus do help inside it. So for that we run the command, see hope, and we give it the bait, like that. Destination, bade space. And C colon backslash, BS, hurl. But his anther. And he will start downloading the help. That is it, you see, it will start downloading the different health about a difference, more dupe. And you can use them when you lead to update your a help system in your machine. So you see are the model that we've seen before. He though allot them one by one and save it in the folder is help. So no, we can't copy this folder in our support, a CD or I use biggie, then we move it to the machine that does not have an internet connection, do use it there. Of course, you need to know the place that's unique to bust this help inside it. Or chose the command update help our chose debate of displays. You can updates into head from this place. So you see it's complete, the help, of course, this module is not available for updating it. And all the other module is downloaded without any problem. So here when we download the help in this folder and we ticket in unordered support and we opened the machine that does not Harvard to internet connection. So for that we can simply run the command update, help. And we have a parameter call, it saw a spade and deal with top do beat dots have help. For example, sea, colon, backslash, didn't BS hurt, and we press Enter and he will update the hurt from that beat right hair as the same as we did from the internet connection. So I hope that you know how to use the help and update it in your machine. So next we'll see more about the head of common. See you in the next lecture. 38. Understanding PowerShell CmdLet Syntax: Hell login. So now we're going to see how we can read the help of a specific command. And indeed Astaire do have better. So in the previous example, the herb about new alleles, and we're going to show it in a new windows. And is it lets try to zone the screen so you can read the content is Lee. And here you see that we are in the help of the new ideas are synopsis, our description of the command and a parameter. And no, we're going to concentrate on the syntax. But then when we want to run a command in PowerShell, we need to know how this command, right it, how we can't arise, do command to get the result. So you see right here when we press enter into new ideas, he asked me for more value. I don't know why he asked me for this more value, and I want you to understand more about the command. So of course, after I read the description of the common right here, you will understand that the commode near alias, we'll need to give him a name of the ideas and our value over that ideas. So you can complete the command by getting the result. So for that, we need to read the syntax to know how the syntax of the commode near alias can be created. So you see right here we have new alleles, square bracket, Dutch name. The in Space Systems drink. Then space, did another parameter, call it value, then space, the system string, and so on and so on. Sort. Let's concentrate on it one by one. In PowerShell, when we run our command, the command have APP parameter, that parameter herb.com on drew. Really customize it to get you more results. If you remember, right her when we run the command, git, command like that to ensure us r, the command available in the machine. But we, if we want to customize the command to get a specific result, we can get kimono. There is the parameter. Now like that and dim up, for example, head to get to come out that have the noun. Help. So this is the benefit of using the parameters. So every command has a specific list of parameter that can't be use it to run and give you different results in relation about the parameter and the value that we give it to this parameter. So for that the same, we have new ideas. We have parameter called name and another parameter value and another parameter description, false option, bus through Scope, confirm what if, so, any name or in expression that star with the minus, that's a parameter. So Dutch name, this is a parameter, dash value, this is our parameter. Then after the parameter, we have this expression right here. The text created inside this less than and greater than, meaning do value that you need to put it to do parameter. So in this example, we want to create the alleles. We chose the parameter name. We need to give it a value through right here you see this is the value neutral place, this system string, and this symbol right here by the value necessary for the alias. So the same, we have thus value, then we need to give it a value in this system string. Then the same for the description, and so on and so on. So to get the example mode, for example, we run this code gets come on. Dutch noun does help. If we get a hell of a good command, then show windows like that. You will see the herb of the GET command. And if we go through the syntax right here you see recreate get command. Thus named this is up parameter because it star with domain is, then this is the value that we need to put it after the parameter. So if we read write head, you can see that we have a parameter call it now. So you see right here and another syntax of the command. So these common to have two syntax, the preview 1.5, only one syntax to follow, but this common gullies gives command half-truth syntax the first one and the second one. And we'll explain more about these tools, different syntax. So in this second syntax, we have a parameter college, Dutch now. And this is true that this is our system string inside this symbol. So if we have a parameter that we can't use it. So the question is, why when we run git command without giving it any parameter, its work without any problem. But when we learn new aliases without any parameter, it asks you, do get more information like that. Sorry, thats meaning new aliases. It asks you for more parameter. So next we'll see more about the parameter. 39. Understanding Parameters Value: Hello again. So now we're going to see why the command, git command kinda ran without any parameter, but the command new alleles need our parameter to complete before running it. So the rule of the help system right here and how to read the help system right here by using this symbol right here. So this symbol have a meaning of the requirement of our barometer or not. And then we have some expression right here. We're going to talk about it later. So if we see the example right here, the GET command, and we see that we have the parameter inside this square bracket, the first one right here, then the value of the parameter, that is Assistive string. By the way, do systems think that's mean our stream? That's mean you need to put our value in our format string. The string is a text. For example, a halo is our string. But if we use a number, this is our integer, that's mean and number. So the number is integer, then the text is string. But when we use are fixed, we use our string. So when we run the command git command and the parameter name, we need to give it our string and not our integer. So if we run the command, git, command, like that at top name. And we talked, for example, five decisions are wrong format, if we tap right there, you see the term five is not recognized as the name of the common laid functions, script, etc. Because here he asked you to give our string and modes are integer. But of course, in the scripting language or any programming language, do number is our streamed, but a string is not a number. If, for example, have a command that require your ears are bad. I met them and are integral, for example, 56. This is an integral. If we talk, for example, an expression like that, it will give you another dot. You need to put an integer and not our string. So this is the meaning of string right here. That's mean the parameter name should have a string. Of course, a number can be a string, but a string cannot be our number. 40. Optional and Required Parameters: Hello again. So now we're going to see why the command, git command can run without any parameter, but the command new alleles need our parameter to complete before running it. So this is the parameter and this is the value that we need to give it. If you see right here, we have this square bracket That's half the parameter value at the same times. So the parameter and devalue inside square brackets. When we see these square brackets, that's half the parameter and the value. That's meaning this is not a required parameter. So always do parameter in the syntax, help write it inside the square bracket. When we want to run the command, we only use the parameter without the square brackets. That's like that. That is it. Like that. So when we want to run the command, git, command like that is the same right here. We want to use the parameter name. We need to use without the square bracket right here. Like that. If we copy this syntax right here, and we go to the common Reich dot and we press pass. That's me and this is the syntax that we want to use it. We need to go and delete this square bracket like that to get to do parameter. Then we need to delete this square brackets again from the beginner n to n. So now we have our parameter ready to use it. Then right here, we need to charge this expression by do value. So for example, we need to delete this one completely. And Bob, for example, get help this string to use with the parameter name. So please enter it gives you a result. So the same for this parameter. You always could be the parameter. You delete the square bracket of the parameter. Then if there are another square bracket deleted, then you replace the value with our value necessary for you. So the same again for the commode get alias. So if we want to use this one, we could be the syntax like that. We got right here. With that bit. We go to the syntax right here. We delete this square bracket nodal parameter name is ready. And then this system stream we're on passage by the string. For example, hello. And another information you want to know if you were going to use. String that does not exist in PowerShell, you need to put it inside double quotation mark or single quotation mark. So always remember that if you use a text, you need to produce inside our quotation mark like that, drew uses into common. So this is an important, thank you, need to know about it. So if we work to do syntax right here, you see that we have the new system string like that. Let's do this example like that and put it right here. And also we have the example of the GET command, name, string like that. So you see it right here at the difference between this syntax and do Stig and syntax does do parameter at the value. Here. It does not exist inside square brackets, but into Sigmund common, this parameter and devalue exist inside a square bracket. So the rule number one in the syntax of any commodity, that's if the parameter exist inside the square bracket, we do value the parameter at the value inside square brackets. That's mean. An optional parameter. That's mean.com on can't run without this parameter. That's me. If you want to use it, It's okay. If you don't use it, It's okay to command will run without any problem. If you don't use this parameter. But in keys do parameter and the volume does not exist inside square bracket. That's me. Indices are a requirement, but I met them are mandatorily parameter the expression requirement or mandatory. That's mean you need to run the command by using this parameter. We did. So always when you see the parameter and the value inside R square bracket, meaning are not optional parameter. You can run the command without it. If you see the parameter and to value is not righted inside square brackets, that's mean are mandatory parameter and the command will not go into ran without add-in that parameter. So the seam right here, if you read the Help, you will see the similar rule repeated again. So you see right here the parameter argument list and do value or system objects exist inside square brackets. Bracket, that's quantitative parameter and the value that's mean. This is an optional parameter, this one, but have only the parameter without a value discounted at switch parameter, it is always optional. So the rule number one is only applied when we have our parameter n, r value, r parameter. And our value always when you see a parameter and volume if there are inside square brackets, meaning this, these are optional parameter. If it is not inside the square bracket, like this one right here, that's an indices are mandatory parameters. So you see right here, these are mandatorily parameter, and this is another mandatorily parameter and this is an optional parameter. You see we have the description, the parameter description and do value. They are bought inside square brackets, meaning this is our optional parameter. Then we have our parameter only its mean, a switch parameter. We're going to talk about the switch parameter later. This is an optional parameter. So to summarize here we are option with square brackets and the volume of it into sin square bracket. That's mean this is an optional. This is optional, this is optional and optional, optional, etc. And only the first parameter and the second parameter that is mandatory. So next we will see more about the syntax. See you in the next lecture. 41. Parameter Name Requirement: Hello again. So now we know that any parameter and volume enclose it in the bracket or square bracket, meaning an optional parameter. And a parameter. That's, it's not inside the square brackets, meaning our mandatory, all, our requirements parameter. Also, we have another option inside the parameter that is exists in square bracket like this one. And the rule c dot e tag inside the square brackets, meaning optional. And any tank not in the square brackets, meaning our mandatorily parameter earned value. This example right here means that the como, new alleles that have our mandatorily parameter and value like this to one that's mean the name and the value is unknown battery. But we see that the name inside square brackets to and do value inside the square brackets to mean this is an optional parameter inside our mandatory value. That's mean if we want to run the command new alleles, we need to give it the value of the parameter name. Even without writing do syntax name that's made. This is positional parameter, but we can use the value without mentioning the parameter name. And he automatically know that this value is for the parameter name and the second value is for the parameter value. To get another example about a command syntax that's half the perimeter, not inside the square bracket. Let's run the command. Help sit up, background, task, resource policy, and without show windows like that. And we see the syntax of this command to write her sit up background task, a resource policy, and you have a parameter, call it mode and string, that's me. You need to use the parameter mode. You see this is a mandatory if you remember the root, this is a mandatory parameter, width value and this is optional parameter, optional parameter and optional commands parametric. So this one meaning our requirement parameter with the requirement value in the example here. This is our optional parameter with our acquirement of value. That's mean. You need to write the syntax new alleles. And you can't mention the name or you don't need to mention it. And they automatically know that this value is for the name. But her. If you run this commode, sit up background, task, resource policy, and pop only the value here will not go into R1 because he need to have mod inside it. So let's do an example inside that. So let's run the command seed. Up background resource policy. And here we top dash and click on top here, automatically complete the mode like that. And we click on the tape. You see we have option conservative and option normal. We have only two option of the mode of this command. So we chose, for example, Norman and we please enter, No, the commode is run without any problem. So the same if we do it by nu aliases. And if we follow the syntax by terror, doesn't mean we need to give it the name, the value of the name, the value, the system string. This is due to mandatory parameter and value that we need to give it to the command to be able to run. So let's do it. New aliases with top, dash, name and space. We give it a name, For example, the first one, the in space, the dash and click on the tape. You automatically know that we want to get the value. Then we give it the value. For example, buyer like that. So we press enter the command bus without any problem. And the new allele pascal it tests, we devalue, diet is created. If we want to see it, we can run get yes's. And with Top Test one, you will see that the aliases, this is Rob, do Command, good child item because the common dire, the farmers come out of CMD or the Microsoft DOS, meaning into PowerShell when we run it into power Shiva automatically render commode good child item. So now if we run the commode, I replace it by tribal item. That's mean do dire expression right here. So the difference between the standard text of this one, that's half are mandatorily parameter with a mandatorily value. And the one right here of the new ideas that have, are optional parameter, that's mean a positional parameter with our requirements value. This is the different right here that we're going to see. So if we run the command Sit up background policy space, and we don't want to do parameter mode. And we go directly to the value Normal and tried to top normal like that represented, it will show you that this is not a positional parameter. So you see the command syntax. A positional parameter cannot be found that accepts argument normal. So establish for the syntax of the command for a positional parameter. And he cannot fund that there are a positional parameter and we're going to see it in the next video. The positional parameter where we can read about it. But if we run the command. New aliases like that. And instead of using the name and the value like this one right here and there, we can directly go to the value and the value of the second parameter. So for example, I tear test three space and the same for the parameter value. Without writing it, we can't RAM, for example, via again. And we press enter the command successfully. If we're on good aliases again and Baptiste tree, that is it. You see the there's three is greeted. Succeed believe we do. Come on, get tribal item. And if you see right here, I get R uses and top name of do I use that we want, but actually derive up parameter and an optional parameter that's half this requirement value. So if we pop a good uses like data and top dash, we have name. That's me. We get the value of the name so that it's the same result. So if we trick the head of good ideas is like that and show Windows, you will see that half due soon rule in the syntax. So the kids are lawyers and name and value. But we can run the command without any parameter because our this parameter is optional. And if we use this value right here that's near, we give it the value right here. We can't run it without writing do parameter Dutch name. But here it is necessary to use the parameter dash mode. So the rule right here in this lecture, let's mean do come on syntax of the command, write it out this format right here. So we are right to do common name. Then when we see dash and a parameter name right here, that's mean, meaning are required. Parameter has the same as in this example. Dash, then the name of the parameter. So this is a required parameter. Then our required value always when we have our required parameter. But automatically we have our required parameter value, and this is the value of the parameter required, this one. Then we have the parameter inside square brackets, like this one, that's an indices are optional parameters. You see this one right here, then the Haven or the dash. This is optional, but I made a name and an optional parameter value. Then we have another kind of parameter, this one, for example, right here without the value, and this one without the value is colored optional switch parameter. So this is a switch parameter. It always optional if it exists inside square brackets. If there are not inside square brackets, that's mean are mandatory parameter. And we have last option, that's mean. The parameter exists inside a square bracket and do value, it's not exist inside the square bracket. That's mean the value is require it, but the parameter is optional. We can write it or we can use the value readout. It doesn't mean this is our positional parameter, and next we will see the positional parameter. So this example right here is for the one of the new aliases to the parameter inside the square brackets, but the value is not inside the square bracket. That means this is our monetary value and the parameter is positional parameter. So see you in the next lecture. 42. Parameter Description: Hello again. Sought to complete reading the help and know how we can create a common late in PowerShell. We'll see the description of the parameter available for this command. So we know that this is our mandatorily parameter value. Of course, this is a positional parameter, that's mean we can write it or we can just get the value of eight without needing to emotion about it. Or if it is not inside the square bracket, that's mean we need to write the syntax exactly gives the parameter. So if we check, for example, the parameter name and we go up to the parameter list right here. This is the parameter list and research for the parameter name. So this is description. So any words start with do haven or the minus, meaning our parameter. So we search for the name Harris it do dash, name, system, string specified the new alleles. You can use any alphanumeric character in Amalia's bus. The first character cannot be a number. We're going to talk later about the aliases and the rule to create a new ISS. So here you see do require it. That's new is this parameter chloroquine. And so if you see right here, true, you need to use this parameter with Duke. Come on. So you see right here are required, is true. So the rule number one, but see any but I met her and value does not exist inside the square brackets, meaning our mandatory parameter. So if we back right here, you see that this is required at her. Again, for the value. It does not exist inside the square brackets. If we search for the value here, is it the value you see require it is true. That's mean. You need to run this command with the parameter value and the value of it. Then if we go to the third one, description that exists inside square brackets and the parameter and the value that's mu. This is optional parameter. So if we go back to the description right here, here is a description parameter and the definition of it, you see requirement is false. False doesn't mean you don't need to use this parameter if you don't want it, it is dropped. That is our mandatory. False meaning optional. So you see, requirement is optional. So do same for force is optional, does mean required is false, optional for the name is Drew. For the option, is false. For the pass-through is false, for the scope is false, value is true. So now we have only name and value. Confirm is false. What if is false? So are the other parameter right here is false, that's near optional only this two parameter and the value is mandatorily, that's mean you need to use them. So the same if we got to the common, sit up a background and we go to the parameter mode you set right here. Require it is true. That's mean you need to use this parameter to run this hormone. Confirm is false and what is false. So we have only two parameter after the mandatorily parameter. So you see them confirmed and what if our only optional? So here we can know the requirement of the parameter from the syntax or from the description of the parameter. So init command half a parameter section. And inside the parameter, you pick up the right parameter that you want and read if required, false or true. So next we see the positional option. 43. Positional and Named Parameters: Hello again