Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Export-Clixml : The given path's format is not supported.

$
0
0

I am currently trying to export to xml and my script looks like this

$xml = $reportBuilder.GetMyReport()

$fileDestination = $filepath + "\" + $fileName + ".xml"

$xml | Export-Clixml -Path $fileDestination

when I debug this code, $fileDestiniation hold the value c:\folder\filename.xml

However, I keep getting the error that states "Export-Clixml : The given path's format is not supported". At this point am lost of ideas, cause I do not know why its saying that. Especially since the value for $fileDestination is a valid one. Please help.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



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