Difference between revisions of "Script Extracts and Examples (PowerCLI)"

Jump to navigation Jump to search
→‎ESX Datastore to LUN Mapping (ESX4): Added border around script
m (→‎ESX Datastore to LUN Mapping (ESX3): Added border around script)
(→‎ESX Datastore to LUN Mapping (ESX4): Added border around script)
Line 1,125: Line 1,125:
Produces a similar output to the above, but works for ESX4 servers.
Produces a similar output to the above, but works for ESX4 servers.


<source lang="powershell" enclose="div">
<source lang="powershell">
function Get-DS-LUNs-v4 ($objESXs) {
function Get-DS-LUNs-v4 ($objESXs) {
     foreach ($cluster in (Get-View -ViewType "ClusterComputeResource")) {
     foreach ($cluster in (Get-View -ViewType "ClusterComputeResource")) {

Navigation menu