Disable Remote PowerShell for Office365 Users

For one reason or another, you may want to disable remote PowerShell access for all the users in your organisation.
The main reason for doing so would be to prevent ‘reconnaissance’ type attacks whereby a user will try to gain information about your network/organisation/topology/system etc by simply running (in this case) PowerShell queries against your organisation.

Continue reading Disable Remote PowerShell for Office365 Users

Add E-mail Aliases to Your Office 365 Distribution Groups

If you’ve set up distribution groups on Office 365, you will notice a section in the DG ‘details’ page titled ‘E-Mail Options’… under this title is the following text:
“The group can receive messages sent to the following addresses.”

From this, you can safely assume that it is possible to add e-mail aliases to the group so that the group can receive e-mails sent to several different e-mails.
Sadly, there is no easy way of actually doing this via the UI so it must be done via a PowerShell command…

Continue reading Add E-mail Aliases to Your Office 365 Distribution Groups

Grant and Revoke Access to Mailboxes – Office 365

There may be times where you may need to grant an IT administrator or other employees access to another user’s mailbox.
Below I will demonstrate how to:

  • Grant an Admin access to a single mailbox
  • Grant an Admin access to all mailboxes
  • Revoke the above permissions (recommended cause of action after the Administrator has finished his/her tasks)

Continue reading Grant and Revoke Access to Mailboxes – Office 365

Set a Room Mailbox to Show Details of a Meeting in its Calendar – Office 365

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 the permissions so that all meetings (except those explicitly marked as ‘Private’) publicise the above details to all who view its calendar.

Continue reading Set a Room Mailbox to Show Details of a Meeting in its Calendar – Office 365

Close Your PowerShell Sessions! – Office 365

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, which has been exceeded. Close existing shells or raise the quota for this user. For more information, see the about_Remote_Troubleshooting Help topic.
+ CategoryInfo          : OpenError: (System.Manageme….RemoteRunspace:RemoteRunspace) [], PSRemotingTransportException + FullyQualifiedErrorId : PSSessionOpenFailed

Continue reading Close Your PowerShell Sessions! – Office 365

Make Your Self Owner of All Distribution Groups – Office 365

There are a number of reasons why you may want to make your self an owner of all distribution groups in Office 365. One is that you are an IT Administrator of the organisation in question and wish to moderate the distribution groups in the Exchange Online GUI/PowerShell without running in to permission problems.

Continue reading Make Your Self Owner of All Distribution Groups – Office 365