Problem with Convert-ADTDeployment

Hey, i want to migrate from v3 to v4. I Installed all PowerShell Modules and created a new template. Now i want to convert my existing Packages to v4 with the Convert-ADTDeployment Function. It seems like in 90% the following error appears:

Convert-ADTDeployment : The process cannot access the file
'C:\Users\Testuser\Temp\Convert-ADTDeployment_si2vrwfdktp\Invoke-AppDeployToolkit.ps1' because it is being used by another
process.
At line:1 char:1

  • Convert-ADTDeployment -Path "D:\7-Zip_22.01\Install"
  •   + CategoryInfo          : OpenError: (:) [Convert-ADTDeployment], IOException
      + FullyQualifiedErrorId : FileOpenFailure,Convert-ADTDeployment
    
    

Sometimes out of nowhere it works and the convert was successful. But then without changing anything it fails again. The folder in the Temp path doesn't seem to exist. And i can't see any process really using it.

Any idead what i can do? Thank You.

You'll never get help for this module here on the forums; best lodge a report here: GitHub · Where software is built