Could not load file or assembly

I’m getting the following error when I run the toolkit:
Import-Module: Could not load file or assembly 'file:///P:\Dotnet\Remote-dotnet-6.0.36\PSAppDeploymentToolkit\lib\net562\PSADT.dll' or one of its dependencies. Operation is not supported (Exception from HRESULT: 0x80131515)

What am I missing?

-Greg

My guess? you are running PSADT with an account that has no P: drive mapped.

What I’m missing from you is more info:

  • PSADT version (v…4.0.5 /4.0.6beta)
  • how you are launching PSADT (Intune/SCCM, system/user, etc)
  • What the hell are you trying to do