Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
PowerCLI Essentials

You're reading from   PowerCLI Essentials Simplify and automate server administration tasks with PowerCLI

Arrow left icon
Product type Paperback
Published in Apr 2016
Publisher Packt
ISBN-13 9781785881770
Length 194 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Chris Halverson Chris Halverson
Author Profile Icon Chris Halverson
Chris Halverson
Arrow right icon
View More author details
Toc

Report-VMHostConfigStatus

VMware created a method to maintain and keep a VMHost at a certain compliance level using a component called Host Profiles. Host Profiles maintain a record within vCenter to a base configuration using a Reference Host, and PowerCLI can be used to configure this reference host.

Running a simple PowerCLI command allows the creation of a basic profile:

New-VMHostProfile –Name TestProfile –Description "PowerCLI basic Profile" –ReferenceHost VMHost1

It takes a few moments and a TestProfile is created within the vCenter environment. Default settings store domain authentication and the network and storage settings. It leaves the rest of the profile open for changes and alterations. As a consultant at numerous organizations, many companies feel the host profiles are overkill to a basic implementation script of certain configurations. So, with that in mind, let's think of implementing this type of script and name it Report-VMHostConfigStatus...

You have been reading a chapter from
PowerCLI Essentials
Published in: Apr 2016
Publisher: Packt
ISBN-13: 9781785881770
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime