Get and Disconnect VCenter sessions w/PowerCLi

Are you sure you know who connected to your VCenter(s)? From where and when the sessions were established? How long sessions have been idle? What user agents are used (Web Client/PowerCLi, etc.) to connect and many other usable info? This time we will look at just two functions Get-ViSession/Disconnect-ViSession from my PowerCLi Vi-Module module. Many … Continue reading Get and Disconnect VCenter sessions w/PowerCLi

ps1Liner :: MultiPathing report for vSphere hosts

What is one-liner? This is just one line of code (PowerShell/VMware PowerCLi or whatever) intended to perform particular task. It may be very or sometimes very-very long, but is still one line only! This one-liner retrieves pathing info for ESXi hosts. In the vSphere Client this info exists here: Select a host -> Configure tab … Continue reading ps1Liner :: MultiPathing report for vSphere hosts

Azure Automation: Increase Azure IaaS VM disks w/PowerShell

Several months ago I have written two functions Get-AzVmDisk and New-AzVmDisk that are intended to retrieve disk info and create new data disks for Azure VM(s). Today to close the topic, we will talk about how to increase existing OS and Data disks. It will be Expand-AzVmDisk function. Expand-AzVmDisk The Expand-AzVmDisk function from my Azure … Continue reading Azure Automation: Increase Azure IaaS VM disks w/PowerShell

Reconfigure/Edit SDRS Anti-Affinity Rules w/PowerCLi – Part 3

This is Part 3 of SDRS series. In the previous part we learned how to create and remove anti-affinity rules. To close the topic, it remains to edit/reconfigure existing rules. Logical to assume, it will be Set-SdrsAntiAffinityRule function. Set-SdrsAntiAffinityRule The function allows to edit both Inter-VM and VMDK rules. Let's go straight to examples. Reconfigure … Continue reading Reconfigure/Edit SDRS Anti-Affinity Rules w/PowerCLi – Part 3

Create and delete SDRS Anti-Affinity Rules w/PowerCLi – Part 2

This is Part 2 of SDRS series. The Part 1 How to configure Storage DRS clusters w/PowerCLi – Part 1 is here. Part 3 Reconfigure/Edit SDRS Anti-Affinity Rules w/PowerCLi – Part 3 and may be even Part 4 How to get SDRS History/Actions w/PowerCLi – Part 4 are expected in near future. This article will cover … Continue reading Create and delete SDRS Anti-Affinity Rules w/PowerCLi – Part 2

ps1Liner :: Add PowerCLi version to the $PSVersionTable variable

What is one-liner? This is just one line of code (PowerShell/PowerCLi or whatever) intended to perform particular task. It may be very or sometimes very-very long, but is still one line only! This one-liner adds PowerCLi version to $PSVersionTable environment variable. The technique described by Microsoft MVP Jeffery Hicks in this article. 1Liner Note, in … Continue reading ps1Liner :: Add PowerCLi version to the $PSVersionTable variable