Beginners Question - Calling PSAD variables when testing package locally

Hi all! First post here thanks in advance for any help you can provide.

I’m testing a psappdeployment package and would like to call variables typically set when we deploy the package via mecm\sccm. How can I make $dirFiles & $dirSupporFiles available to me when testing portions of the deployapplication.ps1 script locally?

You need to dot source the main script.

. "<path to AppDeployToolkitMain.ps1>"

It can be added to your powershell profile to be loaded automatically.

That did the trick. Thank you!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.