# Generated with Microsoft365DSC version 1.24.904.1 # For additional information on how to use Microsoft365DSC, please visit https://aka.ms/M365DSC param ( [parameter()] [System.Management.Automation.PSCredential] $Credential ) Configuration Microsoft365TenantConfigExport-tenant.onmicrosoft.com-2024-09-17 { param ( [parameter()] [System.Management.Automation.PSCredential] $Credential ) if ($null -eq $Credential) { <# Credentials #> $Credscredential = Get-Credential -Message "Credentials" } else { $CredsCredential = $Credential } $OrganizationName = $CredsCredential.UserName.Split('@')[1] if ($null -eq $Credential) { <# Credentials #> } else { $CredsCredential = $Credential } $OrganizationName = $CredsCredential.UserName.Split('@')[1] Import-DscResource -ModuleName 'Microsoft365DSC' -ModuleVersion '1.24.904.1' Node localhost { ODSettings "ODSettings" { BlockMacSync = $False; Credential = $Credscredential; DisableReportProblemDialog = $False; DomainGuids = @(); Ensure = "Present"; ExcludedFileExtensions = @(); IsSingleInstance = "Yes"; NotificationsInOneDriveForBusinessEnabled = $True; NotifyOwnersWhenInvitationsAccepted = $False; ODBAccessRequests = "Unspecified"; ODBMembersCanShare = "Unspecified"; OneDriveForGuestsEnabled = $False; OneDriveStorageQuota = 1048576; OrphanedPersonalSitesRetentionPeriod = 30; TenantRestrictionEnabled = $False; } } } Microsoft365TenantConfigExport-tenant.onmicrosoft.com-2024-09-17 -ConfigurationData .\ConfigurationData.psd1 -Credential $Credential