Skip to content

Commit 4f72a03

Browse files
authored
Merge pull request #406 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents 4a928cb + bda4aed commit 4f72a03

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Modules/CIPPCore/Public/Add-CIPPScheduledTask.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@ function Add-CIPPScheduledTask {
128128
$epochSeconds = [int64]$DesiredStartTime
129129
# Set ScheduledTime to the desired time
130130
$task.ScheduledTime = $epochSeconds
131-
}
132-
catch {
131+
} catch {
133132
Write-Warning "Failed to parse DesiredStartTime: $DesiredStartTime. Using provided ScheduledTime."
134133
# Fall back to default
135134
if ([int64]$task.ScheduledTime -eq 0 -or [string]::IsNullOrEmpty($task.ScheduledTime)) {
@@ -214,6 +213,7 @@ function Add-CIPPScheduledTask {
214213
$ErrorMessage = Get-NormalizedError -Message $_.Exception.Message
215214
return "Could not add task: $ErrorMessage"
216215
}
216+
Write-LogMessage -headers $Headers -API 'ScheduledTask' -message "Added task $($entity.Name) with ID $($entity.RowKey)" -Sev 'Info' -Tenant $tenantFilter
217217
return "Successfully added task: $($entity.Name)"
218218
}
219219
} catch {

Modules/CIPPCore/Public/AuditLogs/Get-CippAuditLogSearches.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function Get-CippAuditLogSearches {
3333
$Queries = New-GraphBulkRequest -Requests @($BulkRequests) -AsApp $true -TenantId $TenantFilter | Select-Object -ExpandProperty body
3434
$Queries = $Queries | Where-Object { $PendingQueries.RowKey -contains $_.id -and $_.status -eq 'succeeded' }
3535
} else {
36-
$Queries = New-GraphGetRequest -uri 'https://graph.microsoft.com/beta/security/auditLog/queries?$top=999' -AsApp $true -tenantid $TenantFilter
36+
$Queries = New-GraphGetRequest -uri 'https://graph.microsoft.com/beta/security/auditLog/queries' -AsApp $true -tenantid $TenantFilter
3737
}
3838
return $Queries
3939
}

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Administration/Invoke-ExecOnboardTenant.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ using namespace System.Net
33
function Invoke-ExecOnboardTenant {
44
<#
55
.FUNCTIONALITY
6-
Entrypoint
6+
Entrypoint,AnyTenant
77
.ROLE
88
Tenant.Administration.ReadWrite
99
#>

0 commit comments

Comments
 (0)