Category: powercli

  • How to Create Local ESXi Account and Assign Permissions Using PowerCLI

    Are you struggling to create local accounts and assign permissions for your ESXi hosts manually? In this post, we’ll show you how to use PowerCLI to make the process faster and more efficient. With just a few simple commands, you can create local accounts on your ESXi hosts, assign permissions, and even automate the process…

  • Single ESXi infrastructure upgrade: how to

    Updating your ESXi hosts is essential for optimal performance. Unfortunately, without vCenter, updating your hosts can become a time-consuming and daunting task. However, in this blog post, we’ll show you how to update your ESXi hosts using PowerCLI. PowerCLI offers an efficient, fast, and less error-prone way to update ESXi hosts without vCenter. With our…

  • vSphere CSI – remove orphan CNS volumes from GUI

    Lately I’ve been playing around with vSphere CSI driver and for those who don’t know what that is, vSphere Storage for Kubernetes, also called vSphere Cloud Provider, was introduced in 2017 and became the first vSphere storage solution for Kubernetes. The main goal of that project was to expose vSphere storage and features to Kubernetes…

  • Script – Get VMs created, deleted or modified on vCenter

    A while back someone asked me if i could tell him who deleted a vm and when. I was able to get the information but it took me quite some time digging in the events. After this request I was asked to create a script that would send an email every day with the VMs…

  • Get VM name with specific MAC Address

    -Recently I got a request to get a virtual machine (vm) name using only the network interface MAC Address. After search for some scripts I could not find one that really worked for me so I put my brain to work and this is what I came up: [sourcecode language=”powershell”] get-vm | get-networkadapter | Where-Object…