A simple script example to automate the application creation process in ConfigMgr or Configuration Manager.
RebootBehavior set to NoAction, Accepted values: BasedOnExitCode, NoAction, ForceReboot, ProgramReboot
AutoInstall $true – indicates whether a task sequence action can install the application
Added Action to Distribute the Content to the DP Group at the end
Configuration Manager Checklist:
- Application Name
- With a deployment type: Same application name
- Content Location
- Installation Program
- Uninstall program
- Repair Program
- Detection method (a specific MSI Product code)
- User expierence: Install for system if resource is device; otherwise install for user
- Logon requirement: weather or not a user is logged on
Published on Github:
https://github.com/ThomasMarcussen/assortedScripts/blob/master/Create_SCCMApplication_1.0.1.ps1