Join Jason C. Helmick for an in-depth discussion in this video Working with methods, part of PowerShell 5 Essential Training.
- So far in this chapter…we've been working with properties.…We've been creating our own properties…by doing custom columns and calculated properties.…We've been selecting and sorting and filtering.…Now it's time to do a little bit with methods.…Now the methods are listed the same way.…Anytime you wanna know anything there is to know…about an object you pipe it to get-member.…GM is the alias and anything that says method…is something this object can do.…I want you to notice something about this get-service.…The objects here and the object type…is a ServiceController.…
I want you to notice that it…has methods start and stop.…I wanna show you a way to do this.…As an example I want you to pretend for a second.…You already know that get-service name bits,…you already know that it's stopped right now.…I could start it by doing start-service.…Pretend for a second though that this commandlet…doesn't exist and this will happen to you in real life.…You're gonna be able to grab hold of an object…and you're not gonna have a commandlet…
Author
Released
1/21/2015- Installing Windows Management Framework 5
- Running commands (cmdlets)
- Discovering commands
- Understanding cmdlet syntax
- Resolving terse commands
- Finding and using local modules
- Working with files, printers, CSVs, and XML in the pipeline
- Selecting, sorting, and filtering object data
- Creating scripts
- Automating tasks
- Using PowerShell remoting
Skill Level Intermediate
Duration
Views
Related Courses
-
Learning Bash Scripting
with Scott Simpson1h 25m Beginner -
PowerShell 3.0 for Administrators
with Don Jones4h 13m Intermediate
-
Introduction
-
Welcome57s
-
Why PowerShell? Why now?1m 14s
-
-
1. Getting Ready for PowerShell
-
Running commands (cmdlets)4m 55s
-
2. Discovery and Getting Help
-
Discovering commands8m 33s
-
Exploring help options8m 59s
-
Understanding cmdlet syntax8m 29s
-
3. Extending Your Capabilities with PowerShell
-
4. Using the Power of the Pipeline
-
Working with CSVs7m 20s
-
Working with XML7m 3s
-
Storing data as a webpage5m 26s
-
5. Getting More out of Objects
-
Sorting the information6m 33s
-
Filtering specific data7m 23s
-
Working with methods3m 15s
-
6. Scripts and Automation
-
Creating your first script6m 41s
-
Using variables for storage6m 11s
-
Using parameter attributes6m 36s
-
Using comment-based help5m 33s
-
7. Scalable Management with PowerShell Remoting
-
Enabling PowerShell remoting3m 15s
-
Conclusion
-
Next steps3m 50s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Working with methods