Compare commits

...
2 Commits
Author SHA1 Message Date
ackitsme 37adc4f178 Merge branch 'main' of https://gitea.ackcentuate.com/ackitsme/PowerShell 2026-08-04 20:44:00 -07:00
ackitsme d8f28d124d Script updates 2026-08-04 20:43:53 -07:00
3 changed files with 24 additions and 8 deletions

No files matched your search

+10 -2
View File
@@ -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
@@ -673,3 +673,11 @@ sudo /etc/init.d/network restart
} }
} }
} }
Write-Host "Closing connection to $vcenter... "
try {
$abyss = Disconnect-ViServer $vcenter -confirm:$false
Write-Host "Success" -ForegroundColor Green
} catch {
Write-Error "Failure"
}
+10 -2
View File
@@ -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
@@ -103,3 +103,11 @@ foreach ($cluster in $clusters) {
} }
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"
}
+4 -4
View File
@@ -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