Skip to content

Commit 67434b7

Browse files
committed
fix branding profile
1 parent 6c43919 commit 67434b7

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,18 @@ function Invoke-CIPPStandardintuneBrandingProfile {
4040
param($Tenant, $Settings)
4141
##$Rerun -Type Standard -Tenant $Tenant -Settings $Settings 'intuneBrandingProfile'
4242

43-
$CurrentState = New-GraphGetRequest -Uri 'https://graph.microsoft.com/beta/deviceManagement/intuneBrandingProfiles/c3a59481-1bf2-46ce-94b3-66eec07a8d60/' -tenantid $Tenant -AsApp $true
43+
$CurrentState = New-GraphGetRequest -Uri 'https://graph.microsoft.com/beta/deviceManagement/intuneBrandingProfiles/c3a59481-1bf2-46ce-94b3-66eec07a8d60' -tenantid $Tenant -AsApp $true
4444

4545
$StateIsCorrect = ((-not $Settings.displayName) -or ($CurrentState.displayName -eq $Settings.displayName)) -and
46-
((-not $Settings.showLogo) -or ($CurrentState.showLogo -eq $Settings.showLogo)) -and
47-
((-not $Settings.showDisplayNameNextToLogo) -or ($CurrentState.showDisplayNameNextToLogo -eq $Settings.showDisplayNameNextToLogo)) -and
48-
((-not $Settings.contactITName) -or ($CurrentState.contactITName -eq $Settings.contactITName)) -and
49-
((-not $Settings.contactITPhoneNumber) -or ($CurrentState.contactITPhoneNumber -eq $Settings.contactITPhoneNumber)) -and
50-
((-not $Settings.contactITEmailAddress) -or ($CurrentState.contactITEmailAddress -eq $Settings.contactITEmailAddress)) -and
51-
((-not $Settings.contactITNotes) -or ($CurrentState.contactITNotes -eq $Settings.contactITNotes)) -and
52-
((-not $Settings.onlineSupportSiteName) -or ($CurrentState.onlineSupportSiteName -eq $Settings.onlineSupportSiteName)) -and
53-
((-not $Settings.onlineSupportSiteUrl) -or ($CurrentState.onlineSupportSiteUrl -eq $Settings.onlineSupportSiteUrl)) -and
54-
((-not $Settings.privacyUrl) -or ($CurrentState.privacyUrl -eq $Settings.privacyUrl))
46+
((-not $Settings.showLogo) -or ($CurrentState.showLogo -eq $Settings.showLogo)) -and
47+
((-not $Settings.showDisplayNameNextToLogo) -or ($CurrentState.showDisplayNameNextToLogo -eq $Settings.showDisplayNameNextToLogo)) -and
48+
((-not $Settings.contactITName) -or ($CurrentState.contactITName -eq $Settings.contactITName)) -and
49+
((-not $Settings.contactITPhoneNumber) -or ($CurrentState.contactITPhoneNumber -eq $Settings.contactITPhoneNumber)) -and
50+
((-not $Settings.contactITEmailAddress) -or ($CurrentState.contactITEmailAddress -eq $Settings.contactITEmailAddress)) -and
51+
((-not $Settings.contactITNotes) -or ($CurrentState.contactITNotes -eq $Settings.contactITNotes)) -and
52+
((-not $Settings.onlineSupportSiteName) -or ($CurrentState.onlineSupportSiteName -eq $Settings.onlineSupportSiteName)) -and
53+
((-not $Settings.onlineSupportSiteUrl) -or ($CurrentState.onlineSupportSiteUrl -eq $Settings.onlineSupportSiteUrl)) -and
54+
((-not $Settings.privacyUrl) -or ($CurrentState.privacyUrl -eq $Settings.privacyUrl))
5555

5656
if ($Settings.remediate -eq $true) {
5757
if ($StateIsCorrect -eq $true) {
@@ -71,7 +71,7 @@ function Invoke-CIPPStandardintuneBrandingProfile {
7171

7272
$cmdparams = @{
7373
tenantid = $tenant
74-
uri = 'https://graph.microsoft.com/beta/deviceManagement/intuneBrandingProfiles/c3a59481-1bf2-46ce-94b3-66eec07a8d60/'
74+
uri = 'https://graph.microsoft.com/beta/deviceManagement/intuneBrandingProfiles/c3a59481-1bf2-46ce-94b3-66eec07a8d60'
7575
AsApp = $true
7676
Type = 'PATCH'
7777
Body = ($Body | ConvertTo-Json)

0 commit comments

Comments
 (0)