Clear Event Logs with PowerShell

Ever needed to clear all events from each of the 1100+ Event Viewer logs on a Windows workstation? From an elevated PowerShell console, run the following script to clear the event logs in Event Viewer… wevtutil el | Foreach-Object {wevtutil cl “$_”}   Good luck.

UPN Matching for Office 365

This past month I was tasked with integrating an on premises Active Directory (AD) and Exchange environment with an existing Office 365 tenant.  The difference between this project and all of the others I’d previously performed is that the customer’s Office 365 tenant only had a subscription for Office 365 ProPlus and the default domain was being…

Configure Authoritative Time Server in Windows

If an authoritative time server has not been configured for a Windows domain then each of the individual servers (and workstations) in that domain will attempt to set their time from Microsoft–which isn’t always a reliable source. As a result, machines could all have different times set on them, and be out of sync–which is…