Change User email address for a site collection PowerShell
Add-PSSnapin
"Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue
# Ravi Kumar Maloth: https://xyz.com/_layouts/userdisp.aspx?ID=643
$User = Get-SPUser -identity
" Domain\User" -Email" -web "https://xyz.com"
write-output $($User.Email)
write-output $($User.Email)
$web =Get-SPWeb http://rku:1111/sites/dev/
$list=$web.Lists["User Information List"]
$user =$list.GetItemById(3)
$user["SipAddress"]=""
$user["EMail"]="Rku@test.com"
$user.update()
$list.update()
$web.update()
No comments:
Post a Comment