iam使用SP 2013,我需要使用powershell命令更正一些数据 使用get-spsite命令打开网站并分配给网站,然后更新日期
$site = Get-SPSite Sitename
$web = $site.OpenWeb()
$list = $web.Lists["Request"] #taking request list /
$list = $web.Lists["2 - Qualification Documents"] #sq;e for the qualification document
$list = $web.Lists["Correction"] #list of correction
$item = $list.GetItemById(2390) #call the request by the ID, for example the number 2390
当iam检入更正而不是列表iam仅获得字符串更正
PS C:\Users\osa_spfarm> $site=Get-SPSite http://sporion.cloudapp.net
PS C:\Users\osa_spfarm> $web = $site.OpenWeb()
PS C:\Users\osa_spfarm> $list = $web.Lists["Request"]
PS C:\Users\osa_spfarm> write-host $list
Request
PS C:\Users\osa_spfarm> $list = $web.Lists["Correction"]
PS C:\Users\osa_spfarm> write-host $list
Correction
PS C:\Users\osa_spfarm> $site=Get-SPSite http://sporion.cloudapp.net
PS C:\Users\osa_spfarm> $web = $site.OpenWeb()
PS C:\Users\osa_spfarm> $list = $web.Lists["Correction"]
PS C:\Users\osa_spfarm> $site=Get-SPSite http://sporion.cloudapp.net
PS C:\Users\osa_spfarm> $list = $web.Lists["Correction"]
PS C:\Users\osa_spfarm> write-host $list
Correction
PS C:\Users\osa_spfarm>
我需要像这样更新交货截止日期
$item["ornDateDeliveryPlanned"] #Change the Delivery Due Date ("MM/DD/AAAA HH:MM:SS")
请您帮忙