Windows Certutil utility can be used to retrieve private keys which have been deleted from the certificate store
certutil -repairstore my <serial number>
Serial number is available in details tab of the certificate.
Windows Certutil utility can be used to retrieve private keys which have been deleted from the certificate store
certutil -repairstore my <serial number>
Serial number is available in details tab of the certificate.
Symptom:
When application is opened from Front-end server it returns “Http error 500” wherease the same application works from the application server.
Cause:
The SPRequestFilterModule is not correctly registred in IIS on front end server.
<add name="SPRequestFilterModule" image="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\isapi\sprequestfilteringmodule.dll" preCondition="integratedMode,bitness64" />
To fix the issue ensure that the line above is listed in the globalModules section of the applicationHost.config.
This can be achieved either by manually editing the applicationHost.config or by running the following PowerShell script:
$assembly = [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
$amsiReceiver = $assembly.GetTypes() | ?{$_.Name -eq "AntimalwareScanFeatureReceiver"}
$amsiReceiver::EnsureGlobalConfiguration()
# Also run this line for 2019 and Subscription Edition
$amsiReceiver::ChangeGlobalConfiguration()
References:
https://techcommunity.microsoft.com/t5/sharepoint/sharepoint-server-2019-http-error-500/m-p/4104235
netsh http show sslcert displays all certs
netsh http delete sslcert ipport={machine-ip}:443
where {machine-ip} should be replaced with the actual IP address
Export the SharePoint Root Authority certificate as a physical (.cer) file. Start the SharePoint 2010 Management Shell as an Administrator, and then run the following Windows PowerShell commands:
$rootCert = (Get-SPCertificateAuthority).RootCertificate
$rootCert.Export("Cert") | Set-Content C:\SharePointRootAuthority.cer -Encoding byte
Follwoing procedure is for Windows 11
Right click on the Windows icon in the taskbar on destkop
Click Windows Terminal (Admin)
Type in netsh wlan show profile and hit enter
netsh wlan show profile "Wireless name from above" key=clear

Password can be found in “Key Content section”
Source: How to find Wi-Fi password of Any Network you have ever connected to.
To encrypt open command promt and navigate to C:\Windows\Microsoft.NET\Framework64\v4.0.30319
Run follwoing command to encrypt appSettings section
aspnet_regiis -pe "appSettings" -site "SharePoint - 80" -app "/" -prov "RsaProtectedConfigurationProvider"
Use follwoing command to decrypt appSettings section
aspnet_regiis -pd "appSettings" -site "SharePoint - 80" -app "/"
Similary other sections in the webconfig e.g. connectionStrings can also be encrypted
set rowcount 5000
DELETE FROM [TableName] WHERE [timestamp] < '2022-01-01 00:00:00';
while @@ROWCOUNT > 0
begin
DELETE FROM [TableName] WHERE [timestamp] < '2022-01-01 00:00:00';
end
set rowcount 0
go
Above statements will delete 5000 rows at a time from SQL table, this will prevent locking table during bulk delete.
admin connection remotely
save .rdp file
run following from command prompt
mstsc .\name.rdp /admin
Open the SharePoint Management Shell
At the PowerShell command prompt, type the follwing command to replace the secondar site collection administrator
Set-SPSite -Identity "<SiteCollection>" -SecondaryOwnerAlias "<User>"
Where:
Reference:
https://docs.microsoft.com/en-us/sharepoint/sites/change-site-collection-administrators