-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the CoaOnlineModule wiki!
- License Microsoft Online users & mailboxes
- Remove users licenses
- Set common Exchange Online policies to mailboxes
See those instructions on the ReadMe!
See below on how to start initially
- Launch Microsoft Exchange Online PowerShell module
- Import the cmdlets into the shell:
Import-Module MSOnline, CoaOnlineModule
- Use the two cmdlets to connect to Microsoft
Connect-MsolService
Connect-EXOPSSession
- [Optional] Review the variables in use by using the cmdlet
Get-CoaVariables
- Type the cmdlet to create the user in the shell first
New-CoaUser test.user | Set-CoaExchangeAttributes | Set-CoaExoAttributes
If you'd like to create a firstline worker, use the switch
-Firstline
New-CoaUser test.user -Firstline | Set-CoaExchangeAttributes | Set-CoaExoAttributes
- Type the cmdlet to create the user in the shell first
New-CoaUser test.user | Set-CoaExchangeAttributes
If you'd like to create a firstline worker, use the switch
-Firstline
New-CoaUser test.user -Firstline | Set-CoaExchangeAttributes
- Run Azure AD Connect delta sync - this will sync the attributes set in AD to AzureAD
This is done on the Azure AD Connect box, running its module as administrator
Start-ADSyncSyncCycle -PolicyType Delta
- Wait for Azure AD Connect to finish
- Type the cmdlet to license the user and create the mailbox
Set-CoaExoAttributes -UserList $CoaUsersToWorkThrough
In order to create multiple mailboxes, one creates a batch of users using the New-CoaUser
cmdlet for each user, which outputs its 'batch' of users to the $CoaUsersToWorkThrough
$CoaUsersToWorkThrough
is a variable created by the module in the Global scope.
- Create the new users
New-CoaUser test.user1
New-CoaUser test.user2 -Firstline
- Set the Active Directory attributes of the batch
Set-CoaExchangeAttributes -UserList $CoaUsersToWorkThrough
- Run Azure AD Connect delta sync - this will sync the attributes set in AD to AzureAD
This is done on the Azure AD Connect box, running its module as administrator
Start-ADSyncSyncCycle -PolicyType Delta
- Wait for Azure AD Connect to finish
- Set the attributes for Exchange Online of the batch
Set-CoaExoAttributes -UserList $CoaUsersToWorkThrough
Though the verb of the cmdlet is Remove, it should be noted, it doesn't remove the user, just the licenses.
- The following command will remove the license and set the appropriate attributes for a term user
Remove-CoaUser -SamAccountName test.user
Though the verb of the cmdlet is Remove, it should be noted, it doesn't remove the user, just the licenses.
- The following command will remove the license and set the appropriate attributes for a comma separated list of term users
Remove-CoaUser -CommaSeparatedSamAccountName "test.user1","test.user2"
These configuration modifications put the mailbox in-policy for COA business needs. This needs to be done more than one hour after mailbox creation.
Set-CoaMailboxConfiguration
To view the various parameters of the mailbox configuration script:
Get-CoaVariables
To modify the default parameters of the configuration:
To be done before the Set!
Set-CoaVariables -Domain "testalexandriava.gov" -CoaSkuFirstlineWorkers = "TESTALEXANDRIAVA:DESKLESSPACK_GOV"