Category: Office 365

Bulk add alias name by using script

Before we can run the script, we need to connect to exchange online powershell. Set-ExecutionPolicy RemoteSigned$UserCredential = Get-Credential$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirectionImport-Module ExchangeOnlineManagement; Get-Module ExchangeOnlineManagementUpdate-Module -Name ExchangeOnlineManagement ————- add alais name to email ————– Import-CSV “D:\RemoveAlias.csv” | ForEach {Set-Mailbox $_.OldEmailAddress -EmailAddresses @{add=$_.NewEmailAddress}} ————- remove alais name from email

Read More
Enable TLS1.2

New-Item ‘HKLM:\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v4.0.30319’ -Force | Out-Null New-ItemProperty -path ‘HKLM:\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v4.0.30319’ -name ‘SystemDefaultTlsVersions’ -value ‘1’ -PropertyType ‘DWord’ -Force | Out-Null New-ItemProperty -path ‘HKLM:\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v4.0.30319’ -name ‘SchUseStrongCrypto’ -value ‘1’ -PropertyType ‘DWord’ -Force | Out-Null New-Item ‘HKLM:\SOFTWARE\Microsoft\.NETFramework\v4.0.30319’ -Force | Out-Null New-ItemProperty -path ‘HKLM:\SOFTWARE\Microsoft\.NETFramework\v4.0.30319’ -name ‘SystemDefaultTlsVersions’ -value ‘1’ -PropertyType ‘DWord’ -Force | Out-Null New-ItemProperty -path ‘HKLM:\SOFTWARE\Microsoft\.NETFramework\v4.0.30319’ -name ‘SchUseStrongCrypto’ -value ‘1’ -PropertyType ‘DWord’

Read More
Creating an Office 365 Mailbox in a Hybrid Configuration

When working with customers in Exchange hybrid configurations, they often have questions about creating Office 365 mailboxes in Exchange Online. Your organization might have existing processes for adding new users that will likely need to adapt to Office 365 after the migration. In this guide, we’ll discuss the different methods of creating Office 365 mailboxes in an Exchange hybrid

Read More
Change UPN-Suffix

Import-Module ActiveDirectory$oldSuffix = “update.net”$newSuffix = “bunthoeurn”$filter = “*@” + $oldSuffixecho $filterGet-ADUser -Filter {UserPrincipalName -like $filter} |ForEach-Object {$UPN = $_.UserPrincipalName.Replace($oldSuffix,$newSuffix)Set-ADUser $_ -UserPrincipalName $UPN}

Read More
Disable user from creating group in Teams

Install azureAD Module PowerShellCopy To install the public preview release, usePowerShellCopy To allow user to create group we need to add $AllowGroupCreation = $True to script and re-run the scriptNOTE: Changes can take thirty minutes or more to take effect.  Disable user from creating group in teams Download the file and save as .ps1 More

Read More
Connect to exchange online

Install exchange online management Install-Module -Name ExchangeOnlineManagement——————————————-Import-Module ExchangeOnlineManagementSet-ExecutionPolicy RemoteSigned$UserCredential = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection ////////////////////////////////////////////////////////////////////////////Import-PSSession $Session -DisableNameChecking More Details: https://docs.microsoft.com/en-us/powershell/exchange/connect-to-exchange-online-protection-powershell?view=exchange-ps Connect to exchange online powershell with MFA Set-ExecutionPolicy RemoteSigned$UserCredential = Get-CredentialImport-Module ExchangeOnlineManagement; Get-Module ExchangeOnlineManagementUpdate-Module -Name ExchangeOnlineManagement Connect-ExchangeOnline -UserPrincipalName sin@pheaktra.com -DelegatedOrganization vmotion363.onmicrosoft.com Connect to Exchange Online PowerShell

Read More
Configure Password Writeback in Azure AD

In this post I will show you how to enable and configure password writeback in your Azure AD hybrid environment. By enabling password writeback feature you can synchronize password changes in Azure Active Directory back to your on-premises Active Directory environment. To enable password writeback feature, we use Azure AD Connect tool to that provides

Read More