4 ms·
You can certainly print them, but there's no guarantee you'll get all its contents by default, and there's still the problem of how to create those objects from
by userbinator 10y ago
You can certainly print them, but there's no guarantee you'll get all its contents by default, and there's still the problem of how to create those objects from some other output, e.g. in a file.
http://windowsitpro.com/powershell/powershell-objects-and-output http://windowsitpro.com/powershell/powershell-objects-and-ou...
It could be said that, in some ways, unstructured streams are far more WYSIWYG, which can conceptually mean easier understanding and use.
- nightski 10y agoOr it can mean a lot harder to understand and use. With types you get all of the metadata that you might not even have if it was plain text. In addition, every application chooses it's own serialization format. In the end, the only programs that compose well are those that work on text, not structured data (i.e. grep, awk, sed, etc...)
- useerup 10y ago> You can certainly print them, but there's no guarantee you'll get all its contents by default, and there's still the problem of how to create those objects from some other output, e.g. in a file. That's what CliXML is for. Export-CliXml writes objects to a file. Import-CliXml reads them back.
- 0x6c6f6c 10y agoI think they're assuming the default view output is being used for Export-CliXML, when really it's serializing the object passed to it.