Examples/Resources/EXOActiveSyncMailboxPolicy/3-Remove.ps1
<#
This example is used to test new resources and showcase the usage of new resources being worked on. It is not meant to use as a production baseline. #> Configuration Example { param( [Parameter()] [System.String] $ApplicationId, [Parameter()] [System.String] $TenantId, [Parameter()] [System.String] $CertificateThumbprint ) Import-DscResource -ModuleName Microsoft365DSC node localhost { EXOActiveSyncMailboxPolicy 'TestActiveSyncMailboxPolicy' { AllowApplePushNotifications = $True; AllowBluetooth = "Allow"; AllowBrowser = $True; AllowCamera = $True; AllowConsumerEmail = $True; AllowDesktopSync = $True; AllowExternalDeviceManagement = $False; AllowHTMLEmail = $True; AllowInternetSharing = $True; AllowIrDA = $True; AllowMobileOTAUpdate = $True; AllowNonProvisionableDevices = $True; AllowPOPIMAPEmail = $True; AllowRemoteDesktop = $True; AllowSimpleDevicePassword = $True; AllowSMIMEEncryptionAlgorithmNegotiation = "AllowAnyAlgorithmNegotiation"; AllowSMIMESoftCerts = $True; AllowStorageCard = $True; AllowTextMessaging = $True; AllowUnsignedApplications = $True; AllowUnsignedInstallationPackages = $True; AllowWiFi = $True; AlphanumericDevicePasswordRequired = $False; ApprovedApplicationList = @(); AttachmentsEnabled = $True; DeviceEncryptionEnabled = $False; DevicePasswordEnabled = $False; DevicePasswordExpiration = "Unlimited"; DevicePasswordHistory = 0; DevicePolicyRefreshInterval = "Unlimited"; Identity = "Test"; IrmEnabled = $True; IsDefault = $True; IsDefaultPolicy = $True; MaxAttachmentSize = "Unlimited"; MaxCalendarAgeFilter = "All"; MaxDevicePasswordFailedAttempts = "Unlimited"; MaxEmailAgeFilter = "All"; MaxEmailBodyTruncationSize = "Unlimited"; MaxEmailHTMLBodyTruncationSize = "Unlimited"; MaxInactivityTimeDeviceLock = "Unlimited"; MinDevicePasswordComplexCharacters = 1; MinDevicePasswordLength = 1; Name = "Test"; PasswordRecoveryEnabled = $False; RequireDeviceEncryption = $False; RequireEncryptedSMIMEMessages = $False; RequireEncryptionSMIMEAlgorithm = "TripleDES"; RequireManualSyncWhenRoaming = $False; RequireSignedSMIMEAlgorithm = "SHA1"; RequireSignedSMIMEMessages = $False; RequireStorageCardEncryption = $False; UnapprovedInROMApplicationList = @(); UNCAccessEnabled = $True; WSSAccessEnabled = $True; Ensure = "Absent" ApplicationId = $ApplicationId TenantId = $TenantId CertificateThumbprint = $CertificateThumbprint } } } |