📜  powershell sharepoint 2010 更新项 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:31.653000             🧑  作者: Mango

代码示例1
$spWeb = Get-SPWeb -Identity http://yourdomain/sites/config
$spList = $spWeb.Lists["AppSettings"]
$spItem = $spList.GetItemById(10013) //or another way that you prefer.
$spItem["Name"] = "MyName"
$spItem.Update()