dbalcaraz
Expert
Expert

Re: PowerCLI script to get scratch space

Hi,

This is an advanced configuration (scratch location), so you will need to gather the data in the correspondent field.

First connect to vCenter and then you can try this: List scratch locations with powercli

Hope this helps.

-------------------------------------------------------- "I greet each challenge with expectation"
2 Replies
PandzicM
Contributor
Contributor

Hi dbalcaraz

I am looking for powershell/powerCLI command/script that will gather ESXI hosts in maintenance mode with dates when they are placed to .

I will run across multiple vcenters and command/script out should have properties: HostName, vCenter and Date when placed in MM in excel

would you be able to help me here?

Thanks a bunch

0 Kudos
dbalcaraz
Expert
Expert

Hi PandzicM,


Why would you like to put hosts in maintenance mode at some dates?

I mean, if you want to patch the ESXi host, VUM does it automatically.

About a script to run in multiplie vCenters, those should be connected to Enhanced Linked Mode, otherwise you will need to execute Connect-ViServer again in your script.


What are you trying to achieve?

-------------------------------------------------------- "I greet each challenge with expectation"
0 Kudos