I have create an app and wrapped it using PSADT. The wrapped application installs all fine when deployed from SCCM. When I use the same source in Intune for OOBE the installation fails. When I try to run the Deploy-Applications.ps1 manually during OOBE, i get to see an error stated below:
Resolve-Error : The term Resolve-Error is not recognized as the name of cmdlet, Script file. or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
The error is seen at line:
Catch{
[String]$mainerrormessage = “$(Resolve-Error)”
}
I haven’t changed anything from the template, and have just included command to install the executable.
Kindly assist on the issue as I am stuck with no clue whats wrong!!
Resolve-Error is a PSADT function but it doesn’t get declared until AppDeployToolkitMain.ps1 is loaded but Deploy-Applications.ps1 takes about 100 lines before it gets there.
I’ve reported this as a bug but it won’t be included until PSADT 4.0.
If you change the Catch statement at the end of Deploy-Applications.ps1 with this, you will have a log file created in %temp%.