About Me

Having 12 years experience in Microsoft technologies.Since more than 7 years working in SharePoint technologies. Expert in providing consultation for SharePoint projects. Hands on with development and administration.
Showing posts with label sharepoint 2010 web template gallery. Show all posts
Showing posts with label sharepoint 2010 web template gallery. Show all posts

Wednesday, 22 February 2012

Powershell script to get items from webtemplate gallery

            site= new-Object Microsoft.SharePoint.SPSite($url)
            $loc= [System.Int32]::Parse(1033)
            $templates= $site.GetWebTemplates($loc)          
             foreach ($child in $templates)
            {
                $name = $child.Name
                write-host $name    
         
            } # end of for each item in web templates


Happy programming.....