Hey LucD,
thanks for the input. Can you suggest me how to create a custom attribute. Also the from the below code i am able to retrive the notes of the VM.
Get-View -ViewType VirtualMachine -Property Name,
Runtime.Host,
Guest.GuestFullName,
Config.Annotation |
Select @{N="VM";E={$_.Name}},
@{N="VMHost";E={(Get-View -Id $_.Runtime.Host -Property Name).Name}},
@{N="Guest OS";E={$_.Guest.GuestFullName}},
@{N="Notes";E={$_.Config.Annotation}} |
Export-Csv "C:\VMscreated.csv" -NoTypeInformation -UseCulture
can we do automation for the new virtual machines that are deployed by automation are users?
say i want to add username(whoever spins), time ,date when anybody(User) tries to spin a new virtual machine in the environment.
Thanks
VK