Failed to run script function "configure-cert"
88
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 13:03 PM
Symptom
Since SQL provisioning requires dbatools, you may face an error
Failed to run script function "configure-cert": Could not import C:\Program Files\WindowsPowerShell\Modules\dbatools | Could not load file or assembly or one of its dependencies
Environment
VaaS/TLSPC TLSPC
Windows Server 2016-2025
Cause
In very restricted Windows Server environments any module offline installation may face files being blocked by Windows itself
Resolution
- Right-click on the module's file (or the DLL file if you know which one it is) and select Properties.
- On the General tab, look for a Security section and check the box that says Unblock, then click OK.
- It may be necessary to unblock all files in the module's directory. Close and reopen PowerShell after unblocking the files