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.

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.....

No comments:

Post a Comment