Database Repair MSSQL

Command: 1DBCC CHECKDB Returned: 123456789101112DBCC results for ‘AP_TypeLocations’. There are 3004 rows in 14 pages for object "AP_TypeLocations". Msg 8976, Level 16, State 1, Line 1 Table error: Object ID …

Diffs

Get a listing of files different between two branches 1git diff –name-status master..master-stable >> diffs.txt

AWS List Reserved Instance Contracts

1). Install the AWS CLI for PowerShell https://docs.aws.amazon.com/powershell/latest/userguide/pstools-getting-set-up-windows.html Click Start > type PowerShell > right click run as Administrator Run commands: 12345678Install-Module -Name AWS.Tools.Installer Install-Module -Name AWSPowerShell Set-ExecutionPolicy RemoteSigned Set-AWSCredential …

Domain Logging

Convert a domain user SID 1234PS C:\Users\Torrance> Get-ADUser -Identity ‘Torrance’ | select SID                                   …

Change Clock on Domain Joined PC

Stop the time service then change the clock from elevated command 123net stop w32time date 4/22/2021 net start w32time NOTE: the clock does switch back periodically, to permanently disable the …

Wazuh Delete Agent

Wazuh API 4 > From the API Console 1DELETE /agents?pretty=true&older_than=0s&agents_list=327,328&status=all https://documentation.wazuh.com/current/user-manual/agents/remove-agents/restful-api-remove.html

Cloud Trail Search Keywords Cheat Sheet

Cloud Trail Event Name Search Criteria RequestCertificate – SSL Cert Manipulation RunInstances – Instance Manipulation StartInstances – Instance Manipulation StopInstances – Instance Manipulation TerminateInstances – Instance Manipulation AuthorizeSecurityGroupEgress – Security …

Windows Software Distribution Folder

Windows Update service (svchost -k netsrv) can cause excessive CPU. Clear the C:\Windows\Software Distribution\ folder net stop wuauserv net stop bits Delete the folders contents End task svchost if it …