Skip to content

Commit 3dde761

Browse files
authored
Merge pull request #113 from KelvinTegelaar/master
[pull] master from KelvinTegelaar:master
2 parents 68fe37e + a7c2997 commit 3dde761

File tree

887 files changed

+101150
-71764
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

887 files changed

+101150
-71764
lines changed

.env.example

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FUNCTIONS_WORKER_RUNTIME='powershell'
2+
FUNCTIONS_WORKER_RUNTIME_VERSION='7.4'
3+
AzureWebJobsStorage='DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNoBnZf6KgBVU4=;BlobEndpoint=http://azurite:10000/devstoreaccount1;QueueEndpoint=http://azurite:10001/devstoreaccount1;TableEndpoint=http://azurite:10002/devstoreaccount1;'
4+
DEV_SKIP_BPA_TIMER='true'
5+
DEV_SKIP_DOMAIN_TIMER='true'
6+
FUNCTIONS_EXTENSION_VERSION='4'
7+
NonLocalHostAzurite='true'

AddChocoApp/Choco.App.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<ApplicationInfo xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ToolVersion="1.8.3.0">
2-
<Name>Install.ps1</Name>
3-
<UnencryptedContentSize>28319</UnencryptedContentSize>
2+
<Name>install.ps1</Name>
3+
<UnencryptedContentSize>1154</UnencryptedContentSize>
44
<FileName>IntunePackage.intunewin</FileName>
5-
<SetupFile>Install.ps1</SetupFile>
5+
<SetupFile>install.ps1</SetupFile>
66
<EncryptionInfo>
7-
<EncryptionKey>bmoyHXFtIws7JrnXNDV4rjzap+Be+4ZJEDJkTfbVIL8=</EncryptionKey>
8-
<MacKey>xNh8ZUZ6TLsAtihUEAU/NHiRfutDzz+eSgEdpaXUo9Q=</MacKey>
9-
<InitializationVector>3aQFPhO8ywEC4Ojby1lR0w==</InitializationVector>
10-
<Mac>PXX+hj3DXEpzMEMYBDXmAIlSyDIGuAwmAHIQpZIt8hU=</Mac>
7+
<EncryptionKey>v8i9okyqxp8xlw3/r2QXMNnXcuGwrBkD54QQ7F/UJbc=</EncryptionKey>
8+
<MacKey>XjT9kWc7gQRKRdEQ/PA/lbQDDH8kFjnuPFILxAldRTI=</MacKey>
9+
<InitializationVector>iyAbM3kIYqA4AlWP89S5oA==</InitializationVector>
10+
<Mac>w+2KMctRWmJzYjKcMTAKCLz15K559SgZ3pnQuQD3P/I=</Mac>
1111
<ProfileIdentifier>ProfileVersion1</ProfileIdentifier>
12-
<FileDigest>fx41h3rGZYZO3Jux7JnPgatlmpMc2ZFIZS8ipF5VDDw=</FileDigest>
12+
<FileDigest>tyjBbJZ+Zj9AqD7UjEfQfe/HojN/q1+zFPidXWbiVuE=</FileDigest>
1313
<FileDigestAlgorithm>SHA256</FileDigestAlgorithm>
1414
</EncryptionInfo>
1515
</ApplicationInfo>
-26.5 KB
Binary file not shown.

AddChocoApp/IntunePackage/Install.ps1

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ param (
1212
[string]
1313
$CustomRepo,
1414

15+
[Parameter()]
16+
[string]
17+
$CustomArguments,
18+
1519
[Parameter()]
1620
[switch]
1721
$Trace
@@ -36,13 +40,23 @@ try {
3640
try {
3741
$localprograms = & "$chocoPath" list --localonly
3842
$CustomRepoString = if ($CustomRepo) { "--source $customrepo" } else { $null }
43+
$CustomArgsArray = if ($CustomArguments) { $CustomArguments -split '\s+' } else { @() }
44+
3945
if ($localprograms -like "*$Packagename*" ) {
4046
Write-Host "Upgrading $packagename"
41-
& "$chocoPath" upgrade $Packagename $CustomRepoString
47+
if ($CustomArgsArray.Count -gt 0) {
48+
& "$chocoPath" upgrade $Packagename $CustomRepoString $CustomArgsArray
49+
} else {
50+
& "$chocoPath" upgrade $Packagename $CustomRepoString
51+
}
4252
}
4353
else {
4454
Write-Host "Installing $packagename"
45-
& "$chocoPath" install $Packagename -y $CustomRepoString
55+
if ($CustomArgsArray.Count -gt 0) {
56+
& "$chocoPath" install $Packagename -y $CustomRepoString $CustomArgsArray
57+
} else {
58+
& "$chocoPath" install $Packagename -y $CustomRepoString
59+
}
4660
}
4761
Write-Host 'Completed.'
4862
}

Config/schemaDefinitions.json

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
[
2-
{
3-
"id": "cippUser",
4-
"description": "CIPP User Schema",
5-
"targetTypes": ["User"],
6-
"properties": [
7-
{ "name": "jitAdminEnabled", "type": "Boolean" },
8-
{ "name": "jitAdminExpiration", "type": "DateTime" },
9-
{ "name": "mailboxType", "type": "String" },
10-
{ "name": "archiveEnabled", "type": "Boolean" },
11-
{ "name": "autoExpandingArchiveEnabled", "type": "Boolean" },
12-
{ "name": "perUserMfaState", "type": "String" }
13-
],
14-
"status": "Available"
15-
}
2+
{
3+
"id": "cippUser",
4+
"description": "CIPP User Schema",
5+
"targetTypes": ["User"],
6+
"properties": [
7+
{ "name": "jitAdminEnabled", "type": "Boolean" },
8+
{ "name": "jitAdminExpiration", "type": "DateTime" },
9+
{ "name": "jitAdminReason", "type": "String" },
10+
{ "name": "mailboxType", "type": "String" },
11+
{ "name": "archiveEnabled", "type": "Boolean" },
12+
{ "name": "autoExpandingArchiveEnabled", "type": "Boolean" },
13+
{ "name": "perUserMfaState", "type": "String" }
14+
],
15+
"status": "Available"
16+
}
1617
]

0 commit comments

Comments
 (0)