File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Entrypoints/HTTP Functions/Tenant/Administration Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ using namespace System.Net
33function Invoke-ExecOnboardTenant {
44 <#
55 . FUNCTIONALITY
6- Entrypoint
6+ Entrypoint,AnyTenant
77 . ROLE
88 Tenant.Administration.ReadWrite
99 #>
You can’t perform that action at this time.
0 commit comments