Tuesday, 30 July 2013

useful ps1 for iterating stsadm

[System.Reflection.Assembly]::Load(“Microsoft.SharePoint, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c”)
$WA = "http://moss.litwareinc.com"
$webapp = [Microsoft.SharePoint.Administration.SPWebApplication]::Lookup("$WA")
foreach($site in $webapp.sites)
$url = $site.url
write-host $url
stsadm.exe -o gl-propagatecontenttype -url $url -contenttype Document >C:\output.txt 2>&1

No comments:

Post a Comment

SharePoint Information Architecture Diagram

Here is the template I use for Information Architecture designs. It's built using Mindjet and I flesh the nodes out with the low level d...