Failed to run script function "configure-cert"

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


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001FjTCAU&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail