-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
47dd0d2
commit 269325c
Showing
3 changed files
with
49 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
Launching PowerCLI | ||
================== | ||
|
||
Launching PowerCLI from Mac/Linux | ||
--------------------------------- | ||
|
||
Step 1 - Open terminal | ||
|
||
Step 2 - Start Powershell in the terminal by running the following command: | ||
:: | ||
|
||
powershell | ||
|
||
Step 3 - Import the PowerCLI Modules into your PowerShell Session: | ||
:: | ||
|
||
Get-Module -ListAvailable PowerCLI* | Import-Module | ||
|
||
Step 3a - (Optional - Please Read) If the SSL certificates of your vCenter are not trusted by your OS, disable SSL certificate validation for PowerCLI by running: | ||
:: | ||
|
||
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore | ||
|
||
Step 4 - Connect to your vCenter Server using Connect-VIServer | ||
:: | ||
|
||
PS> Connect-VIServer -Server 192.168.1.51 -User administrator@vSphere.local - | ||
Password VMware1! | ||
Name Port User | ||
---- ---- ---- | ||
192.168.1.51 443 VSPHERE.LOCAL\Administrator | ||
|
||
Launching the PowerCLI Docker container | ||
--------------------------------------- | ||
Open a Terminal and run: | ||
:: | ||
|
||
docker run --rm -it vmware/powerclicore | ||
|
||
More options for working with and running the container can be found here_. | ||
|
||
.. _here: http://www.virtuallyghetto.com/2016/10/5-different-ways-to-run-powercli-script-using-powercli-core-docker-container.html |