Skip to main content

Posts

Delete Microsoft 365 Group

This article provides the finding of deleting a Microsoft 365 Group in four different ways, as an owner of the Group or as a SharePoint Admin. I did this investigation because I was not really sure how, if or when a Group and the associated SPO site is deleted. If you're a SharePoint Admin you can also delete the Group from Microsoft 365 Admin Center or the SharePoint Admin Center. You can also use the PnP or the Exchange Online PowerShell modules to delete (remove) a Group but that's a different discussion, how to get access. Removed Group through Azure Portal Microsoft 365 Admin Center SharePoint Admin Center Role   All Groups Deleted Groups Active Groups Deleted Groups Active Sites Deleted Sites ...

Application Server Administration job failed

Problem CPU 99%. User Profile Synchronization is stuck on Running. SharePoint Timer Service is eating up the whole CPU and the event viewer says: Application Server Administration job failed for service instance Microsoft.Office.Server.Search.Administration.SearchServiceInstance Reason: An update conflict has occurred, and you must re-try this action. The object SearchDataAccessServiceInstance was updated by xxxxxxxx, in the OWSTIMER process, on machine xxxxxxx.  View the tracing log for more information about the conflict. Technical Support Details: Microsoft.SharePoint.Administration.SPUpdatedConcurrencyException: An update conflict has occurred, and you must re-try this action. The object SearchDataAccessServiceInstance was updated by xxxxxxxx, in the OWSTIMER process, on machine xxxxxxx. View the tracing log for more information about the conflict.    at Microsoft.Office.Server.Search.Administration.SearchServiceInstance.Synchronize()    at Micro...

Assign a task action in SharePoint 2013 Workflow generates a KeyNotFoundException

Problem You have added an "assigned a task" action to your SharePoint 2013 Workflow. The associated workflow task list has broken inheritance with custom permissions. When you start your workflow and the task is assigned and you get a  KeyNotFoundException. Fix the problem Don't break the inherit of permission on the associated workflow task list.

No effect when adding a domain name to an existing SAN certificate

You have an existing SAN certificat installed in yor IIS and you want to add a domain name to the certificate. Problem When you install the updated certificate in the IIS the new domain name doesn't appear in the certificate when you are viewing the certificate from the Security report (the lock) next to the address bar in the browser. Fix the problem Check if the "Print Spooler" and "Windows Remote Management" Services are started or not. Delete the old certificate from the IIS Import the new certificate to the IIS Run IISRESET /stop Run net stop http Run net start http Run IISRESET /start Verify that the "Print Spooler" and "Windows Remote Management" Services are started or stoped depending on the result in step 1.

Error when running Register-SPAppPrincipal

Problem You get the error, "Cannot find an SPWeb object with Id or Url" , when trying to get the RootWeb of the SPSite object when you register a new app with the Register-SPAppPrincipal PowerShell cmdl. Register-SPAppPrincipal -NameIdentifier $appPrincipalIdentifier -Site $site.RootWeb -DisplayName 'ProviderHostedApp' The cause could be The user who is running the script is NOT a farm administrator. Fix the problem Add the user to the farm administrator group

Sideloading of apps is not enabled on this site

In order to publish a SharePoint App (Provider Hosted in my case) to a sitecollection it must be based on a developer site template or an App Catalog site template. If you run into "Sideloading of apps is not enabled on this site" error when trying to publish the app the Developer feature is most likely not activated. The Developer feature is hidden so you have to activate it throug PowerShell. Run the following script to activate the feature. Enable-SPFeature e374875e-06b6-11e0-b0fa-57f5dfd72085 –url http://sharepoint.contoso.com

Can't read from source file or disk

When you are using Windows Explorer View in SharePoint you can't MOVE a file from one site to another if it's not directly below the root site, but you can copy the file. See the different scenarios below. Working Scenario Moving files between libraries within the same site. For example: "http://sharepointsite/sites/site1/site2/library1" (source) "http://sharepointsite/sites/site1/site2/library2" (destination) Moving files between libraries across different sites as long as they are directly below the root site. For example: "http://sharepointsite/site1/library1 (source) "http://sharepointsite/site2/library2 (destination) Non-working Scenario Moving files between libraries in sub-sites that are more than 1 level below the root site. For example: "http://sharepointsite/sites/site1/site1/library1" (source) "http://sharepointsite/sites/site1/site2/library2" (destination)

Get Search Index Location in SharePoint 2013

As far as I know the page (/_admin/search/searchconfigwizardtopologyconfig.aspx) where you can add, remove, or modify components of the topology of the Search Service Application e.g. the index location in SP 2010 is no longer available. So if you would like to get your Search Index Location then you could use the following PowerShell script. $searchSrvInst = Get-SPEnterpriseSearchServiceInstance $searchSrvInst.Components

