I'm trying to automate this step on a local network that's not included in a domain. I've tried using auto-it but had little luck with that. Is there any way of doing this using a batch script or using PowerShell ?
You can create a template file that matches the security policy settings you wish to apply. This file can then be applied via the command line using a tool called secedit.
This link provides the details.