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

Earlier I posted a Tridion.Stackexchange answer on how to install and configure the module in Windows Powershell

I use a little PowerShell script to remove and install the module when Peter releases a new version

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