powershell
190 TopicsPrimer: How to Schedule Azure Automation Runbooks to Process Microsoft 365 Data
After creating a runbook to process Microsoft 365 data, registering the runbook with an automation schedule means that the runbook will execute on a reliable basis. This article discusses how to publish and register a runbook so that an automation schedule takes over the burden of running the job. In addition to describing the necessary steps in the Azure portal, we also give you the PowerShell commands. https://office365itpros.com/2025/01/23/azure-automation-runbook-schedule/3Views0likes0CommentsPrimer: Output Data Generated with an Azure Automation Runbook to a SharePoint List
The second part of the Azure Automation runbook primer brings us to output, specifically how to create items generated by a runbook in a SharePoint Online list. Once in the lists, items can be processed using Power Automate, Power Apps, or Power BI or exported to Excel. It’s a great way of capturing information generated by background jobs. https://office365itpros.com/2025/01/22/azure-automation-runbook-list/9Views1like0CommentsAD Hybrid MailUser
I started a new job and noticed that the Exchange Online but the AD is hybrid and all the exchange attributes need to be managed in on-premises AD for proxyAddresses and Aliases. I didn't see an Exchange Server and was told it was uninstalled. How would I check that? I need to create a few MailUsers but the user accounts already exist. I have read that I should be able to Enable-Mailuser but that doesn't exist on Exchange online. How should I proceed in converting some Users to MailUsers without an exchange server on premise?42Views0likes2CommentsPrimer: How to Use Azure Automation to Run Microsoft Graph PowerShell SDK Scripts
A reader asked why it seems so difficult to use Azure Automation runbooks to process Microsoft 365 data. In fact, it’s not so hard, and here’s a primer to help you understand how to create the necessary Azure Automation environment to develop and execute runbooks. Once modules and permissions are in place, everything falls into place. https://office365itpros.com/2025/01/21/azure-automation-runbook-primer/13Views0likes0CommentsHow to Replace Group Owners When They Leave the Organization
Deleting an Entra ID user account can result in ownerless groups if the account being removed is the only group owner. Before deleting accounts, it’s a good idea to proactively replace group owners. This article explains how to replace group owners in the fastest and most scalable manner using the Microsoft Graph PowerShell SDK. https://office365itpros.com/2025/01/20/replace-group-owners-powershell/15Views0likes0CommentsFinal Days for the MSOnline and AzureAD PowerShell Modules
After many twists and turns since August 2021, the MSOnline module retirement will happen in April 2025. The AzureAD module will then retire in the 3rd quarter. The interesting thing is that the MSOnline module will experience some planned outages before its retirement. It’s way past time to upgrade PowerShell scripts. The question is whether to use the Entra module or the Microsoft Graph PowerShell SDK. I know which option is best and explain why in this article. https://office365itpros.com/2025/01/15/msonline-module-retirement/43Views0likes0CommentsUsing the SharePoint Pages Graph API
Microsoft released the SharePoint Pages API in mid-2024. This article describes how to create and publish a news item using cmdlets from the Microsoft Graph PowerShell SDK based on the API. The net result is that the API appears to work well but some problems are evident in the cmdlets. Or maybe it’s just my lack of knowledge! https://office365itpros.com/2025/01/14/sharepoint-pages-api/36Views0likes0CommentsAll About the Office 365 for IT Pros GitHub Repository
The Office365ITPros GitHub repository holds over 300 PowerShell scripts showing how to interact with Microsoft 365 and Entra ID. Anyone can contribute to Office365ITPros by forking the code to a copy of the repository and making changes to scripts there. If you want, you can push the changes back to us so that we can consider their inclusion in Office365ITPros. It’s a great example of community in action. https://office365itpros.com/2025/01/10/office365itpros-github/26Views0likes0CommentsRestricted Content Discovery
SharePoint Advanced Management includes a feature called "Restricted Content Discovery" aka RCD. The FAQs mention that: Restricted Content Discovery only affects tenant-wide search (SharePoint home, Office.com, Bing) and Microsoft 365 Copilot But then it goes on to mention: Restricted Content Discovery doesn't remove content from the tenant search index. and: Restricted Content Discovery is a site-level property. I completely understand that its intended use is to give organisations time to review and/or audit permissions and deploy access controls while onboarding Copilot in a safe manner. My focus is custom search solutions and custom apps that use search and should respect the RCD property. Being a property and the content remains in the index, it could be interpreted that RCD feature only works in the named services i.e. SharePoint Home, Office.com, Bing and Microsoft Copilot and it does not apply in Micrsoft Search, custom organisation-wide Search solutions e.g. using PnP-Search, API calls using the Graph etc. Is that the case? Also can the property be queried and retrieved using the Search API or is it limited to PowerShell?103Views0likes2CommentsCan't import SharePoint online Powershell module
when I use Import-Module Microsoft.Online.SharePoint.PowerShell it says PS C:\Windows\system32> Import-Module Microsoft.Online.SharePoint.PowerShell Import-Module : Could not load type 'Microsoft.SharePoint.Administration.DesignPackageType' from assembly 'Microsoft.SharePoint.Client, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'. At line:1 char:1 + Import-Module Microsoft.Online.SharePoint.PowerShell + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Import-Module], TypeLoadException + FullyQualifiedErrorId : System.TypeLoadException,Microsoft.PowerShell.Commands.ImportModuleCommand I have this binary module installed: Directory: C:\Program Files\WindowsPowerShell\Modules ModuleType Version Name ExportedCommands ---------- ------- ---- ---------------- Binary 16.0.86... Microsoft.Online.SharePoint.Powe... Binary 16.0.80... Microsoft.Online.SharePoint.Powe... Any clues?164KViews0likes27Comments