Posts
$config = @{ libraries = @( @{ title= “Actuarial” owners = @( ‘user.pimms@contoso.co.uk’ ) } @{ title= “Board Support” owners = @( ‘user.bas@contoso.co.uk’ ) } @{ title= “Change” owners = @( ‘user.bas@contoso.co.uk’ ) } @{ title= “Communications” owners = @( ‘user.bas@contoso.co.uk’ ) } @{ title= “Finance” owners = @( ‘user.pimms@contoso.co.uk’ )} @{title=“HR” owners = @( ‘user.bas@contoso.co.uk’ )} @{title=“Investment” owners = @( ‘user.carpenter@contoso.co.uk’ )} @{title=“IT” owners = @( ‘user.will@contoso.co.uk’ )} @{title=“Legal” owners = @( ‘user.
Posts
Red
I am unable to delete https://contoso.sharepoint.com/teams/PROJ-hubtest because it is a hub site. Unregistering the site as hub site failed too. Please help deleting the site.
PS C:\Users\RAuckloo] Remove-PnPTenantSite -Url https://contoso.sharepoint.com/teams/PROJ-hubtest -Force Remove-PnPTenantSite: Hub site https://contoso.sharepoint.com/teams/PROJ-hubtest cannot be deleted, please unregister it first.
Trying to unregister a redirect site
Hebatallah Raslan (Convergys International Europe)
Troubleshooting steps:
The site is a redirect site for a Hub site.
Removed it: Unregister-SPOHubSite -Identity https://contoso.
Posts
#$SiteCollectionUrl = Read-Host -Prompt "Enter site collection URL: "; $list = "Timesheet" $ExportFileDirectory = (get-location).ToString(); $field = Get-PnPField -List $list -Identity "Category" $catChoices = $field.choices $sitesWithTimesheet = @( "https://contoso.sharepoint.com/teams/TEAM-PMO" "https://contoso.sharepoint.com/sites/Infrastructure" "https://contoso.sharepoint.com/teams/TEAM-Security" "https://contoso.sharepoint.com/teams/TEAM-DevTest" "https://contoso.sharepoint.com/teams/TEAM-SD" ) if(Test-Path $ExportFileDirectory){ $sitesWithTimesheet | foreach { connect-pnponline -url $_ -Interactive $items = Get-PnPListItem -List $list -PageSize 500 -Fields Category ##get distinct choices within column $type = [System.Collections.ArrayList]@(); $items | foreach-object { if($_.FieldValues.Category){ if($catChoices -notcontains $_.FieldValues.Category){ if($type.Name -notcontains $_.