-
Notifications
You must be signed in to change notification settings - Fork 0
Global Json Overview
The Global Config Json is a file that contains all the configuration for the application.
- What is the Global Config Json?
-
Table of Contents
-
Attrributes
- companyName
- lastModified
- MEMCMModulePath
- packagingTargets
- recipeLocations
- packagingTargets
-
Attrributes
The company name is just the name of the company that is using the application.
{
"companyName": "My Company"
}
The last modified date is the date that the Global Config Json was last modified.
{
"lastModified": "2020-01-01"
}
This is the path to the MEMCM Powershell module.
{
"MEMCMModulePath": "C:\\Program Files (x86)\\Microsoft Endpoint Manager\\AdminConsole\\bin\\ConfigurationManager.psd1"
}
Type is the type of packaging target. This currently only supports MEMCM-Application.
The site property is the FQDN for the MEMCM site.
This is the site code you've setup for your MEMCM site.
This is the path recipes can use to download files for use in packaging.
This is the source directory for the MEMCM application.
This is what should always be prepended to the application name in MEMCM.
This is what should always be appended to the application name in MEMCM.
{
"packagingTargets": [
{
"type": "MEMCM-Application",
"site": "mysite.mycompany.com",
"siteCode": "MY1",
"downloadLocationPath": "C:\\Temp",
"applicationContentPath": "C:\\MySiteContent",
"preAppName": "AutoPkgPre",
"postAppName": "AutoPkgPost"
}
]
}
This property is used to list either deployment point groups and/or deployment points where the applications should be destributed.
This is a list of deployment point group names.
This is a list of deployment point names.
{
"packagingTargets": [
{
"deploymentPoints": {
"dpGroupNames" : [ "MyDeploymentPointGroup" ],
"dpNames" : [ "MyDeploymentPoint" ]
}
}
]
}
Collection targets is a list of collections which will be targteted for deployments. It contains all the definitions for the deployments as well as the definitions for the collections.
The only currently supported type is MEMCM-Collection.
This is the name of the collection. It will be used to find the collection in the site and if specified, create it if it doesn't exist.
This is the name of the collection which will limit the membership of this collection. This is used when creating the collection.
Valid values for refreshType are None (never refresh), Manual (manually refresh), Periodic (refresh according to a defined schedule), Continuous (refresh constantly) and Both (refresh both periodically and continuously).
The refresh interval is days/hours/minutes or month.
The number of times a scheduled refresh occurs.
This is used to specify the start of the refresh schedule. Requires integers (1,2,3... etc)
{
"packagingTargets": [
{
"collectionTargets": [
{
"type": "MEMCM-Collection",
"name": "MyCollectionName",
"limitingCollectionName": "MyLimitingCollectionName",
"refreshType": "Periodic",
"recurInterval": "ONLY USED WHEN PERIODIC IS SPECIFIED",
"recurCount": "ONLY USED WHEN PERIODIC IS SPECIFIED",
"month": 1,
"day": 30,
"year": 2020,
"hour": 12,
"minute": 0
}
]
}
]
}
These are the settings for the deployment to the specified collection.
Requires true or false. This will determine if the application can be repaired using the deployment.
Should always be "Install"
Can be "Required" or "Available"
Used to override the maintenance window for the device. If false, the deployment will honor maintenance windows.
This will determine if the content is pre-deployed to the device for the deployment.
If true, the device will be rebooted outside of the service window. If false, the device will honor maintenance windows.
Allows the use of dialog boxes instead of toast notifications to potnetially improve the user experience. See Microsoft documentation here.
Will send a wakeup packet if set to true, will not send one if set to false.
Specify "LocalTime" to use the local time to the device or "UTC" to use the UTC time.
Specify what kind of notification is shown to the user:
- DisplayAll
- Display in Software Center and show all notifications
- DisplaySoftwareCenterOnly
- Display in Software Center, and only show notifications of computer restarts
- HideAll
- Hide in Software Center and all notifications
How many days from now should the deployment become available.
What hour of the day should the deployment become available.
What minute of the hour should the deployment become available.
How many days from now should the deployment become mandatory.
What hour of the day should the deployment become mandatory.
What minute of the hour should the deployment become mandatory.
{
"packagingTargets": [
{
"collectionTargets": [
{
"deploymentSettings": {
"allowRepairApp": false,
"deployAction": "Install",
"deployPurpose": "Required",
"overrideServiceWindow": false,
"preDeploy": true,
"rebootOutsideServiceWindow": false,
"replaceToastNotificationWithDialog": true,
"sendWakeupPacket": true,
"timeBasedOn": "LocalTime",
"userNotification:": "DisplayAll",
"availStart": 2,
"availHour": 12,
"availMinute": 0,
"deadlineStart": 4,
"deadlineHour": 12,
"deadlineMinute": 0
}
}
]
}
]
}
This is the location for the recipe files. It is made up of two sub properties locationType and locationUri.
The location type currently only supports directory.
The locationUri is the path to the location.
{
"recipeLocations": [
"locationType": "directory",
"locationUri": "C:\\Packages"
]
}