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

Re: Exporting RVtools report in CSV from Power Cli automation script

$
0
0

Thanks LucD. Its fixed the issue, but now its throws different error

 

PowerCLI C:\temp> .\RVTools_Export.ps1

Get-Date : Cannot bind parameter 'Date'. Cannot convert value "28/09/2015" to

type "System.DateTime". Error: "String was not recognized as a valid DateTime."

At C:\temp\RVTools_Export.ps1:42 char:57

+       if ((((Get-date).AddDays(-$OldFileDays))-(Get-Date($itemDate))).Days

-gt 0 ...

+                                                         ~~~~~~~~~~~

    + CategoryInfo          : InvalidArgument: (:) [Get-Date], ParameterBindin

   gException

    + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.PowerSh

   ell.Commands.GetDateCommand

 

 

thanks

vm2014


Viewing all articles
Browse latest Browse all 219257

Trending Articles



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