05 objects for the admin
-
Upload
shubham-atkare -
Category
Education
-
view
84 -
download
1
Transcript of 05 objects for the admin
![Page 1: 05 objects for the admin](https://reader033.fdocuments.us/reader033/viewer/2022060202/559cc5e21a28abb4368b462a/html5/thumbnails/1.jpg)
05 | Object for the Admin
Jeffrey Snover | Distinguished Engineer & Lead Architect
Jason Helmick | Senior Technologist, Concentrated
Technology
![Page 2: 05 objects for the admin](https://reader033.fdocuments.us/reader033/viewer/2022060202/559cc5e21a28abb4368b462a/html5/thumbnails/2.jpg)
Course Topics
Getting Started with PowerShell
01 | Don’t fear the shell 06 | The pipeline : Deeper
02 | The Help system 07 | The Power in the Shell - Remoting
03 | The pipeline : Getting connected 08 | Getting prepared for automation
04 | Extending the shell 09 | Automation in scale - Remoting
05 | Objects for the Admin 10 | Introducing scripting and toolmaking
![Page 3: 05 objects for the admin](https://reader033.fdocuments.us/reader033/viewer/2022060202/559cc5e21a28abb4368b462a/html5/thumbnails/3.jpg)
• Object across the pipeline
• Getting the information you need
• Sorting Objects
• Selecting Objects
• Custom Properties
• Filtering data
• Methods – When no cmdlet exists
Module Overview
![Page 4: 05 objects for the admin](https://reader033.fdocuments.us/reader033/viewer/2022060202/559cc5e21a28abb4368b462a/html5/thumbnails/4.jpg)
Object across the pipeline
![Page 5: 05 objects for the admin](https://reader033.fdocuments.us/reader033/viewer/2022060202/559cc5e21a28abb4368b462a/html5/thumbnails/5.jpg)
Getting the information you need
• Get-Member (gm)
• TypeName is a unique
Windows assigned name
• Displays the properties
and methods of an object
• Properties are potential
columns of information
• Methods are the potential
actions that can be taken
![Page 6: 05 objects for the admin](https://reader033.fdocuments.us/reader033/viewer/2022060202/559cc5e21a28abb4368b462a/html5/thumbnails/6.jpg)
Sorting Objects
• Sort-Object sorts
properties.
• Use Get-Member to
see a list of properties
![Page 7: 05 objects for the admin](https://reader033.fdocuments.us/reader033/viewer/2022060202/559cc5e21a28abb4368b462a/html5/thumbnails/7.jpg)
Selecting Objects
• Select-Object selects
properties.
• Use Get-Member to list
properties to select from.
• -first and -last restrict list of
rows displayed.
![Page 8: 05 objects for the admin](https://reader033.fdocuments.us/reader033/viewer/2022060202/559cc5e21a28abb4368b462a/html5/thumbnails/8.jpg)
Custom Properties
![Page 9: 05 objects for the admin](https://reader033.fdocuments.us/reader033/viewer/2022060202/559cc5e21a28abb4368b462a/html5/thumbnails/9.jpg)
Filter Object Out of the Pipeline
![Page 10: 05 objects for the admin](https://reader033.fdocuments.us/reader033/viewer/2022060202/559cc5e21a28abb4368b462a/html5/thumbnails/10.jpg)
Comparison Operators
• Comparison returns boolean
True or False
• Comparison can be case-
sensitive using ‘c’ prefix
• For complete description,
see About_Comparison
![Page 11: 05 objects for the admin](https://reader033.fdocuments.us/reader033/viewer/2022060202/559cc5e21a28abb4368b462a/html5/thumbnails/11.jpg)
Methods – When no cmdlet exists
![Page 12: 05 objects for the admin](https://reader033.fdocuments.us/reader033/viewer/2022060202/559cc5e21a28abb4368b462a/html5/thumbnails/12.jpg)
Questions or comments?
![Page 13: 05 objects for the admin](https://reader033.fdocuments.us/reader033/viewer/2022060202/559cc5e21a28abb4368b462a/html5/thumbnails/13.jpg)
©2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Office, Azure, System Center, Dynamics and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.