New guy to PSADT

Hey all,

Sorry to be the noob here. About 3 weeks ago I installed psadt created a few packages and deployed them. Great. Today I went to create a new one and when I run new-adttemplate I get the following. I have first loaded appdeploytoolkit.ps1 without and issues. I went back and downloaded the recent version and replaced my files. Not sure what is going on. Anyone able to throw me a comment.

Thanks in advance

If you’re performing a new development, I’m not sure at all why you’d be doing anything with the v3 frontend stuff at all.

However the error you’ve got interests me greatly. Would it be possible for you to detail the exact steps from start to error so I can ascertain how you might have got here?

I downloaded a clean version of psadt. I ran the appdeploymain.ps1 in vscode. I then ran new-adttemplate function to create a new deployment and was greeted by the error code in my screenshot.

I’ll test that out, but please don’t download/use the v3 template. It’s for backwards compatibility (someone taking an existing v3 script and migrating it over). Please start with the v4 template, and since we already provide a pre-generated template (the v4 download), you should be on your way.

1 Like

Are you still having an issue here?

I recommend installing the module from the gallery, and not running appdeploytoolkitmain.ps1 to set stuff up like you may be used to doing from v3.


I’ve been using PSAPDTv3 for many years successfully. I am now trying to convert a v3 script (does not deploy an app) to v4.0.6 as newbie, getting a similar error when running as described above.

Any hints in which direction to look? Grateful for any leads!

Can you please explain more about your current setup. Are you using the v3 compatibility shim we provide, or is this a new Invoke-AppDeployToolkit.ps1 (v4) script?

I’m somehow missing Instructions for Dummies, seems. I downloaded v4.0.6, copied my existing deployapplication.ps1 into the root. I copied the Files folder from my old source with additional files I require as subfolder. I then ran Convert-ADTDeployment.
The shown error message appears when I try to run the resulting Invoke-AppDeployToolkit.ps1.

If there’s an issue with the converter, it’s best that you report it on the project’s GitHub repository. Despite it being written by a team member, I’ve never used it so I can’t begin to help you.