Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Learning PowerCLI for VMware VSphere
  • Table Of Contents Toc
Learning PowerCLI for VMware VSphere

Learning PowerCLI for VMware VSphere

By : Robert van den Nieuwendijk
3.9 (15)
close
close
Learning PowerCLI for VMware VSphere

Learning PowerCLI for VMware VSphere

3.9 (15)
By: Robert van den Nieuwendijk

Overview of this book

Table of Contents (17 chapters)
close
close
Learning PowerCLI
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1
Index

Chapter 3. Working with Objects in PowerShell

PowerShell is an object-oriented shell. Don't let this scare you because knowing how to work with PowerShell objects will make your life much easier. Objects in PowerShell have properties and methods, just as with objects in real life. For example, let's take a computer and try to see it as an object. It has properties such as the manufacturer, the number of CPUs, the amount of memory, and the computer type (for example, server, workstation, desktop, or laptop). The computer also has methods. For example, you can switch the computer on and off. Properties and methods together are called members in PowerShell. In Chapter 2, Learning Basic PowerCLI Concepts, you already saw the Get-Member cmdlet that lists the properties and methods of a PowerShell object. In this chapter, you will learn all of the ins and outs of PowerShell objects. We will focus on the following topics:

  • Using objects, properties, and methods

  • Expanding variables and subexpressions...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Learning PowerCLI for VMware VSphere
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon