Knowledge Agent

I dove into Microsoft Knowledge Agent during its preview rollout late 2025. This SharePoint feature acts like an AI content curator. It enriches metadata organizes libraries and preps sites for Microsoft 365 Copilot. Perfect for admins cleaning up sprawling tenants before AI rollout. Requires SharePoint Online Management Shell v16.0.26413.12010 or later and M365 Copilot licenses for users.

What Knowledge Agent Does

Once enabled users with Copilot licenses see an agent button in SharePoint. Site owners content managers even visitors get AI help.

  • Auto-adds metadata to docs and lists.
  • Creates smart views and summaries.
  • Flags stale content for cleanup.
  • Optimizes for Copilot queries.

Supports all sites or exclusions up to 100 URLs. Currently preview skips GCC High DoD air-gapped envs.

Prerequisites and Setup

Grab SharePoint Online Management Shell. Update if needed: Update-Module -Name Microsoft.Online.SharePoint.PowerShell. Run as admin with SharePoint Admin or Global Admin rights.

Connect first:

Connect-SPOService https://yourtenant-admin.sharepoint.com

Key Cmdlets Explained

Control via Set-SPOTenant parameters. Verify with Get-SPOTenant | Select-Object KnowledgeAgentScope KnowledgeAgentSelectedSitesList.

KnowledgeAgentScope

Sets availability. Values:

  • AllSites: Everywhere.
  • ExcludeSelectedSites: All except listed sites.
  • NoSites: Disabled default.

KnowledgeAgentSelectedSitesList

Array of up to 100 site URLs. Pairs with ExcludeSelectedSites.

KnowledgeAgentSelectedSitesListOperation

How to update list:

  • Overwrite default.
  • Append: Add to existing.
  • Remove: Pull from existing.

Configuration Examples

Enable tenant-wide:

Set-SPOTenant -KnowledgeAgentScope AllSites
//Exclude specific sites:
Set-SPOTenant -KnowledgeAgentScope ExcludeSelectedSites
Set-SPOTenant -KnowledgeAgentSelectedSitesList @("https://yourtenant.sharepoint.com/sites/hr", "https://yourtenant.sharepoint.com/sites/finance")

Append more exclusions:

Set-SPOTenant -KnowledgeAgentSelectedSitesList @("https://yourtenant.sharepoint.com/sites/legal") -KnowledgeAgentSelectedSitesListOperation Append

Disable fully:Set-SPOTenant -KnowledgeAgentScope NoSites

Using Knowledge Agent in Practice

After config site owners click the agent icon lower-right. It scans libraries suggests tags generates views. Example: On a messy doc lib it might say “Add department column to 500 files?” Approve and it bulk-updates.

For Copilot integration it structures data so queries like “Show overdue projects” pull accurate results. Monitor via audit logs in Purview. Changes coming for GA beyond preview PowerShell toggle.

Adnan, a distinguished professional, boasts an impressive track record as a Microsoft MVP, having achieved this prestigious recognition for the eighth consecutive year since 2015. With an extensive career spanning over 18 years, Adnan has honed his expertise in various domains, notably excelling in SharePoint, Microsoft 365, Microsoft Teams, the .Net Platform, and Microsoft BI. Presently, he holds the esteemed position of Senior Microsoft Consultant at Olive + Goose.Notably, Adnan served as the MCT Regional Lead for the Pakistan Chapter from 2012 to 2017, showcasing his leadership and commitment to fostering growth within the tech community. His journey in the realm of SharePoint spans 14 years, during which he has undertaken diverse projects involving both intranet and internet solutions for both private and government sectors. His impact has transcended geographical boundaries, leaving a mark on projects in the United States and the Gulf region, often collaborating with Fortune 500 companies.Beyond his roles, Adnan is a dedicated educator, sharing his insights and knowledge as a trainer. He also passionately advocates for technology, frequently engaging with the community through speaking engagements in various forums. His multifaceted contributions exemplify his dedication to the tech field and his role in driving its evolution.

Leave a Reply