Skip to content

Instantly share code, notes, and snippets.

Thierry Buisson thierrybuisson

Block or report user

Report or block thierrybuisson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Manage Hawk module
#install properly module, not updating existing modules
Install-module -name hawk -AllowClobber
View ChangeOffice365GroupEmail.ps1
# Import Office 365 Online Module
Import-module MSOnline
#Get admin credential
$UserCredential = Get-Credential
#start session
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $UserCredential -Authentication Basic -AllowRedirection
#connect to msonline
thierrybuisson / ManageSiteHub.ps1
Last active Apr 18, 2019
Managing Site Hub in Sharepoint Online
View ManageSiteHub.ps1
//Sharepoint Online - Site hub management
//Please connect first with - PS> Connect-SPOService -url https://<your tenant>
//Get all sites containing url sites/mkt
Get-SPOSite -limit all | select url,ID | where-object {$_.Url -like "*sites/mkt*"}
//Remove a site from the recycle bin
Remove-SPODeletedSite -Identity
//Register a site as Site Hub - principals should be default admin group
You can’t perform that action at this time.