
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.comKey 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 AppendDisable 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.






No Comments