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

Re: Export Compliance Reports

$
0
0

No, I wouldn't do that in the same pipeline construct, it would break it since it doesn't do a Passthru of the HostSystem objects.

Make a separate one before the one with Get-Compliance.

 

...

$esx = Get-VMHost -Name (Get-Content "C:\esxihosts.txt")

 

$esx |

Scan-Inventory

 

$esx |

Get-Compliance -Detailed |

...

To avoid doing a Get-Content and the Get-VMHost twice, I placed that on a separate line, and store the results in a variable


Viewing all articles
Browse latest Browse all 150956

Trending Articles



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