Quantcast
Viewing all articles
Browse latest Browse all 72

PowerShell Office 365 Groups Tool

I’ve been looking for a tool to easily manage Windows Updates on servers and found the PoshPAIG tool by Boe Prox at https://learn-powershell.net/ which has been created with PowerShell with a nice GUI. A colleague of mine wanted a Office 365 Groups tool to easily restore Office 365 Groups and this GUI is perfect for this kind of functionality. Please let me know in a comment what you think of the tool and if you would like to see some added functionality regarding Office 365 Groups. To be able to use this tool you will need to have the new Azure AD preview module which you can download at https://docs.microsoft.com/en-us/powershell/azure/install-adv2?view=azureadps-2.0.

The code can be downloaded from github at https://github.com/peetersm12/Office365Groups-GUI

[How to] PowerShell Office 365 Groups Tool

Actions
Image may be NSFW.
Clik here to view.
image

Run ‘Start-Office365GUI.ps1’. You will automatically be asked to run as administrator if you ran this as a normal user.

Image may be NSFW.
Clik here to view.
image

First Connect to Office 365 by clicking on the run button

Image may be NSFW.
Clik here to view.
image

Fill in your credentials and press OK.
The tool will now create a remote PowerShell connection to Exchange Online and connect to Azure AD

Image may be NSFW.
Clik here to view.
image

Switch the drop down to ‘Get Office 365 Groups’ and run this action

Image may be NSFW.
Clik here to view.
image

The active Office 365 groups are now listed.

Image may be NSFW.
Clik here to view.
image

Now switch to ‘Get deleted Office 365 Groups’ and run this action

Image may be NSFW.
Clik here to view.
image

The deleted Office 365 groups are now listed

Image may be NSFW.
Clik here to view.
image

You can now select ‘Restore Office365 Groups’ in the drop down.
Then select all the groups you wish to restore and run this action

Image may be NSFW.
Clik here to view.
image

Run Action

Image may be NSFW.
Clik here to view.
image

The tool will restore 2 groups at the same time

Image may be NSFW.
Clik here to view.
image

Rerun the ‘get deleted…’ and ‘get Office 365…’ actions to verify if the group has been restored (It may take some time for it to be visible in the active groups list)
Issue a.t.m.: The run button is active but picture not enabled

Image may be NSFW.
Clik here to view.
image

Image may be NSFW.
Clik here to view.
image

Reports
You can create a .CSV or .HTML file based on the items visible at any time in the view by clicking on the button next to the CSV Report.
The report will be saved to the report folder located in the script root.

The .CSV report will look like:
Image may be NSFW.
Clik here to view.
image

The .HTML report will look like:
Image may be NSFW.
Clik here to view.
image

Error log
Some error information is displayed on the background PowerShell window as other information is only readable using the errorlog.
Please send me this information if you encounter an error.

Image may be NSFW.
Clik here to view.
image

The post PowerShell Office 365 Groups Tool appeared first on SharePoint Fire.


Viewing all articles
Browse latest Browse all 72

Trending Articles