forked from awsneed/IntuneWin32AppPackager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.psd1
More file actions
134 lines (113 loc) · 3.92 KB
/
App.psd1
File metadata and controls
134 lines (113 loc) · 3.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
@{
PackageInformation = @{
# Whether the app uses a .exe or a .msi installer
SetupType = 'EXE'
<# Valid values
MSI
EXE
#>
# Top-level directory containing all the files the app's installer needs
SourceFolder = 'Source'
# Path to the app's installer, relative to the SourceFolder path
SetupFile = 'Setup.exe'
# Directory to store the .intunewin in
OutputFolder = 'Package'
# Path to an icon to display for the app in Intune, relative to Create-IntuneWin32App.ps1's directory
IconFile = 'Icon.png'
}
Information = @{
# Display name of the app for Intune / Company Portal
DisplayName = 'App Name'
# Description of the app. Supports Markdown formatting and newlines with `n
Description = "App Description"
# Publisher of the app
Publisher = 'App Publisher'
# Notes for other admins in Intune. Supports newlines with `n
Notes = "App admin notes"
# Scope tags to assign to the app. You must have permission to use any tags specified, and your org may
# require at least one to be specified.
ScopeTagNames = @(
'Scope1'
'Scope2'
'Scope3'
)
}
Program = @{
# Install command used by Intune. Only required for SetupType of EXE.
InstallCommand = '.\Setup.exe -s'
# Uninstall command used by Intune. Only required for SetupType of EXE.
UninstallCommand = '.\Setup.exe --uninstall -s'
# Whether to install the app system-wide or per-user
InstallExperience = 'System'
# Set how restarts are handled for the install of this app
DeviceRestartBehavior = 'BasedOnReturnCode'
<# Valid values
Suppress - Stop any installer-initiated restarts
Force - Intune will force a restart after installation
BasedOnReturnCode
Allow - Allows app installers to initiate a restart
#>
}
RequirementRule = @{
# Minmum version of Windows the app can be installed on.
MinimumSupportedWindowsRelease = 'W10_1607'
<# Valid values
W10_1607
W10_1703
W10_1709
W10_1803
W10_1809
W10_1903
W10_1909
W10_2004
W10_20H2
W10_21H1
W10_21H2
W10_22H2
W11_21H2
W11_22H2
#>
Architecture = 'x64'
}
CustomRequirementRule = @{}
DetectionRule = @(
@{
# Example
Type = 'Registry'
DetectionMethod = 'VersionComparison'
KeyPath = 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\123'
ValueName = 'DisplayVersion'
Operator = 'GreaterThanOrEqual'
Value = '1.0.0'
Check32BitOn64System = $false
}
@{
# Example
Type = 'Registry'
DetectionMethod = 'Existence'
KeyPath = 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\123'
ValueName = 'DisplayVersion'
DetectionType = 'exists'
Check32BitOn64System = $false
}
@{
# Example
Type = 'MSI'
ProductCode = '<guid>'
ProductVersionOperator = 'notConfigured'
}
@{
# Example
Type = 'Script'
ScriptFile = 'detection_rule_x64.ps1'
EnforceSignatureCheck = $false
RunAs32Bit = $false
}
)
TenantInformation = @{
# The site's Intune tenant ID
TenantID = '00000000-0000-0000-0000-000000000000'
# Application ID with which to access Graph with; it will need the appropriate permissions granted to it
ClientID = '00000000-0000-0000-0000-000000000000'
}
}