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

Re: Export Compliance Reports

$
0
0

I have another question on how to run the script. Right now I'm doing the following:

 

Set my hosts in C:\esxihosts.txt:

$vmHosts = Get-Content "C:\esxihosts.txt"


Then I'll run the script with:

 

ExportCompliance.ps1 (Get-VMHost -Name $vmHosts) "C:\Reports\"

 


Everything runs perfect like this. I was hoping to set these up as scheduled reports, and was wondering how I could set the variables within the script itself. For instance, I could have one script setup with the $vmHosts variable to point to esxihosts1.txt, and another script to point to esxihosts2.txt.


Viewing all articles
Browse latest Browse all 185049

Trending Articles



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