Posts Tagged powershell

Useful Powershell commands

I was getting tired of always googling the same powershell commands so from now on I’am adding some of them here.

Task: Add .dll to assembly on Windows Server 2012

Set-location "C:\folder_with_dll\"
[System.Reflection.Assembly]::Load("System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")
$publish = New-Object System.EnterpriseServices.Internal.Publish
$publish.GacInstall("C:\folder_with_dll\some.dll")
iisreset
Advertisements

Leave a comment

Sharepoint 2010 sitetemplates

Getting pretty tired of finding the complete list of sitetemplates on Sharepoint 2010.

By using the powershell command: get-spwebtemplate you’ll get the complete list of templates available

The complete list is:

Name Title LocaleId Custom
GLOBAL#0 Global template 1033 False
STS#0 Team Site 1033 False
STS#1 Blank Site 1033 False
STS#2 Document Workspace 1033 False
MPS#0 Basic Meeting Workspace 1033 False
MPS#1 Blank Meeting Workspace 1033 False
MPS#2 Decision Meeting Workspace 1033 False
MPS#3 Social Meeting Workspace 1033 False
MPS#4 Multipage Meeting Workspace 1033 False
CENTRALADMIN#0 Central Admin Site 1033 False
WIKI#0 Wiki Site 1033 False
BLOG#0 Blog 1033 False
SGS#0 Group Work Site 1033 False
TENANTADMIN#0 Tenant Admin Site 1033 False
ACCSRV#0 Access Services Site 1033 False
ACCSRV#1 Assets Web Database 1033 False
ACCSRV#3 Charitable Contributions Web Database 1033 False
ACCSRV#4 Contacts Web Database 1033 False
ACCSRV#6 Issues Web Database 1033 False
ACCSRV#5 Projects Web Database 1033 False
BDR#0 Document Center 1033 False
OFFILE#0 (obsolete) Records Center 1033 False
OFFILE#1 Records Center 1033 False
OSRV#0 Shared Services Administration Site 1033 False
PPSMASite#0 PerformancePoint 1033 False
BICenterSite#0 Business Intelligence Center 1033 False
SPS#0 SharePoint Portal Server Site 1033 False
SPSPERS#0 SharePoint Portal Server Personal Space 1033 False
SPSMSITE#0 Personalization Site 1033 False
SPSTOC#0 Contents area Template 1033 False
SPSTOPIC#0 Topic area template 1033 False
SPSNEWS#0 News Site 1033 False
CMSPUBLISHING#0 Publishing Site 1033 False
BLANKINTERNET#0 Publishing Site 1033 False
BLANKINTERNET#1 Press Releases Site 1033 False
BLANKINTERNET#2 Publishing Site with Workflow 1033 False
SPSNHOME#0 News Site 1033 False
SPSSITES#0 Site Directory 1033 False
SPSCOMMU#0 Community area template 1033 False
SPSREPORTCENTER#0 Report Center 1033 False
SPSPORTAL#0 Collaboration Portal 1033 False
SRCHCEN#0 Enterprise Search Center 1033 False
PROFILES#0 Profiles 1033 False
BLANKINTERNETCONTAINER#0 Publishing Portal 1033 False
SPSMSITEHOST#0 My Site Host 1033 False
ENTERWIKI#0 Enterprise Wiki 1033 False
SRCHCENTERLITE#0 Basic Search Center 1033 False
SRCHCENTERLITE#1 Basic Search Center 1033 False
SRCHCENTERFAST#0 FAST Search Center 1033 False
visprus#0 Visio Process Repository 1033 False

LocaleId’s other than 1033 (english) removed for clarity

, , ,

Leave a comment