Skip to main content

Posts

Showing posts with the label PowerShell

sorry we couldn't remove the app - SharePoint Online

Some time you try to remove some installed apps from SharePoint and it removes approx. all the time but some apps says " sorry we couldn't remove the app ". To remove these kind of apps, You have to use PowerShell Scripts. So there are some steps : 1. Install PnP PowerShell ( Click Here ) 2. Now run the following PnP command with URL and App Name changes : Connect-PnPOnline –Url <Your_Site_Collection_URL> –Credentials (Get-Credential) $instances = Get-PnPApp  $instance = $instances | where {$_.Title -eq '<My_App_Name'}   #Uninstall-PnPApp -Identity $instance.Id Remove-PnPApp -Identity $instance.Id

Not able to load Sharepoint online PowerShell module after installation

I did installation of SharePoint Online PowerShell Module but it was throwing error when I was using it : Error Detail: [PS] C:\Windows\system32>Import-Module Microsoft.Online.SharePoint.PowerShell -DisableNameChecking Import-Module : Could not load type 'Microsoft.Online.SharePoint.TenantAdministration.SPOTenantCdnType' from assembly 'Microsoft.Online.SharePoint.Client.Tenant, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'. At line:1 char:1 + Import-Module Microsoft.Online.SharePoint.PowerShell -DisableNameChec ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : NotSpecified: (:) [Import-Module], TypeLoadException     + FullyQualifiedErrorId : System.TypeLoadException,Microsoft.PowerShell.Commands.ImportModuleCommand I verified that the module is installed: [PS] C:\Windows\system32>Get-Module -ListAvailable -Name "Microsoft.Online.SharePoint.PowerShell" | ft ver...