Menu

Virtual Geek

Tales from real IT system administrators world and non-production environment

Blog posts : "powercli"

VMware PowerCLI Connect-VIserver Could not connect using the requested protocol

While working on one of the client systems, I freshly installed PowerCLI module and while connecting to VMware vCenter server I was receiving below error.

Another Error: VMware PowerCLI The remote server returned an error: (407) Proxy Authentication Required

Connect-VIServer :  6/05/2021 3:…

Read more

PowerCLI oneliner get the list of users and groups from vCenter SSO

I was doing the audit of VMware vSphere vCenter servers to know the users and groups list on the vsphere.local SSO domain (If any custom new user or groups created), Below simple one-liner script helps to fetch the list of groups from vsphere.local single sign on domain. 

Import-Module VMwa…

Read more

PowerCLI create, modify and assign tag and tagcategory

This script is written using VMware Powercli module and its purpose is as similar as earlier written script Powershell vCenter server Rest API create and assign tag and tagcategory for creating and modifying Tag and TagCategory, only the difference is earlier script is written using vSphere API t…

Read more

Powershell vCenter server Rest API create and assign tag and tagcategory

While working on one of the automation project I wanted to assign tags and tag category on VMware clusters using Powershell, It is easy task when done using PowerCLI module but the requirement was not to use PowerCLI module instead make use of vSphere vCenter Rest API

PowerCLI create, modif…

Read more

PowerCLI Add a SCSI Controller to a Virtual Machine

My requirement was to write and automate adding a new virtual SCSI controller to virtual machines using PowerCLI. For this task there is cmdlet is already available New-ScsiController. But the problem with command is, standalone virtual SCSI controller cannot be added. It has to add new or existing…

Read more

Powershell Using vRealize Log Insight Rest API

I had an assignment to automate vRLI (VMware vRealize Log Insight) using Powershell as well as Ansible. Here in this article I am showing how to use Microsoft Powershell to automate vRLI configurations. The best part about vRLI is, it provides Rest API which you can easily consume with any scripting…

Read more

Add a VMFS datastore using VMware PowerCLI

This article's completely focus is on VMware PowerCLI command line to add or create new VMFS datastore, You can check Create a VMFS Datastore in the vSphere Client how The same task is performed using vSphere Client (HTML5). To start first Import Vmware.PowerCLI module on to PowerShell and log in t…

Read more

PowerCLI Get-VMhost The operation on computer failed The WinRM client cannot process the request

I frequently get error winrm client cannot process the request while running few VMware PowerCLI commands for example: Get-VM, Get-VMhost etc. The complete error is highlighted as below in the Red, This generally happens due to duplicate cmdlet name in the another module.

Microsoft Powershell Module PowerCLI vmware.Powercli vmware vsphere esxi connect-viserver import-module get-vmhost winrm hyper-v module vcenter server vcsa vsphere client visual studio code.png

Import-Module VMw…

Read more

Assign vSAN licenses in vSphere client

After writing Administrating licenses in vSphere client I missed to mention another way to assign licences to vSAN cluster. Whenever you build you a new cluster and if don't enable vSAN services, that cluster generally is not listed under licenses Assets, Unless you enable vSAN service on cluster. (…

Read more

Powercli Get vCenter assigned licenses report

This is a second part of earlier written article Powercli Get vCenter licenses information, that script will help to collect all the added VMware licenses but doesn't show which system is utilizing the license. Here in this script it helps you to get report of assigned licences information. Using …

Read more

Powercli Get vCenter licenses information

Recently I was testing vCenter and Esxi 7 - vSphere suite for my new project, I periodically ask my subordinate team to review and collect the licenses information to know and forecast licensing needs. To use this script first I fill and run information accordingly. (Temporarily remove/unload Hyper-…

Read more

Connect-VIServer Error: Invalid server certificate. Use Set-PowerCLIConfiguration

After installation of new version of VMware PowerCli module on one of my deployment at client infrastructure. I tried testing it by using cmdlet connect-viserver to vcenter, which was failing with below error. Reading error carefully on the screen, which was telling me, my vcenter’s SSL certificate…

Read more

Installing VMware.Powercli latest version and Error Invalid server certificate Set-PowerCLIConfiguration

Way long back, After writing my my article VMWARE VSPHERE POWERCLI INSTALLATION AND CONFIGURATION STEP BY STEP, I decided today to upgrade my vSphere PowerCLI to newer version 10 in the office, I am choosing little bit different installation method instead of using exe installer, PowerCLI can be do…

Read more

Using PowerCLI to Increase VMDK (Virtual disk) in VMware Virtual Machine

Below oneliner commands I recently used to configure multiple VMware Virtual Machines Hard disk, Task was to grow/extend VMDK virtual disk on more than hundreds of the virtual machine. Below is the main techniques and gist of the article and scripts. These one-liner commands also include the command…

Read more

vMotion from all VMs on selected Esxi Host to other Esxi host via PowerCLI GUI

Currently I am doing complete VMware environment upgrade in my office in terms of hardware as well, After few plans I found most of my Esxi servers in VMWare clusters in my office were over committed. First question was by my boss was how do we perform it without degrading current VMs performance. T…

Read more

Upload files to vmware ESXi datastore: Different methods

Copying files to VMware Datastores is an easy task. Here in this article, I am showing 3 different methods to upload files to VMware datastores, You can use these methods to copy offline bundle zip, VIB, VMDK or ISO files. Ifyou are using VMWare vSphere web client to upload files to datastore, make …

Read more

Powercli GUI: Determine the EVC Mode that vmware cluster should be configured

vmware vsphere esxi cluster, enhanced vmotion mode evc, cpu manufacturer, cpu generations, failover, drs, ha, vmware high availibility, distributed resource scheduler

I was evaluating one of the old project hosted on VMware in my office for a client, After ruff capacity calculation I found scarce of compute and memory resources in the VMware clusters. Few meetings and decisions, and sharing complete excel data and capacity planning for upcoming VMs, we decide…

Read more

Add NFS datastores to VMware ESXi hosts using PowerCLI

Warning: Windows NFS server is not listed on VMWare HCL as Esxi NFS datastore. I am using it as a demo purpose.

In this article I will use NFS mount created earlier in Microsoft Powershell: Windows 2016 Install and configure NFS server. Mounting the same NFS datastore storage on Esxi servers or …

Read more

VMware Powercli : Gather distributed virtual switch information to JSON file to migrate standard switch

I have already written complete series on how to migrate distributed virtual switch to Standard virtual switch which helps to move Esxi host from one vCenter to another vCenter server. As you should not remove Esxi directly with distributed switch from vCenter until you move it to standard virtual s…

Read more

Join domain ESXi to an Active Directory OU : Powercli

I received request from my internal team to provide a small solution on Esxi Domain join and created when pulled it in domain computer account should be created in specific OU (Organization Unit). To perform this task first, we need complete OU path, to find it open Active Directory Users and Comp…

Read more

20 blog posts

Blog Search

Page Views

12278611

Follow me on Blogarama