Friday, January 3, 2014

Tridion Core Service in PowerShell

The tridion-powershell-modules project is a PowerShell module written by Peter Kjaer which allows easy access to the Tridion Core Service through PowerShell. Windows PowerShell allows to use the CoreService client DLL and allows to create simple scripts to do Tridion CM maintainance.

This module introduces a number of Powershell commands like Get-TridionClient and Get-TridionUser to interact with the CoreService. Setup for Tridion 2011, 2013 or 2013 SP1 is super easy with the Set-TridionCoreServiceSettings command.

Find the module and the source code in http://code.google.com/p/tridion-powershell-modules/

Earlier I posted a Tridion.Stackexchange answer on how to install and configure the module in Windows Powershell http://tridion.stackexchange.com/a/3643/88

I use a little PowerShell script to remove and install the module when Peter releases a new version https://gist.github.com/jhorsman/7658365


tip #1

Make sure you put the module files in a directory named "Tridion-CoreService". A previous version required a directory names "CoreService" but the module is renamed. If the folder name and module name don't match you will get errors like "Import-Module : The specified module 'CoreService' was not loaded because no valid module file was found in any module".


tip #2

Run Get-Command -Module Tridion-CoreService to learn about the other command in the module.

No comments:

Post a Comment