How to implement "Add sharepoint sites in Collection using powershell"
How to implement "Add sharepoint sites in Collection using powershell"
Hello,
Get the Site to a variable:
$Site = get-odmobject -name "Site name here"
Add to a collection:
get-odmcollection -Name "Test" | add-odmobject -object $Site
How to implement "Add sharepoint sites in Collection using powershell" example : Sharepoint Site - TestSPO , Collection Name = "TestAddCollection" using csv i need to add sharepoint sites into collection . Please provide code . Thanks for your help and support
Probably easier on the UI:
Thank you for your guidance. please provide for remove sites from collection
$CollectionName = "TestAddCollection"
$ObjectsInCollection = get-odmcollection -Name $CollectionName | get-odmobjet -all
Get-OdmCollection -Name $CollectionName | Remove-OdmObject -object $ObjectsInCollection -Confirm:$false
Thank you for your guidance. will test and let you know