WinSxS cleanup
Clean up: Dism.exe /online /cleanup-image /AnalyzeComponentStore Dism.exe /online /cleanup-image /StartComponentCleanup Health check and restore (if the commands above show errors): sfc /scannow Dism /Online /Cleanup-image /Scanhealth Dism /Online /Cleanup-Image /RestoreHealth
SSH-COPY-ID for Windows
type $env:USERPROFILE\.ssh\id_rsa.pub | ssh {IP-ADDRESS-OR-FQDN} “cat >> .ssh/authorized_keys”
RDP + RDG + MFA + More time to login
DWORD registry key at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp called “LogonTimeout” and setting the decimal value to the number of seconds needed such as 60.
Powershell + CSS in the tables
Not all CSS style instructions work in Outlook. There some tricks to colorize tables: Zebra in the table $Body = $Body -replace ‘(?.)\r\n(?.)’,’${first}${second}’ Replace in the table started from 3 to red and less to green $Body = $Body -replace ‘(?[3-9][0-9]{1,})(?.)’,’${first}${second}’ -replace ‘(?[1-2][0-9]{1,})(?.)’,’${first}${second}’ Simple replace $Body = $Body -replace <td>1</td>,<td bgcolor=#333>1</td>
Exchange 2019 + renew the certificate
You cannot renew the certificate via WebGUI, Powershell only. We will use Godaddy and we have the existing certificate which we will renew. Get the renewed certificate from Godaddy. Run IIS management console on the first Exchange server. Go to Server certificates and click Complete certificate request. Choose the certificate from Godaddy. It will appear […]