-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathConvertToSharedRemoveLicense.ps1
More file actions
16 lines (16 loc) · 1.05 KB
/
Copy pathConvertToSharedRemoveLicense.ps1
File metadata and controls
16 lines (16 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#Convert to Shared Mailbox
Set-Mailbox "Gary.Harper@charterfields.com" –Type shared
#Check Mailbox is now Shared
Get-Mailbox -Identity KWylie@utopia-tableware.com | Format-List DisplayName,RecipientTypeDetails
#Check what 365 license they have
Get-MsolUser -UserPrincipalName "Gary.Harper@charterfields.com" | Format-List DisplayName,Licenses
#Remove that license from the user
Set-MsoluserLicense -UserPrincipalName "Gary.Harper@charterfields.com" -RemoveLicenses "charterfields:ATP_ENTERPRISE","charterfields:ENTERPRISEPACK"
#Check who has permission to the user
Get-RecipientPermission "Gary.Harper@charterfields.com"
#Give another User access to the Shared Mailbox
add-MailboxPermission -identity KWylie@utopia-tableware.com -user KFirth@utopia-tableware.com -AccessRights FullAccess –Automapping $true
#Check Full Access is Granted
Get-MailboxPermission -identity Gary.Harper@charterfields.com | FL
#Setting new password on Mailbox
Set-MsolUserPassword –UserPrincipalName Gary.Harper@charterfields.com –NewPassword Password123! -ForceChangePassword $False