This commit is contained in:
Zak Bearman
2025-10-01 12:24:12 +13:00
14 changed files with 12 additions and 14 deletions

View File

@@ -73,4 +73,4 @@ Function Get-AdfsServerTrace {
} else {
Write-Output $results
}
}
}

View File

@@ -48,4 +48,4 @@ while ($true) {
# Wait for 10 seconds (10 seconds)
Start-Sleep -Seconds 10
}
}

View File

@@ -313,5 +313,4 @@ $exportButton.Add_Click({
})
# Show the form
[void]$form.ShowDialog()
[void]$form.ShowDialog()

View File

@@ -199,5 +199,4 @@ $buttonHelp.Add_Click({
# Show the form
$form.ShowDialog()
# Disclaimer: TWFkZSBieSBaYWsgQmVhcm1hbiAtIERhdGFjb20gV2ludGVsIC0gUHJvdmlkZWQgYXMgaXMgd2hlcmUgaXMuIElmIGJyb2tlbiB3aWxsIGJlIGxvb2tlZCBhdCBpbiBhIGJlc3QgZWZmb3J0IGF0dGVtcHQ=

View File

@@ -77,4 +77,3 @@ Function Receive-TCPMessage {
}
}

View File

@@ -129,4 +129,4 @@ $form.Add_MouseClick({
# Show the form
$form.Topmost = $true
$form.Add_Shown({$form.Activate()})
[void]$form.ShowDialog()
[void]$form.ShowDialog()

View File

@@ -88,4 +88,4 @@ $form.Controls.Add($ipLabel)
$form.Controls.Add($ipTextBox)
# Show the form
$form.ShowDialog() | Out-Null
$form.ShowDialog() | Out-Null

View File

@@ -26,4 +26,4 @@ foreach ($user in $users) {
} elseif ($adUser.LastLogon -lt $thresholdDate) {
Write-Output "$samAccountName Password was last set on $($adUser.PasswordLastSet)"
}
}
}

View File

@@ -105,4 +105,4 @@
<EventsFileName>
</EventsFileName>
</DataManager>
</DataCollectorSet>
</DataCollectorSet>

View File

@@ -108,4 +108,4 @@ if ($wrongSPNs) {
Write-Host "`n[OK] No unexpected MSSQLSvc SPNs found." -ForegroundColor Green
}
Write-Host "`n=== MSSQLSvc + HADR SPN Check Complete ==="
Write-Host "`n=== MSSQLSvc + HADR SPN Check Complete ==="

View File

@@ -55,4 +55,4 @@ if ($results.Count -eq 0) {
Write-Host "No certificates found matching the criteria." -ForegroundColor Red
} else {
$results | Format-Table -AutoSize
}
}

View File

@@ -30,4 +30,4 @@ Get-ChildItem -Path $CsrFolder -Filter *.csr | ForEach-Object {
} catch {
Write-Warning "Could not add DNS record for $fqdn : $_"
}
}
}

View File

@@ -43,4 +43,4 @@ foreach ($csr in $csrFiles) {
Write-Host "Done processing $($csr.Name)"
}
Write-Host "`nAll CSR filenames processed as hostnames."
Write-Host "`nAll CSR filenames processed as hostnames."

View File

@@ -149,5 +149,6 @@ Write-Output "The original CSV file has been renamed to $newFilePath."
# Open the folder containing the renamed CSV file
Start-Process -FilePath "explorer.exe" -ArgumentList "/select,`"$newFilePath`""
# Clear all variables from active memory
Remove-Variable -Name form, label, label2, textBox, browseButton, acceptButton, cancelButton, csvPath, userList, destinationPath, todaysDate, outputCsvPath, originalFileName, originalFileExtension, directory, newFileName, newFilePath -ErrorAction SilentlyContinue