Enable PowerShell commandlets for SharePoint 2013 in PowerShell ISE

Open the PowerShell ISE and create a profile by running the following code: if (!(test-path $profile.AllUsersAllHosts)) { new-item -type file -path $profile.AllUsersAllHosts-force } Open the newly created profile with the following command: psEdit $profile.AllUsersAllHosts The profile will be open in the PowerShell ISE. Add the following code to the profile: (If the profile for some reason doesn't open then you can get it here: C:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1) if ((Get-PSSnapIn -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null ) { Add-PSSnapIn -Name Microsoft.SharePoint.PowerShell } Save the profile. Next time you open the PowerShell ISE you will have all the Microsoft.SharePoint.PowerShell commandlets.

Presence icon missing in Site Users webpart

Problem The presence icon is missing in the Site Users webpart. Solution Verify that Microsoft Office is installed on the client computer. Verify that Additional actions and Online Status for members is enabled in the General Settings for the Web Application. Verify that the SIP Address in the SharePoint user information has a value.

Determine service pack version in SharePoint 2010

If you want to get Farm information e.g. configuration database version, configuration database server, SharePoint products installed go to Central Administration > System Settings > Manage servers in your farm (/_admin/FarmServers.aspx). If you want to view the patch status for products installed on servers in the farm, go to Central Administration > Upgrade and Migration > Check Product and patch installation status (/_admin/PatchStatus.aspx). If you want to view the upgrade status for databases in the farm, go to Central Administration > Upgrade and Migration > Review database status (/_admin/DatabaseStatus.aspx).

The form cannot be submitted because of an error

Problem I created a reusable approval workflow in SharePoint Designer 2010. I initiated the workflow. Then when I filled in the Assigned To field I got an error pop up saying: "The form cannot be submitted because of an error". Solution Uninstall the KB2553322 for SharePoint Designer. I didn't uninstall KB2553322 for Microsoft Office. Restart SharePoint Designer. Recreate the workflow.

Hide-SPView

This cmdlet sets a view to hidden. Parameters: SiteCollection url. Edit $listUrl and $viewUrl to your own values. param([string]$url) param([string]$url) [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") function Get-SPSite([string]$url) { New-Object Microsoft.SharePoint.SPSite($url) } function Hide([string]$url) { $SPSite = Get-SPSite $url $listUrl = "/Lists/Tasks"; $viewUrl = "Lists/Tasks/byowner.aspx"; foreach($oWeb in $SPSite.AllWebs) { Write-Host "############ ###################"; Write-Host "Web: " $oWeb.Url; [Microsoft.SharePoint.SPList]$list = $null; [Microsoft.SharePoint.SPView]$spView = $null; try { $list = $oWeb.GetList("$($oWeb.Url)$($listUrl)"); } catch [Exception] { Write-Host "The list does not exist" -foreground red; $oWeb.Dispose(); c...

Access denied when editing the content source

The problem You get access denied when you try to edit the content source in Microsoft SharePoint 2007. I ran into this error after I changed the "Farm Search Service Account". Application error when access /_layouts/searchsspsettings.aspx Error=Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) The cause could be WSS_WPG group account does not have the correct permissions to the %windir%\Tasks folder on the computer that is running the indexing service. Fix the problem Add the WSS_WPG group to the Tasks folder. Log on to the servver that is running the indexing service with an account that has administrative permissions. Do the following step (2) if you don't have the security tab in the properties section of the %windir%\tasks folder: At the command prompt, run: attrib –s %windir%\tasks Note: If Windows Explorer is open when you make this change, you will not see the extra tab in Windows Explorer. If Windows Explorer is already open, ...

Problem installing service pack 1 for SharePoint Foundation 2010

I have a SharePoint farm with one application server, two WFE servers and one db server. When I ran the configuration wizard after I installed service pack 1 on the application server and the WFE servers I got an error that said that the service pack was missing on the WFE servers. Solution: Open your powershell editor and execute the following command on the WFE servers. Get-SPProduct –local Then run the configuration wizard again.

Adding Site Administrators to a Site Collection

If you want to add a SiteAdministrator to a SiteCollection you can't add the user to the SPUserCollection SPWeb.SiteAdministrators . SPWeb.SiteAdministrators.Add() SPUserCollection SPWeb.SiteAdministrators is of type SPUserCollectionType.UCT_SiteAdmins (6), which appears that SharePoint is not taking care of. If it's a bug, i don't know. Instead you have to set the property IsSiteAdmin of the SPUser to True; SPWeb web = SPContext.Current.Web; SPUser user = web.AllUsers["loginName"]; user.IsSiteAdmin = true; user.Update();