Skip to content

Instantly share code, notes, and snippets.

@jeffgreenca
Created March 17, 2016 14:43
Show Gist options
  • Save jeffgreenca/507e8b6498bf9a858703 to your computer and use it in GitHub Desktop.
Save jeffgreenca/507e8b6498bf9a858703 to your computer and use it in GitHub Desktop.
Get details on VM reconfiguration from Get-VIEvents
#ajz posted this example at https://www.reddit.com/r/vmware/comments/4akx3o/when_did_somebody_change_the_memory/d126zrc
#Saving here for future reference
# Get VM's "Reconfiguration" events
$changeevents = $vm | Get-VIEvent | Where { $_.FullFormattedMessage -like "Reconfigured*"}
# Who initiated the event
$changeevents[0].UserName
# What specs were changed
$changeevents[0].ConfigSpec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment