Quantcast
Channel: SharePoint 2010 - Setup, Upgrade, Administration and Operations forum
Viewing all articles
Browse latest Browse all 13778

Mail enabled lists - using powershell to disable or enable?

$
0
0

I'm moving hundreds of mail enabled lists from one sharepoint farm to another. Once they're moved I need to disable the lists for email on the old farm and enable them on the new farm. I'd like to find a way to script this with powershell. So far I've tried:

$spWeb = get-spweb http://intranet/site
$spList = $spWeb.GetList("/site/Lists/List")
$spList.CanReceiveEmail = "False"
$spList.Update()

However, when trying to set the value to False, I get an error "CanReceiveEmail is a ReadOnly property."

Has anyone found a way to do this?


Viewing all articles
Browse latest Browse all 13778

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>