Approve Sharepoint list item using Powershell

Updating a list item using Powershell is a very common task in the Sharepoint world. An article has been already written about how to create a PWS script which connect to a Sharepoint List and get’n’update the List items in it.

There is ModerationInformation.Status property for these items if the approve process is enabled on the list. You can change it as below:

$item.ModerationInformation.Status = "Approved"
$itemp.update()

Have fun 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s