none
Site description property doesn't exist when I try to update it using SharePoint online PowerShell commands RRS feed

  • Question

  • I connect to tenant site and then to a site collection to update the site description using the PowerShell commands. Loopping through an xml file.

    But every time I get the error saying the Description property doesn't exist for the web object.

    Please advice.

    Here is the snippet

     

    Connect-SPOService-url"https://xxxx-admin.sharepoint.com"-Credential$username


    $web=Get-SPOSite-Identity$node.attributes['Url'].value

              

    $web.Description =$node.attributes['Description'].value

    write-host$web.Description

    #Stop-SPAssignment $spAssignment


    try{

                

    $context.Load($web)

    $context.ExecuteQuery()

    }

    catch{

    Write-Host"Error Adding Site Description"


    }

    Thursday, March 30, 2017 10:07 AM

Answers

All replies