Merge branch 'main' of https://git.amslabs.net/Rephl3x/Work-Tools
This commit is contained in:
@@ -73,4 +73,4 @@ Function Get-AdfsServerTrace {
|
|||||||
} else {
|
} else {
|
||||||
Write-Output $results
|
Write-Output $results
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -48,4 +48,4 @@ while ($true) {
|
|||||||
|
|
||||||
# Wait for 10 seconds (10 seconds)
|
# Wait for 10 seconds (10 seconds)
|
||||||
Start-Sleep -Seconds 10
|
Start-Sleep -Seconds 10
|
||||||
}
|
}
|
||||||
@@ -313,5 +313,4 @@ $exportButton.Add_Click({
|
|||||||
})
|
})
|
||||||
|
|
||||||
# Show the form
|
# Show the form
|
||||||
[void]$form.ShowDialog()
|
[void]$form.ShowDialog()
|
||||||
|
|
||||||
@@ -199,5 +199,4 @@ $buttonHelp.Add_Click({
|
|||||||
# Show the form
|
# Show the form
|
||||||
$form.ShowDialog()
|
$form.ShowDialog()
|
||||||
|
|
||||||
|
|
||||||
# Disclaimer: TWFkZSBieSBaYWsgQmVhcm1hbiAtIERhdGFjb20gV2ludGVsIC0gUHJvdmlkZWQgYXMgaXMgd2hlcmUgaXMuIElmIGJyb2tlbiB3aWxsIGJlIGxvb2tlZCBhdCBpbiBhIGJlc3QgZWZmb3J0IGF0dGVtcHQ=
|
# Disclaimer: TWFkZSBieSBaYWsgQmVhcm1hbiAtIERhdGFjb20gV2ludGVsIC0gUHJvdmlkZWQgYXMgaXMgd2hlcmUgaXMuIElmIGJyb2tlbiB3aWxsIGJlIGxvb2tlZCBhdCBpbiBhIGJlc3QgZWZmb3J0IGF0dGVtcHQ=
|
||||||
@@ -77,4 +77,3 @@ Function Receive-TCPMessage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -129,4 +129,4 @@ $form.Add_MouseClick({
|
|||||||
# Show the form
|
# Show the form
|
||||||
$form.Topmost = $true
|
$form.Topmost = $true
|
||||||
$form.Add_Shown({$form.Activate()})
|
$form.Add_Shown({$form.Activate()})
|
||||||
[void]$form.ShowDialog()
|
[void]$form.ShowDialog()
|
||||||
@@ -88,4 +88,4 @@ $form.Controls.Add($ipLabel)
|
|||||||
$form.Controls.Add($ipTextBox)
|
$form.Controls.Add($ipTextBox)
|
||||||
|
|
||||||
# Show the form
|
# Show the form
|
||||||
$form.ShowDialog() | Out-Null
|
$form.ShowDialog() | Out-Null
|
||||||
|
|||||||
@@ -26,4 +26,4 @@ foreach ($user in $users) {
|
|||||||
} elseif ($adUser.LastLogon -lt $thresholdDate) {
|
} elseif ($adUser.LastLogon -lt $thresholdDate) {
|
||||||
Write-Output "$samAccountName Password was last set on $($adUser.PasswordLastSet)"
|
Write-Output "$samAccountName Password was last set on $($adUser.PasswordLastSet)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -105,4 +105,4 @@
|
|||||||
<EventsFileName>
|
<EventsFileName>
|
||||||
</EventsFileName>
|
</EventsFileName>
|
||||||
</DataManager>
|
</DataManager>
|
||||||
</DataCollectorSet>
|
</DataCollectorSet>
|
||||||
@@ -108,4 +108,4 @@ if ($wrongSPNs) {
|
|||||||
Write-Host "`n[OK] No unexpected MSSQLSvc SPNs found." -ForegroundColor Green
|
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 ==="
|
||||||
@@ -55,4 +55,4 @@ if ($results.Count -eq 0) {
|
|||||||
Write-Host "No certificates found matching the criteria." -ForegroundColor Red
|
Write-Host "No certificates found matching the criteria." -ForegroundColor Red
|
||||||
} else {
|
} else {
|
||||||
$results | Format-Table -AutoSize
|
$results | Format-Table -AutoSize
|
||||||
}
|
}
|
||||||
@@ -30,4 +30,4 @@ Get-ChildItem -Path $CsrFolder -Filter *.csr | ForEach-Object {
|
|||||||
} catch {
|
} catch {
|
||||||
Write-Warning "Could not add DNS record for $fqdn : $_"
|
Write-Warning "Could not add DNS record for $fqdn : $_"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -43,4 +43,4 @@ foreach ($csr in $csrFiles) {
|
|||||||
Write-Host "Done processing $($csr.Name)"
|
Write-Host "Done processing $($csr.Name)"
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host "`nAll CSR filenames processed as hostnames."
|
Write-Host "`nAll CSR filenames processed as hostnames."
|
||||||
@@ -149,5 +149,6 @@ Write-Output "The original CSV file has been renamed to $newFilePath."
|
|||||||
# Open the folder containing the renamed CSV file
|
# Open the folder containing the renamed CSV file
|
||||||
Start-Process -FilePath "explorer.exe" -ArgumentList "/select,`"$newFilePath`""
|
Start-Process -FilePath "explorer.exe" -ArgumentList "/select,`"$newFilePath`""
|
||||||
|
|
||||||
|
|
||||||
# Clear all variables from active memory
|
# 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
|
Remove-Variable -Name form, label, label2, textBox, browseButton, acceptButton, cancelButton, csvPath, userList, destinationPath, todaysDate, outputCsvPath, originalFileName, originalFileExtension, directory, newFileName, newFilePath -ErrorAction SilentlyContinue
|
||||||
Reference in New Issue
Block a user