Skip to content

Commit 30527e9

Browse files
authored
Merge pull request #199 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents 67e9fec + b332b88 commit 30527e9

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

Modules/CIPPCore/Public/Set-CIPPDefaultAPDeploymentProfile.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ function Set-CIPPDefaultAPDeploymentProfile {
3333
'extractHardwareHash' = $([bool]($CollectHash))
3434
'roleScopeTagIds' = @()
3535
'hybridAzureADJoinSkipConnectivityCheck' = $false
36-
'outOfBoxExperienceSettings' = @{
36+
'outOfBoxExperienceSetting' = @{
3737
'deviceUsageType' = "$DeploymentMode"
38-
'hideEscapeLink' = $([bool]($hideChangeAccount))
39-
'hidePrivacySettings' = $([bool]($hidePrivacy))
40-
'hideEULA' = $([bool]($hideTerms))
38+
'escapeLinkHidden' = $([bool]($hideChangeAccount))
39+
'privacySettingsHidden' = $([bool]($hidePrivacy))
40+
'eulaHidden' = $([bool]($hideTerms))
4141
'userType' = "$usertype"
42-
'skipKeyboardSelectionPage' = $([bool]($Autokeyboard))
42+
'keyboardSelectionPageSkipped' = $([bool]($Autokeyboard))
4343
}
4444
}
4545
$Body = ConvertTo-Json -InputObject $ObjBody

Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardAutopilotProfile.ps1

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,17 @@ function Invoke-CIPPStandardAutopilotProfile {
8282
description = $settings.Description
8383
usertype = $usertype
8484
DeploymentMode = $DeploymentMode
85-
assignto = $settings.Assignto
85+
assignto = $settings.AssignToAllDevices
8686
devicenameTemplate = $Settings.DeviceNameTemplate
87-
allowWhiteGlove = $Settings.allowWhiteglove
87+
allowWhiteGlove = $Settings.AllowWhiteGlove
8888
CollectHash = $Settings.CollectHash
8989
hideChangeAccount = $Settings.HideChangeAccount
9090
hidePrivacy = $Settings.HidePrivacy
9191
hideTerms = $Settings.HideTerms
92-
Autokeyboard = $Settings.Autokeyboard
93-
Language = $Settings.languages.value
92+
AutoKeyboard = $Settings.AutoKeyboard
93+
Language = $Settings.Languages.value
9494
}
95+
9596
Set-CIPPDefaultAPDeploymentProfile @Parameters
9697
Write-LogMessage -API 'Standards' -tenant $tenant -message "Created Autopilot profile '$($settings.DisplayName)'" -sev Info
9798
} catch {

0 commit comments

Comments
 (0)