Monitor event logs and restart service by Powershell script
Settings Run the task every 15 minutes on task scheduler. Get the event ID within 15 minutes in the Powershell script. If it sees a Warning log, restart the specified service. Send an email just in case.…
Restart services on remote servers by command
When I had to restart the print spooler service on some servers, I didn't want to log in to servers and do that from the GUI on Services... So I created a .bat file to restart services…
Script to copy database on SQL Server
I use this script to copy the production DB to development/testing DBs on SQL Server. The previous person did this process with SSMS GUI - I didn't want to do that every time that was my motivation…
Procedure to re-join devices
When you use a conditional access policy with "Require Microsoft Entra hybrid joined device", if the device is not configured properly or the PRT token was not refreshed successfully, you'll see the error "You can't get there…
Set up Yubikey PIV Authentication for Windows RPD Sessions
The logs when I configured the YubiKey token to RDP into servers.
Configure Microsoft Entra CBA with on-prem CA
Put together the steps how to configure Microsoft CBA using an on-prem CA server.