Advertisement
In this example I want to show how to update the modify by and
modified date using PowerShell.
Sometimes it may happen that exiting item or items we need
to update with the user name instead of our name, for that we can achieve using
power shell easily.
Here I am updating the Last modified name and the date with
name for a particular items based on the item ID.
$web = Get-SPWeb http://dotnetsharepoint.com/sites/dotnet/sharepoint2013
$list = $web.lists["UpdateModified"]
#23 is my item id,i am update for a particular item only
$item = $list.items.getitembyid(23)
$username = $Web.EnsureUser(domain/username)
$item["Editor"] = $username
$item["Modified"] = "7/17/2015 8:00 AM"
$item.Update()
$list.Update()
$web.Dispose()
70FA1504F7
ReplyDeletemmorpg oyunlar
ucuz sms onay
mobil ödeme bozdurma
güvenilir takipçi siteleri
gerçek takipçi
FC32E7602E
ReplyDeletekiralık hacker
kiralık hacker
tütün dünyası
hacker bulma
hacker kirala
ReplyDeleteDiscover the latest in custom apparel with high-quality options like disney dtf transfers. These transfers provide vibrant colors and durability, making them perfect for both personal and commercial projects. Whether you're creating unique gifts or expanding your product line, these transfers can help you achieve professional results. Explore the variety and find the perfect fit for your needs today.