Hi, I have this command to get some values:
$computer = "SRV001"
get-date($CollectionTime)
Get-WmiObject win32_volume -computer $computer |
select PSComputerName ,name, label,
@{Name="Capacity (GB)";Expression={[math]::Round($_.Capacity/1GB)}}
i would like to add one more thing, the "$CollectionTime" value. I am running this command on a lot of computers so i want the value to be the same on all. if i do it like this
@{Name="CollectionTime"; Expression={get-date}}
Then the value will change a little bit since this commands takes some seconds.