Turn On MSSQL Database Logging

Open elevated Powershell

Invoke-Sqlcmd -Query “EXEC xp_instance_regwrite N’HKEY_LOCAL_MACHINE’, N’Software\Microsoft\MSSQLServer\MSSQLServer’, N’AuditLevel’, REG_DWORD, 3;” -ServerInstance “localhost”; netstop MSSQLSERVER; netstart MSSQLSERVER; netstart MSSQLLaunchpad; netstart SQLSERVERAGENT