- I'm gonna start by building a typical script.…But I'm gonna show you how to advance this…into something better than just a regular script,…turning this into a useful tool.…First of all, I like to solve my problem at the console.…What I'm gonna use is something…from what's called a WMI and CIM.…I'm gonna use a command called CimInstance.…This gives me access to a series of classes…that can get information for me.…I'm gonna grab some disk information,…logicaldisk,…and I would like to grab this.…
If I run it right now,…you can see I'm getting my drive information.…I can pipe this to get-member.…There's a bunch of properties I'm actually receiving…about my disk.…But I wanna filter this.…This is filtering to the left.…I wanna filter on DeviceID=…just the C drive for right now.…So I'm getting my C drive information.…I wanna get it from a different computer.…So I'm gonna use ComputerName DC.…That's coming from my domain controller…rather than my local machine.…I don't want all of these properties.…
So in my brain, I'm, like,…
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
-
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: Creating a parameterized script