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

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

ps1Liner :: Eject CDROM drive for all VMware VM

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 unmounts Datastore ISO file from all CD/DVD drives for all pipelined VM. 1Liner WhatIf You can review the state before … Continue reading ps1Liner :: Eject CDROM drive for all VMware VM