To get the date and time in the filename you can for example use "VMsInfo-$(Get-Date -UFormat '%Y%m%d-%H.%M.%S').csv" as the filename.
↧
To get the date and time in the filename you can for example use "VMsInfo-$(Get-Date -UFormat '%Y%m%d-%H.%M.%S').csv" as the filename.