Register
: :
Login
Home
News
Forums
Scripts
User Groups
Resources
About
Forums
Search
Members
Unanswered
Active Topics
Forums
>
Using PowerShell
>
SharePoint
Update List Items' Fields in Sharepoint
Last Post 17 Nov 2009 06:14 AM by
Mihail Stacanov
. 0 Replies.
Sort:
Oldest First
Most Recent First
Prev
Next
You are not authorized to post a reply.
Author
Messages
Mihail Stacanov
New Member
Posts:15
17 Nov 2009 06:14 AM
Hi All
How can I update or change list items values with Powershell in Sharepoint.
Im using this code
[void][System.reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
$spSite = new-object Microsoft.SharePoint.SPSite("mysite")
$spWeb = $spSite.OpenWeb("myweb")
$spList = $spWeb.Lists["mylist"]
$spitems = $splist.items
I cant see any methods for updating items in list
When I use $spitem.fields | select title
the output is title of all fields.
And if Im deleting one of the fields it deletes entire field with its properties not its values.
Maybe there are a possibility to delete the values of one field and after that add new values to it but how to delete old values?
Thanks for advance
Mihail Stacanov
http://proproit.com
You are not authorized to post a reply.
Using PowerShell
--General PowerShell
--Active Directory
--Exchange Server
--Lync Server
--SharePoint
--SQL Server
--System Center
--Non-Microsoft Products
--Books, Tools, and Videos
--Working with .NET
--Peer Review
--Testing, Testing...
PowerShell Development
--Cmdlet Development
--PSDrive Provider Development
--Hosting the Shell
Looking Ahead
--Using PowerShell v2.0
--Developing for PowerShell v2.0
PowerShellCommunity.org
--Community Announcements and Assistance
--Completely Unrelated
--User Groups
--Community Business
----Suggestion Box
Forums
>
Using PowerShell
>
SharePoint
Active Forums 4.3
Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2