Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 232413

Re: Need a script for audit purpose

$
0
0

Try something like this

 

$eventTypes="AccountCreatedEvent","AccountRemovedEvent","AccountUpdatedEvent"

 

$start= (Get-Date).AddHours(-1)

 

Get-VIEvent-Start$start-MaxSamples ([int]::MaxValue) |

where {$eventTypes-contains$_.GetType().Name} |

SelectCreatedTime,

    @{N="Action";E={$_.GetType().Name}},

    @{N="Account ID";E={$_.Spec.Id}},

    @{N="Description";E={$_.Spec.Description}}


Viewing all articles
Browse latest Browse all 232413

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>