Search notes:

PowerShell error message: The 'xxx' command was found in the module 'xxx', but the module could not be loaded.

Trying to run a PowerShell command results in an error:
xyz : The 'get-xyz' command was found in the module 'xyz', but the module could not be loaded. For more information,
run 'Import-Module xyz'.
At C:\Users\Rene\bla.ps1:76 char:6
The message recommends to import the module, which only results in yet another error message:
PS C:\Users\Rene> import-module xyz
import-module : File …\…\xyz.psm1 cannot be loaded. The file …\…\xyz.psm1 is not digitally
signed. You cannot run this script on the current system. For more information about running scripts and setting execution policy, see about_Execution_Policies at
https:/go.microsoft.com/fwlink/?LinkID=135170.
The (or at least one of the) solution(s) is to unblock the file:
PS C:\Users\Rene> unblock-file …\…\xyz.psm1

Index