Script updates
This commit is contained in:
1 parent
79b7ae1612
commit
d8f28d124d
3 files changed
+26
-10
No files matched your search
@@ -28,8 +28,8 @@ function GetFolderFromPath($folder) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Variables
|
# Variables
|
||||||
$fileVersion = "1.2.0"
|
$fileVersion = "1.2.1"
|
||||||
$fileDate = "2026-06-03"
|
$fileDate = "2026-07-29"
|
||||||
|
|
||||||
# Display Script Banner
|
# Display Script Banner
|
||||||
Write-Host "--------------------------------------------------" -ForegroundColor White
|
Write-Host "--------------------------------------------------" -ForegroundColor White
|
||||||
@@ -672,4 +672,12 @@ sudo /etc/init.d/network restart
|
|||||||
Write-Host "Message: $($_.Exception.Message)" -ForegroundColor yellow
|
Write-Host "Message: $($_.Exception.Message)" -ForegroundColor yellow
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Write-Host "Closing connection to $vcenter... "
|
||||||
|
try {
|
||||||
|
$abyss = Disconnect-ViServer $vcenter -confirm:$false
|
||||||
|
Write-Host "Success" -ForegroundColor Green
|
||||||
|
} catch {
|
||||||
|
Write-Error "Failure"
|
||||||
|
}
|
||||||
@@ -6,8 +6,8 @@ param (
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Variables
|
# Variables
|
||||||
$fileVersion = "1.2.0"
|
$fileVersion = "1.2.1"
|
||||||
$fileDate = "2024-12-13"
|
$fileDate = "2026-07-29"
|
||||||
|
|
||||||
# Display Script Banner
|
# Display Script Banner
|
||||||
Write-Host "--------------------------------------------------" -ForegroundColor White
|
Write-Host "--------------------------------------------------" -ForegroundColor White
|
||||||
@@ -102,4 +102,12 @@ foreach ($cluster in $clusters) {
|
|||||||
$entry | Out-File -FilePath $csvFileName -Append -Encoding UTF8
|
$entry | Out-File -FilePath $csvFileName -Append -Encoding UTF8
|
||||||
}
|
}
|
||||||
Write-Host "`nData for cluster $clusterName has been saved to the file $csvFileName."
|
Write-Host "`nData for cluster $clusterName has been saved to the file $csvFileName."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Write-Host "Closing connection to $vcenter... "
|
||||||
|
try {
|
||||||
|
$abyss = Disconnect-ViServer $vcenter -confirm:$false
|
||||||
|
Write-Host "Success" -ForegroundColor Green
|
||||||
|
} catch {
|
||||||
|
Write-Error "Failure"
|
||||||
|
}
|
||||||
@@ -8,8 +8,8 @@ param (
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Variables
|
# Variables
|
||||||
$fileVersion = "1.0.0"
|
$fileVersion = "1.0.1"
|
||||||
$fileDate = "2026-07-29"
|
$fileDate = "2026-07-31"
|
||||||
$scriptName = Split-Path -Path $PSCommandPath -Leaf
|
$scriptName = Split-Path -Path $PSCommandPath -Leaf
|
||||||
|
|
||||||
# Display Script Banner
|
# Display Script Banner
|
||||||
@@ -193,9 +193,9 @@ foreach ($vm in $VMs) {
|
|||||||
|
|
||||||
Write-Progress -Activity "Querying VMs" -Completed
|
Write-Progress -Activity "Querying VMs" -Completed
|
||||||
|
|
||||||
$sheetTitle = "Network Introspection Status For $vcenter"
|
$sheetTitle = "Network Introspection Status For VMs in $vcenter"
|
||||||
if ($vmfolder) {
|
if ($vmfolder) {
|
||||||
$sheetTitle += " - Folder $folder"
|
$sheetTitle += " - $folder Folder"
|
||||||
}
|
}
|
||||||
|
|
||||||
echo $vmresult
|
echo $vmresult
|
||||||
|
|||||||
Reference in new issue
Block a user