Troubleshooting PowerShell scripts
Troubleshooting information when errors occur running PowerShell scripts.
-
File
ScriptName.ps1cannot be loaded because the execution of scripts is disabled on this system (where ScriptName is the name of your PowerShell script) -
Enable the running of PowerShell scripts by entering the following PowerShell command:
Set-ExecutionPolicy Unrestricted -
Could not load file or assembly
Path\ImportExport\AssemblyName.dllor one of its dependencies (where Path is the installation media root folder and AssemblyName is the name of a .NET assembly) -
This message appears if the zip file containing the DXA distribution was blocked while it was being extracted.
To resolve this, in Windows Explorer, navigate to the installation media \ImportExport\ folder, select the DLL file and click Properties. In the General tab, click Unblock. Click OK to close the dialog. Then restart PowerShell and perform the same steps as before.