We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When creating a Host List report, the file is created but contains no data even though the list view shows the data.
The text was updated successfully, but these errors were encountered:
The supplied collection to the Out-File is Null. Change $uiHash.Listview.DataContext to $uiHash.Listview.Items
The working code block for me is:
"Host File List" { If ($uiHash.Listview.Items.count -gt 0) { $uiHash.StatusTextBox.Foreground = "Black" $savedreport = Join-Path $Global:ReportPath "hosts.txt" $uiHash.Listview.Items | Select -Expand Computer | Out-File $savedreport $uiHash.StatusTextBox.Text = "Report saved to $savedreport" } Else { $uiHash.StatusTextBox.Foreground = "Red" $uiHash.StatusTextBox.Text = "No report to create!" } }
Sorry, something went wrong.
Thanks again!
proxb
No branches or pull requests
When creating a Host List report, the file is created but contains no data even though the list view shows the data.
The text was updated successfully, but these errors were encountered: