From the course: PowerShell 5 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Understanding and resolving terse commands

Understanding and resolving terse commands - PowerShell Tutorial

From the course: PowerShell 5 Essential Training

Start my 1-month free trial

Understanding and resolving terse commands

- There's something that a lotta people find confusing about cmdlet syntax that I wanna clear up for you and then I wanna give you some finer points on typing in these commands, some aspects from the real world that'll help you out. So I'm gonna clear the screen and I'll do get-help and get-service again cause that's been working out so well for us. So let's go back up to the syntax. Here's something that's tricky. The dash, the angle brackets for arguments, the value type of the argument, whether it takes multiple arguments separated by a comma, and whether that parameter is optional or not, that's identified in the syntax. But I want you to take a look at something. Your eyes may already be going, something is wrong. Look at this one. So notice we've got an additional set of brackets in here. These outer brackets mean the entire thing, name and its argument, is not required. However, if you're going to use an argument, like bits, what this is saying is that -name is not required. In…

Contents