Microsoft 365 Administration
Microsoft 365 Administration
Contents
==PowerShell Scripting==............................................................................................................................1
==User Administration==.........................................................................................................................1
'''Open Connection:'''...........................................................................................................................1
'''Set Password with no Force Change:'''..............................................................................................1
'''Set User to Never Expire:'''...............................................................................................................1
'''Set All to Never Expire:'''...................................................................................................................1
'''Show User Password Expiration Policy:'''..........................................................................................1
'''Lock/Unlock User Account:'''............................................................................................................1
'''Remove Automapping'''....................................................................................................................2
'''Change User Principal name all users (onmicrosoft remove)'''.........................................................2
'''Set all user passwords'''....................................................................................................................2
==Managing Exchange==.........................................................................................................................2
'''Connect/Sign in'''..............................................................................................................................2
'''Shared Mailbox'''...............................................................................................................................2
'''Assign Permissions to Calendar'''......................................................................................................3
'''Redirect/Forward Emails'''................................................................................................................3
'''Configure Send As Permissions:'''.....................................................................................................3
'''Grant User Full Access to another Mailbox'''....................................................................................3
'''Grant User Full Access to All Mailboxes'''.........................................................................................3
'''Configure "Send on Behalf of'''.........................................................................................................3
'''Maintain Calendar Subject'''.............................................................................................................3
'''Remove Automapping for Shared Mailbox'''....................................................................................3
'''Force Add Manager of a Distribution Group'''..................................................................................4
'''Remove a License"............................................................................................................................4
'''Change Mailbox type (i.e. User to Shared to conserve License).......................................................4
'''Extend booking period for calendar'''...............................................................................................4
'''To find every alias for each user or DG/DL run the command below'''.............................................4
'''To Get Proxy Addesses from MOP'''..................................................................................................4
==Statistics==...........................................................................................................................................4
''' Last Log on and Log off'''..................................................................................................................4
==External Contacts==.............................................................................................................................5
'''Set an external contact to not display in GAL'''.................................................................................5
'''Set all external contacts to be hidden from GAL'''............................................................................5
'''Import Contacts to Office 365'''........................................................................................................5
==Obscure Issues==.................................................................................................................................5
'''Recipients of attachments on Mac receive winmail.dat instead of attachment'''.............................5
Disable for Certain External Domains..................................................................................................5
==Permissions==......................................................................................................................................5
'''Calendars'''........................................................................................................................................5
==Troubleshooting==...............................................................................................................................6
==Links==.................................................................................................................................................6
'''Powershell Commands'''...................................................................................................................6
'''Downloads'''......................................................................................................................................7
'''Microsoft Online Services Module'''.................................................................................................7
'''Microsoft Online Services Sign-In Assistant'''....................................................................................7
Microsoft Training...................................................................................................................................7
==PowerShell Scripting==
Follow the instructions on this link and you won't have to do the multiple connect commands every
time
http://www.o365info.com/2012/08/connect-to-office-365-and-exchange.html
==User Administration==
'''Unlock Powershell(God mode as they call it)'''
'''Open Connection:'''
$LiveCred = Get-Credential
'''Remove Automapping'''
Add-MailboxPermission -Identity JeroenC -User 'Mark Steele' -AccessRight FullAccess -InheritanceType
All -Automapping $false
''first remove full access permissions then use this command to re-add without automapping''
==Managing Exchange==
'''Connect/Sign in'''
1. Set-ExecutionPolicy unrestricted
2. Connect-MsolService (skip this step)
5. Import-PSSession $Session
'''Shared Mailbox'''
1. (create security group 1st)
or
'''Redirect/Forward Emails'''
Set-Mailbox -Identity Alias -DeliverToMailboxAndForward $true -ForwardingSMTPAddress
forwarding@address
$FixAutoMapping | Remove-MailboxPermission
'''Remove a License"
Get-MsolAccountSku
'''To find every alias for each user or DG/DL run the command below'''
Get-Recipient | FL name, @{name=”count”;expression={[array]
($_.EmailAddresses).Count}},EmailAddresses
==Statistics==
==External Contacts==
'''Set an external contact to not display in GAL'''
Set-MailContact -Identity <[email protected]> -HiddenFromAddressListsEnabled $true
[http://community.office365.com/en-us/wikis/exchange/579.aspx Instructions]
==Obscure Issues==
'''Recipients of attachments on Mac receive winmail.dat instead of attachment'''
Disable TNEF for All Domains
==Permissions==
'''Calendars'''
None - FolderVisible
==Troubleshooting==
ERROR: "Import-Module : There were errors in loading the format data file..."
[http://blog.kloud.com.au/2012/10/13/office-365-converting-mailboxes-to-shared-mailboxes/] -
Converting mailboxes into
shared mailboxes
'''Downloads'''
[http://community.office365.com/en-us/w/administration/manually-install-office-365-desktop-
updates.aspx Office 365 Desktop Updates]
Microsoft Training
http://office.microsoft.com/en-us/office365-suite-help/training-courses-for-office-365-for-business-
HA104031723.aspx
This site usually addresses the latest notes and issues seen.
http://365tutor.org/