You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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
The text was updated successfully, but these errors were encountered: