I want to export the task list which has enabled Send e-mail when ownership is assigned in the list using PowerShell:

$Lists = Get-PnPList 

foreach($List in $Lists){

    $Email = $List.EnableAssignToEmail

    if($Email =$True){
       Write-Host $Emai.Title

Use below PnP PowerShell command to check if E-Mail Notification is enabled on task list:

$list = Get-PnPList -Identity Tasks -Include EnableAssignToEmail 

Where Tasks is name of list.


enter image description here

Documentation: Get-PnPList

Follow below article to export list items to CSV:

Export SharePoint Online List Items To CSV Using PnP PowerShell

  • 1
    This is correct answer. Fulfill the requirement
    – Liz
    Jul 2 '21 at 10:57
  • one thing, when i connected the site with on prem it is throwing error for email enable The EnableAssignToEmail field or property does not exist.. can you pls tell me why?
    – Liz
    Jul 5 '21 at 12:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.