POwershell
POwershell
com/powershell/page/3/
SESSION 1 - https://office365concepts.com/manage-office-365-licenses-with-
powershell/
https://office365concepts.com/how-to-connect-to-microsoft-graph-powershell/
1. PowerShell basics (Transcript and CLIP commands).
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Install-Module Microsoft.Graph -Scope CurrentUser
Install-Module Microsoft.Graph.Beta
Connect-MgGraph -Scopes Directory.Read.All, Directory.ReadWrite.All,
Organization.ReadWrite.All
2. Managing Licenses.
Get-MgSubscribedSku | Select-Object SkuId,SkuPartNumber,ServicePlans,ConsumedUnits
Get-MgSubscribedSku | FL
***With License
Get-MgUser -All -Property DisplayName, AssignedLicenses | Where-Object
{$_.AssignedLicenses} | Format-Table DisplayName, AssignedLicenses
To update Usage Location for an account, run below Graph PowerShell command:
Update-MgUser -UserId "john@office365concepts.com" -UsageLocation IN
Assign multiple licenses to multiple users using CSV and Graph PowerShell
Assign same license from one user to another using Graph PowerShell
SESSION 2
1. Managing custom and initial Domains.
2. Setting domains as default domains.
3. Managing Admin roles.
4. Assigning Admin roles to user accounts.
5. Managing Password Policies.
6. Resetting password for user accounts.
7. Set passwords as never expire.
8. Force users to reset password on next login attempt.
9. Manage Directory Synchronisation settings.
SESSION 3 - https://office365concepts.com/manage-distribution-groups-with-
powershell/
1. Create Distribution groups.
2. Create Dynamic Distribution groups. - https://office365concepts.com/manage-
dynamic-distribution-groups-using-powershell/
3. Create Security Groups.
4. Create Office 365 groups.
5. Add and remove members in groups.
6. Modifying groups attributes.
7. Assigning SendAs and Send On Behalf permissions on groups.
SESSION 4
How to create shared mailbox using powershell.
Modify shared mailbox attributes.
Assigning Full Access permission on shared mailbox using powershell.
Assigning Send As permission on shared mailbox using powershell.
Assigning Send On Behalf permission on a shared mailbox using powershell.
Enabling auto-mapping while assigning Full Access permissions.
Enable online Archive for a shared mailbox.
SESSION 5 https://office365concepts.com/manage-room-mailbox-using-powershell/
https://office365concepts.com/manage-room-mailbox-permissions-using-powershell/
What is Room mailbox in office 365
What is Equipment mailbox in Office 365
What are equipment mailboxes.
How to create room mailbox with powershell commands
How to create equipment mailbox using powershell commands
Resource mailboxes calendar.
Important attributes of calendar.
How to Modify calendar attributes.
Allow Conflict
Resource Delegate booking
Allow recurring meetings
What is auto mapping
How to assign full access permission
How to assign send as permission
How to assign send on behalf permission
SESSION 6
Create Retention Tags using Powershell commands
Create Default Policy Tag (DPT), Retention Policy Tag (RPT) and Personal Tag.
Create Retention Policy using PowerShell
Add Retention Tags within the Retention Policy
Apply Retention Policy on mailboxes
SESSION 7
Troubleshoot Retention Policy using Powershell commands
***NOTE- Check retention hold, retention policy will not work, manage folder
assistant will not process the mailbox
SESSION 8
How to set a profile picture for a user account in Office 365 using powershell
commands.
SESSION 9
What are mailbox protocols
How to check mailbox protocols using powershell commands
SESSION 10
What are trusted senders
What is allow list and block list
How to add sender's email address and domains in allow list and block list of junk
settings
How to add multiple senders and domains in junk settings
Junk email settings
Junk email settings in Outlook
Outlook junk folder
SESSION 11 - https://office365concepts.com/manage-office-365-email-forwarding/
How to enable mailbox forwarding
How to verify mailbox forwarding
Forward emails to internal users
Forward emails to external users
How to save emails in the mailbox and then forward