Skip to content
New issue

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

hosts that use non-default ports #1

Open
ericomu opened this issue Dec 27, 2023 · 0 comments
Open

hosts that use non-default ports #1

ericomu opened this issue Dec 27, 2023 · 0 comments

Comments

@ericomu
Copy link

ericomu commented Dec 27, 2023

my instance uses port 8443, so to get the script to connect, i have to add hostname:8443 and the export-csv bombs out because it uses the hostname in the filename. May i suggest changing the export-csv to the following to account for port values:

$name = $hostname.Split(":")[0]
$filename = "{0}_{1:yyyy-MM-ddThhmmss}_TaskActivityReport.csv" -f $name, (Get-Date)
$taskReport | Export-Csv -Path $filename

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant