Majority of the system administrators I’ve met forget this very important rule. When an account is not needed remove its membership from the security/ distribution groups, otherwise you get disabled account showing up in groups, and that looks ugly. You will need Quest ActiveRoles for Powershell installed to get this working. Depending on the size…
Tag: powershell
Creating a Picture Policy to use with Office365
With Office365 you can have profile pictures, and this setting is enabled by default. In larger organizations you may not want this policy enabled or have a customized policy for different departments. Here’s what I had to do to disable the picture upload capability by default and use powershell to update it for individuals by…
Cannot migrate user from Exchange 2010 to Exchange Online
So I came across this error while migrating some accounts from On-Premise Exchange 2010 Server to Exchange Online. Error: The subscription for the migration user [email protected] couldn’t be loaded. The following error was encountered: A subscription wasn’t found for this user. In short, there is an address conflict between the user properties of the exchange…
Quest AD PowerShell cmdlets
I had trouble finding the Quest AD Powershell Cmdlets today. I knew Quest got acquired by Dell but I thought that my favorites would have still worked. Anyways, after a little of digging on the internet i was able to find them. It is now called ActiveRoles Management Shell for Active Directory  Here is the link: ActiveRoles…
Enabling ActiveSync for a Security Group using Powershell
1 2 3 4 5 6 |
$users = Get-ADGroupMember "AD Group with Users to be Enabled for ActiveSync" foreach ($line in $users) { $user = $line.samaccountname Set-CASMailbox $user -ActiveSyncEnabled:$true Get-CASMailbox $user | Select-Object Name, ActiveSyncEnabled } |
Disabling ActiveSync for a Group of Users using Powershell
I have tested this only in a Hybrid environment. Create a Universal AD Security Group called O365_Disabled_ActiveSync_Users. Add all the members to it. Make sure it has an email address that registers in Office365. Connect to Office365 via Powershell ISE:
1 2 3 4 5 |
Import-Module MSOnline $O365Cred = Get-Credential $O365Session = New-PSSession –ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $O365Cred -Authentication Basic -AllowRedirection Import-PSSession $O365Session Connect-MsolService –Credential $O365Cred |
Copy the following code in a file called DisableActiveSync.ps1 and run in powershell. Add…
Send Email from an Alias
A user who has two or three (or a dozen) SMTP aliases associated with his name wants to actually send an email and have it appear to be from one of those aliases! I bet you tested and confirmed that he could receive email to those aliases, but now you are stuck trying to figure out why he cannot send as…
Assign a Room Mailbox Permissions
If we want to check the detail information of the room mailbox schedule or change the permission level of the Calendar permission.  We should do the following steps:  Add a user as a full permission to the room mailbox via PowerShell: Assign Permission Add-MailboxPermission -Identity “[email protected]†-User “[email protected]†-AccessRights Fullaccess -InheritanceType All Open room mailbox…
Close Powershell Sessions!
If you have ever received the error message below or a similar one then you are not closing your PowerShell sessions properly (or at all!). [serverName] Connecting to remote server failed with the following error message : The WS-Management service cannot process the request. This user is allowed a maximum number of 3 concurrent shells,…
Set a Room Mailbox to Show Details of a Meeting in its Calendar
You may notice that meetings with a ‘Room’ mailbox will by default only show a “Busy†status. Many, including the organisation I work for, wish to have (at the very minimum) the following displayed in the Room’s calendar: Organiser of the meeting, and The subject of the meeting Below I will demonstrate how to set…