PowerCLI, VMware Management Framework bir PowerShell modülüdür. Kurulumu için aşağıdaki adımlar takip edilmelidir;

PowerShell “Run as Administrator” olarak çalıştırılır.

1- İndirme/Kurulum

Install-Module” komutu ile kurulumu başlatıyoruz

Install-Module -Name VMware.PowerCLI

2- Kontrol

İndirme ve kurulum kontrolü için “Get” komutu ile aratıyoruz, aşağıdaki gibi uzun modül listesini görüntülüyor olmamız gerek

Get-Module -ListAvailable -Name VMware*
Resim1

Bu aşamada “Connect-VIServer” komutu ile bağlantı sağlamaya çalışırsak aşağıdaki hatayı alırız

Resim2

3- Import

Modül kurulumu tamam ancak import edilmediği için hata alınmakta, “Import-Module” ile işlemi sağlıyoruz

Import-Module -Name Vmware.PowerCLI
Resim3

Running scripts disable olduğu için tekrar hata mesajı gördük, aşağıdaki komutu yazarak tekrar import ediyoruz

Set-ExecutionPolicy RemoteSigned
Import-Module -Name Vmware.PowerCLI
Resim4

4- Sertifika Hatası

Connect-VIServer” komutu ile tekrar bağlantı deniyoruz ve sertifika hatası alıyoruz

Resim5

Son olarak sertifika uyarısı için aşağıdaki komutu yazıyoruz ve tekrar bağlantı deniyoruz;

Set-PowerCLIConfiguration -InvalidCertificateAction Ignore
Resim6

Connect-VIServer -Server “HostnameorIP” -User “Name” -Password “Parola”

Resim7

Başarılı bir şekilde vCenter bağlantısı sağlamış olduk!

3 Comments

  1. Great article! I appreciate the clear and insightful perspective you’ve shared. It’s fascinating to see how this topic is developing. For those interested in diving deeper, I found an excellent resource that expands on these ideas: check it out here. Looking forward to hearing others’ thoughts and continuing the discussion!

  2. This article provided a lot of valuable information. The author’s perspective was both refreshing and enlightening. It would be interesting to hear how others feel about these points.

Bir yanıt yazın

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir

error: İçerik Korumalı