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

Programming interfaces

PowerShell, by default, includes the Integrated Scripting Environment or ISE. This application provides instant help reference, command completion, syntax prompting, an integrated PowerShell interface, and coloring for visual reference. It does not support PowerCLI out of the proverbial box and adding it is also not available at this point in the lifecycle of the product; however, starting each script with the following code snippet will ensure PowerCLI commands are included in the running of the script.

Add-PSSnapinVMware.VimAutomation.Core -ErrorAction SilentlyContinue

This command calls the PowerCLI snap-in to ensure that even if the script is run outside of the PowerCLI interface, it can still reference all the commands in the snap-in. As of Version 6 of PowerCLI, the get-module –ListAvailable command will now show the PowerCLI modules.

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