Re-create expired Client Secret for a SharePoint Addin

There are moments when PHA’s client secrets expire.

If you generated the ClientId and ClientSecret using the /appregnew.aspx, then the secret will expire in 1 year.

The script below removes the current secrets and creates new ones valid for max. 3 years.

 

Remove Yammer, Power Apps and Flow licenses from all users in Office365

There are organizations that don’t need or are not allowed to use certain services provided by Office365, such as:

  • FLOW_O365_P3
  • POWERAPPS_O365_P3
  • TEAMS1
  • ADALLOM_S_O365
  • EQUIVIO_ANALYTICS
  • LOCKBOX_ENTERPRISE
  • EXCHANGE_ANALYTICS
  • SWAY
  • ATP_ENTERPRISE
  • MCOEV
  • MCOMEETADV
  • BI_AZURE_P2
  • INTUNE_O365
  • PROJECTWORKMANAGEMENT
  • RMS_S_ENTERPRISE
  • YAMMER_ENTERPRISE
  • OFFICESUBSCRIPTION
  • MCOSTANDARD
  • EXCHANGE_S_ENTERPRISE
  • SHAREPOINTENTERPRISE
  • SHAREPOINTWAC

Bellow you may find a script that removes Yammer, Sway, Power Apps and Flow plans from all the licenses assigned to all the users in Office365.

Just fill in the $UndesiredPlans variable with plan names excerpts.