This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Connect to Exchange Online Powershell before running this commands. | |
#Create a new authentication policy which blocks all basic authentication | |
New-AuthenticationPolicy -Name "Block Basic Auth" | |
#Set the policy to all users and force it immediately enable by reset the refresh token. | |
Get-Recipient -RecipientTypeDetails UserMailbox -ResultSize Unlimited | Set-User -AuthenticationPolicy "Block Basic Auth" -STSRefreshTokensValidFrom $([System.DateTime]::UtcNow) | |
#Define the policy as default for your organization | |
Set-OrganizationConfig -DefaultAuthenticationPolicy "Block Basic Auth" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Connect to Exchange Online Powershell before running this commands. | |
Get-AdminAuditLogConfig | Set-AdminAuditLogConfig -AdminAuditLogAgeLimit 365 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Connect to Exchange Online Powershell before running this commands. | |
#Set the retention period for all Mailbox plans in the tenant to 30 days. This setting applies to new and newly migrated mailboxes | |
Get-MailboxPlan | Set-MailboxPlan -RetainDeletedItemsFor 30 | |
#Set the retention period for all existing mailboxes to 30 days | |
Get-Mailbox -ResultSize unlimited -Filter {(RecipientTypeDetails -eq 'UserMailbox')} | Set-Mailbox -RetainDeletedItemsFor 30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.COPYRIGHT | |
Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. | |
See LICENSE in the project root for license information. | |
Added XML and JSON configuration and UPN parameter by Michael Obernberger | |
Version: 1.0 | |
Date: 12.03.2019 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a quick implementation of the Twilio REST Api to send a message from the .NET Micro Framework. | |
You have the TwilioAccount Class, then the TwilioClient itself, which takes the parameter for the FROM Number, TO Number and the Body. The final File is a quick Test implementation. |
NewerOlder