April 13, 2021 was the final date for SharePoint 2010 extended support. Please see the SharePoint 2013 STIG scripts.
PowerShell scripts to automatically apply the SharePoint 2010, IIS 7 Server, and IIS 7 Site Defense Information Systems Agency (DISA) Security Technical Implementation Guides (STIGs) to SharePoint 2010 farms.
All scripts and supporting files are offered "as is" with no warranty. While I have tested these scripts in my environment, you should always vet and verify these scripts in a test environment before deploying them to production servers.
These scripts are available under the GPLv3 license.