Install the module
- Get the .psm1, .psd1 and DLL files from the project. You can also copy the CoreService DLL from the %TRIDION_HOME%bin\client\CoreService folder on your Content Manager
- Create a directory
C:\Users\username\Documents\WindowsPowerShell\Modules\CoreService
C:\Users\username\Documents\WindowsPowerShell\Modules\Tridion-CoreService
- Copy the
.psm1
, .psd1
and .dll
files in that directory
- Restart any open PowerShell consoles and the Modules are available
- Run
Import-Module CoreService
Import-Module Tridion-CoreService
- Run the
Get-TridionCoreServiceInfo
Get-TridionCoreServiceSettings
to test if you can use the CoreService module. This will not yet contact the Core Service.
Test the connection to the Core Service
- Set the Tridion Content Manager server hostname with
Set-TridionCoreServiceHost cme.server.hostname
Set-TridionCoreServiceSettings cme.server.hostname 2013-SP1
where "cme.server.hostname" is your server's hostname. The module will default to localhost.
- See if you can access the Core Service by doing a simple operation:
Get-TridionUser -Verbose
. The "-Verbose" will output in verbose mode so you can see what is going on in more detail...
- Now the connection works you can try more commands like
Get-TridionPublications | Select-Object Id, Title
to list the publication id and title of all publications.
MSDN explains the options we have to install the module.
EDIT: updated answer with steps to install and steps to test try the module and the connection to the Core Service
EDIT: added Import-Module CoreService
to the instructions, the module will not work without that
EDIT: updated commands to match new version of the tridion-powershell-modules