CD hardening improvements (via https://github.com/Sitecore/PowerShell-Script-Library)