PowerCLI Essentials by Chris Halverson

PowerCLI Essentials by Chris Halverson

Author:Chris Halverson [Halverson, Chris]
Language: eng
Format: azw3
Publisher: Packt Publishing
Published: 2016-04-25T04:00:00+00:00


Get-VM -Name $global:VMSpecs.Name | Move-VM -Destination ` $Global:VMSpecs.Folder -Confirm:$false | Out-Null Write-Host -ForegroundColor Magenta 'Powering up VM...' Get-VM -Name $global:VMSpecs.Name | Start-VM -Confirm:$false | ` Out-Null Write-Host -ForegroundColor Cyan 'Exiting Script'

Summary

This chapter summarized good coding practice, outlined the use of repeatable code, and ways to use that code for other general uses. It built a longer code base, provided methods for keeping the flow of development from concept, to thought, to action, and summed up a version control system to keep historical information into the script management structure, in order to help make the whole script traceable from inception to final iteration.

In the next chapter, we bring these VMware administrative scripts together and mash them with the standard Windows administrative script enabling the provisioning, operating, and decommissioning of a VM and establishing the Windows workflow as part of the same script.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.