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

Duties of the Automation Engineer


Based upon the preceding project, this book ideally tries to cover the Automation Engineer's task list, how to adapt the requirements gathering from the Service Architect, and how to script them. This section outlines the script process for building a VMware PowerCLI-based script, combining it with the Windows-based host PoSH script, and returning output.

Building the script

During the process detailed previously, there were three specific requirements:

  • 200 VMs in a common VM-based folder

  • All servers must have the common NTPSync service running and be tested once per hour

  • All servers must have 10 GB of free space on the C: drive

  • All VMs must be in a common datastore

There is a need to determine whether the scripts can be run independently or must be part of the same script. There is no requirement to have them run together, so we will start with independent scripts for each requirement.

Mixing PowerCLI and standard PowerShell

The idea of running PowerCLI within an...

lock icon The rest of the chapter is locked
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 €18.99/month. Cancel anytime