📑
Joe's Notes and Links
  • About this site
  • About me
    • Links
    • Awards & Certifications
      • Veeam
      • Kasten
      • AWS
      • Other
      • Planned Certifications
  • Backup Theory
    • Basics Articles
      • I - Why Snapshots Are Not Backups: Understanding the Crucial Differences
      • II - Why Replication is not Backup: Understanding the Differences
      • III - Backup Best Practices: Building a Robust Data Protection Solution
      • IV - Understanding Backup Strategies: Full, Incremental, and Differential Backups
      • V - Understanding RPO and RTO
      • VI - Versioning and Retention Policies: The Backbone of Data Protection Solutions
      • VII - Implementing Backup Scheduling for Optimal Data Protection
      • VIII - Data Classification: A Crucial Pillar in Effective Backup and Recovery Strategies
      • IX - Extending Backup Measurements - Understanding RTO and RTA
    • Terminology
  • Backup Products
    • Veeam
      • Veeam Legends VBR Pocketbook V1
      • PostgreSQL
      • Powershell Scripting (Veeam specific)
        • How to automate Veeam Backup and Replication Global Exclusion Lists
        • Get Result of Backups for one VM for a Year
        • Multitag Jobs
      • Backup & Replication
        • Error "Failed to upgrade host components. Error: 'Minimum supported OS version for Veeam VSS..."
        • [Changed in V11] - Handling of exported and orphaned backups
        • [New in V12] - 2FA Login is not available with expired license
        • Quick Backup of a VM associated to multiple Backup jobs
        • Backup of Windows 10 PC with server managed agent
        • VBR Console – users and roles and job notifications
      • Agents
        • USB Disk as Veeam Repository in a private Environment
      • Veeam and Tape
        • Veeam and Tape I - Moving a tape library with data from one VBR server to another
        • Veeam and Tape II - Moving a tape library with data from one VBR server to another
        • Veeam and Tape III - Restore of Backup Job Files from Tape which were backed up with a File-to-Tape
        • Veeam and Tape IV - Cataloging a tape with a huge number of files
        • Veeam and Tape V - Usage of a S3 compatible Object Storage Gateway
      • Plugins for Enterprise Applications
        • Plugin for Oracle RMAN
          • Veeam RMAN Plugin – Update of Backup Meta Data
          • Veeam RMAN Plugin - ORA-01012 Error
          • Parameter "set-force-delete"
          • Parameter "logsDir"
      • Certification & Accreditation
        • Veeam Certified Architect (VMCA) 2022 - course and exam experience
        • New VMSP and VMTSP 2023 Accreditations available in ProPartner Portal
      • Service Provider Console
        • Deactivate Admins Group
      • Links
      • Miscellaneous
    • Spectrum Protect
      • Links
      • Backup/Archive Client
        • log4j Vulnerability - BA Client Fix and Workaround
  • Storage
    • Storage
      • Links
      • Brocade
        • Useful FOS Commands
  • Virtualization
    • VMware
      • Links
      • PowerCLI
        • How to install VMware PowerCLI offline
        • Prepare the connection to the vCenter
  • Automation and Scripting
    • Powershell scripting
      • Set PowerShell Execution Policies
      • Word-wrap PowerShell commands
      • Get Information about Networking
      • Check signature of a DLL
      • Query all VMs with mounted ISO files
      • Dismount all mounted ISO files on a cluster
      • List all Networks of all VMs on a Cluster
      • List all networks on all reachable cluster
  • OS
    • Windows
      • NTP
      • How to install VMware PowerCLI offline
      • Configure MTU Size
    • Linux
      • Routen setzen
      • Infos about FC and WWNs
  • Cloud
    • AWS
      • Links
  • Databases
    • Links
  • Tools
    • useful Tools and Websites
  • Community
    • Other great blogs/communities
Powered by GitBook
On this page
  1. Virtualization
  2. VMware
  3. PowerCLI

Prepare the connection to the vCenter

PreviousHow to install VMware PowerCLI offlineNextPowershell scripting

Last updated 4 months ago

Before you can use PowerCLI you have to configure the behavior of PowerCLI if the vCenter provides an unknown certificate. Under normal circumstances – when I am in a separated and firewalled environment, I configure PowerCLI to ignore unknown certificates.

Set-PowerCLIConfiguration -InvalidCertificateAction Ignore 

You need to do this only the first time you use PowerCLI on a system!

A confirmation screen appears, select "Yes to All"

Probably there is a message shown that you should join the VMware Customer Experience Improvement Program.

You can deactivate this with the following command

Set-PowerCLIConfiguration -Scope User -ParticipateInCEIP $false 

A confirmation screen appears, select "Yes to All"

Set the option to connect to multiple vcenter at the same time

Set-PowerCLIConfiguration -DefaultVIServerMode Multiple

A confirmation screen appears, select "Yes to All"

After this you can connect to the vCenter

Connect-VIServer -Server <IP or DNS name of the vCenter> `
   -Protocol https -User '<username>' -Password '<password>'

https://vdc-repo.vmware.com/vmwb-repository/dcr-public/847b8d79-9752-43d3-8217-8270ab647679/9e3681cf-989d-4bf9-94b2-30dd819f9abc/GUID-875C2A87-0AC9-4B28-9361-5B283AFE114E.html