Home >

Great Blog on Power Shell for SharePoint

29. April 2010

 

http://stsadm.blogspot.com/2009/10/sharepoint-2010-stsadm-and-powershell.html

Awesome work, now onwards to some Heavy Shelling ;)

A practical example of adding test or configuration data to a list :

Start-SPAssignment -Global

$Website = Get-SPweb "http://localhost/Test003"
$LeverandoerTyper =  $Website.Lists["LeverandoerType"]
$NewItem = $LeverandoerTyper.Items.Add()
$NewItem["leverandoerType"] = "Øvrig"
$NewItem.Update()

Stop-SPAssignment -Global

/Michael Høtoft 


Michael Høtoft  

Comments are closed