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. |
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
#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
#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. | |
#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. | |
$Mbx = Get-Mailbox -RecipientTypeDetails UserMailbox, SharedMailbox -ResultSize Unlimited | Select DistinguishedName, DisplayName | |
ForEach ($M in $Mbx) { | |
Write-Host "Manually enabling mailbox auditing for" $M.DisplayName | |
Set-Mailbox -Identity $M.DistinguishedName -AuditEnabled $True } |
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 Azure AD Powershell with the Preview Module: Install-Module AzureADPreview | |
#Search for specific group | |
$GroupID = get-unifiedgroup -Identity <Insert SMTP or Identity> | Select-Object -ExpandProperty ExternalDirectoryObjectId | |
#Check if there is already a specific group settings specified and delete it | |
$SettingID = Get-AzureADObjectSetting -TargetType Groups -TargetObjectID $GroupID | select-object -expandproperty ID | |
Remove-azureadobjectsetting -id $settingid -targettype Groups -TargetObjectID $GroupID | |
#Create a new setting with Guests disabled |
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 the actual value for all Mailbox Plans | |
Get-MailboxPlan | fl name,maxsendsize,maxreceivesize,isdefault | |
#Set the the max send and receive size to 50MB | |
Get-MailboxPlan | Set-MailboxPlan -MaxSendSize [On-Prem value in MB / e.g. 50MB] -MaxReceiveSize [On-Prem value in MB / e.g. 50MB] | |
#Set the max send and receive size 50MB for existing mailboxes | |
Get-Mailbox -ResultSize unlimited -Filter {(RecipientTypeDetails -eq 'UserMailbox')} | Set-Mailbox -MaxSendSize 50MB -MaxReceiveSize 50MB |
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
#Start an administrative powershell on your ADFS server | |
$msolId = "urn:federation:MicrosoftOnline" | |
$rptName = "Microsoft Office 365 Identity Platform" | |
$rptRules = (Get-AdfsRelyingPartyTrust -Identifier $msolId).IssuanceTransformRules | |
$newRule = '@RuleTemplate = "LdapClaims" @RuleName = "UPN Claim Rule" c1:[Type == "http://schemas.microsoft.com/ws/2012/01/passwordexpirationtime"] => issue(store = "_PasswordExpiryStore", types = ("http://schemas.microsoft.com/ws/2012/01/passwordexpirationtime","http://schemas.microsoft.com/ws/2012/01/passwordexpirationdays","http://schemas.microsoft.com/ws/2012/01/passwordchangeurl"), query = "{0};", param = c1.Value);' | |
$rptRules = $rptRules + $newRule | |
Set-AdfsRelyingPartyTrust -TargetName $rptName -IssuanceTransformRules $rptRules |
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
#Start an administrative Powershell on your ADFS Server | |
Enable-AdfsEndpoint "/adfs/portal/updatepassword/" | |
Set-AdfsEndpoint "/adfs/portal/updatepassword/" -Proxy:$true | |
#This command restarts the ADFS service to enable the funcitionality (short ADFS interruption) | |
Restart-Service AdfsSrv -Force |
OlderNewer