Hi guys,
Im the powercli world and i need some help.
I create an script for collect the active alarm on vcenter, the script work fine .
Now i need to send the result to a txt, i use :
$date = get-date -uFormat "%d%m%y"
$alarms | out-file C:\PS-Scripts\ReporteAlarmasvcenterXX-$date.txt
So, the script then the outputo to the txt file but when i execute again the script the output is send it to the same file,
How can a send the output to a new file? :-.( .,
I found that with the command get-date -format D i get the the date in the name of the file but when a tried .-format G "date + hour" i receive an error from the scrit , that the path is not found.
I need to change the path?
Thanks
Carlos