r/usefulscripts • • Sep 27 '21

[PowerShell] Configuring Office 365 settings using PowerShell – The non-supported way

For the last few weeks, I've been working on a PowerShell module that reads and configures Office 365 that are (in large portions) not available to read or configure using official Microsoft PowerShell modules.

To introduce you to it a bit more: https://evotec.xyz/configuring-office-365-settings-using-powershell-the-non-supported-way/ with screenshots and how things work.

Sources available: https://github.com/EvotecIT/O365Essentials/

Here's the current command list. I've few non-working commands because of some problems, but most of them work great.

GetSetStatus
Get-O365AzureADConnect
Get-O365AzureADConnectPTA
Get-O365AzureADConnectSSO
Get-O365AzureADRoles
Get-O365AzureADRolesMember
Get-O365AzureConditionalAccess
Get-O365AzureConditionalAccessClassic
Get-O365AzureConditionalAccessLocationMissing scopes in Graph API calls
Get-O365AzureConditionalAccessPolicy
Get-O365AzureConditionalAccessTerms
Get-O365AzureConditionalAccessVPN
Get-O365AzureEnterpriseAppsGroupConsentSet-O365AzureEnterpriseAppsGroupConsent
Get-O365AzureEnterpriseAppsUserConsentSet-O365AzureEnterpriseAppsUserConsent
Get-O365AzureEnterpriseAppsUserSettingsSet-O365AzureEnterpriseAppsUserSettings
Get-O365AzureEnterpriseAppsUserSettingsAdminSet-O365AzureEnterpriseAppsUserSettingsAdminSet cmd not working
Get-O365AzureEnterpriseAppsUserSettingsPromoted
Get-O365AzureExternalCollaborationFlowsNot working
Get-O365AzureExternalCollaborationSettingsSet-O365AzureExternalCollaborationSettingsNot working
Get-O365AzureExternalIdentitiesEmailMissing scopes in Graph API calls
Get-O365AzureExternalIdentitiesPolicies
Get-O365AzureFeatureConfiguration
Get-O365AzureFeaturePortal
Get-O365AzureGroupExpirationSet-O365AzureGroupExpiration
Get-O365AzureGroupGeneral
Get-O365AzureGroupM365Set-O365AzureGroupM365
Get-O365AzureGroupNamingPolicySet-O365AzureGroupNamingPolicy
Get-O365AzureGroupSecuritySet-O365AzureGroupSecurity
Get-O365AzureGroupSelfServiceSet-O365AzureGroupSelfService
Get-O365AzureLicenses
Get-O365AzureMultiFactorAuthenticationSet-O365AzureMultiFactorAuthenticationSet cmd not working
Get-O365AzureTenantSKU
Get-O365AzureUserSettingsSet-O365AzureUserSettings
Get-O365BillingAccountsIt doesn't work, probably missing parameters such as accountid
Get-O365BillingInvoices
Get-O365BillingLicenseAutoClaimSet-O365BillingLicenseAutoClaim
Get-O365BillingLicenseRequests
Get-O365BillingNotificationsSet-O365BillingNotifications
Get-O365BillingNotificationsList
Get-O365BillingPaymentMethods
Get-O365BillingProfileIt doesn't work, the wrong URL, no data to test
Get-O365BillingSubscriptions
Get-O365ConsiergeAll
Get-O365DirectorySync
Get-O365DirectorySyncErrors
Get-O365DirectorySyncManagement
Get-O365Domain
Get-O365DomainDependencies
Get-O365DomainHealth
Get-O365DomainRecords
Get-O365DomainTroubleshooting
Get-O365Group
Get-O365GroupAdministrativeUnit
Get-O365GroupLicensesSet-O365GroupLicenses
Get-O365GroupMember
Get-O365OrgAzureSpeechServicesSet-O365OrgAzureSpeechServices
Get-O365OrgBingDataCollectionSet-O365OrgBingDataCollection
Get-O365OrgBookingsSet-O365OrgBookings
Get-O365OrgBriefingEmailSet-O365OrgBriefingEmail
Get-O365OrgCalendarSharingSet-O365OrgCalendarSharing
Get-O365OrgCommunicationToUsersSet-O365OrgCommunicationToUsers
Get-O365OrgCortanaSet-O365OrgCortana
Get-O365OrgCustomerLockboxSet-O365OrgCustomerLockbox
Get-O365OrgCustomThemes
Get-O365OrgDataLocation
Get-O365OrgDynamics365ConnectionGraphSet-O365OrgDynamics365ConnectionGraph
Get-O365OrgDynamics365CustomerVoiceSet-O365OrgDynamics365CustomerVoice
Get-O365OrgDynamics365SalesInsightsSet-O365OrgDynamics365SalesInsights
Get-O365OrgFormsSet-O365OrgForms
Get-O365OrgGraphDataConnectSet-O365OrgGraphDataConnect
Get-O365OrgHelpdeskInformationSet-O365OrgHelpdeskInformation
Get-O365OrgInstallationOptionsSet-O365OrgInstallationOptions
Get-O365OrgM365GroupsSet-O365OrgM365Groups
Get-O365OrgMicrosoftTeamsSet-O365OrgMicrosoftTeamsSet command not working - 100-500 nested properties
Get-O365OrgModernAuthenticationSet-O365OrgModernAuthentication
Get-O365OrgMyAnalyticsSet-O365OrgMyAnalytics
Get-O365OrgNewsSet-O365OrgNews
Get-O365OrgOfficeOnTheWebSet-O365OrgOfficeOnTheWeb
Get-O365OrgOfficeProductivitySet-O365OrgOfficeProductivity
Get-O365OrgOrganizationInformationSet-O365OrgOrganizationInformation
Get-O365OrgPasswordExpirationPolicySet-O365OrgPasswordExpirationPolicy
Get-O365OrgPlannerSet-O365OrgPlanner
Get-O365OrgPrivacyProfileSet-O365OrgPrivacyProfile
Get-O365OrgPrivilegedAccessSet-O365OrgPrivilegedAccessRequires more testing on SET cmd
Get-O365OrgProjectSet-O365OrgProject
Get-O365OrgReleasePreferencesSet-O365OrgReleasePreferences
Get-O365OrgReportsSet-O365OrgReports
Get-O365OrgScriptsSet-O365OrgScripts
Get-O365OrgSharePointSet-O365OrgSharePoint
Get-O365OrgSharingSet-O365OrgSharing
Get-O365OrgSwaySet-O365OrgSway
Get-O365OrgToDoSet-O365OrgTodo
Get-O365OrgUserConsentAppsSet-O365OrgUserConsentApps
Get-O365OrgUserOwnedAppsSet-O365OrgUserOwnedApps
Get-O365OrgWhiteboardSet-O365OrgWhiteboard
Get-O365PartnerRelationship
Get-O365PasswordResetSet-O365PasswordReset
Get-O365PasswordResetIntegrationSet-O365PasswordResetIntegration
Get-O365SearchIntelligenceBingConfigurationsSet-O365SearchIntelligenceBingConfigurations
Get-O365SearchIntelligenceBingExtensionSet-O365SearchIntelligenceBingExtension
Get-O365SearchIntelligenceItemInsightsSet-O365SearchIntelligenceItemInsights
Get-O365SearchIntelligenceMeetingInsightsSet-O365SearchIntelligenceMeetingInsights
Get-O365ServicePrincipal
Get-O365TenantID
Get-O365User

As you can see above, the list is quite comprehensive and allows you to get or set settings for multiple apps, change bing settings, read domains health status, DNS records, licenses, or domain dependencies. This was only possible by reverse engineering how Microsoft does it while you click thru GUI.

I hope this helps someone other than me. Enjoy

76 Upvotes

5 comments sorted by

4

u/arejaytee Sep 27 '21

Sadly I can only upvote once!

4

u/MadBoyEvo Sep 27 '21

You can upvote it multiple times :-) I've posted this on PowerShell/Sysadmin or you can set up recurring GitHub Sponsorship 🤣🤣

2

u/TheLazyAdministrator Sep 27 '21

amazing work as always

1

u/MadBoyEvo Sep 27 '21

Thank you. Appreciate it ;)

3

u/iBalls Sep 27 '21

This is great! Thanks for compiling this list.