powershell 安装Tridion CoreService模块。如http://tridion.stackexchange.com/q/3641/88中所述。这个脚本根本不稳定。

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了powershell 安装Tridion CoreService模块。如http://tridion.stackexchange.com/q/3641/88中所述。这个脚本根本不稳定。相关的知识,希望对你有一定的参考价值。

$powershellModulePath = $env:UserProfile + "\Documents\WindowsPowerShell\Modules\Tridion-CoreService"
#todo test if path is in $env:PSModulePath http://msdn.microsoft.com/en-us/library/dd878350%28v=vs.85%29.aspx
$powershellClientPath = $powershellModulePath + "\Clients"
Write-Debug ("PowerShell module path: {0}" -f $powershellModulePath)
if(!(Test-Path $powershellModulePath))
{
	$newModuleFolder = New-Item -path $powershellModulePath -type directory
	Write-Debug ("Created new module directory {0}" -f $newModuleFolder.FullName)
}
if(!(Test-Path $powershellClientPath))
{
	$newClientFolder = New-Item -path $powershellClientPath -type directory
	Write-Debug ("Created new client directory {0}" -f $newClientFolder.FullName)
}

if(Get-Module Tridion-CoreService)
{
	Write-Debug "Module Tridion-CoreService already exists"
	Remove-Module Tridion-CoreService
	Write-Debug "Removed module Tridion-CoreService"
}

Copy-Item *.psm1 $powershellModulePath
Copy-Item *.psd1 $powershellModulePath
# @todo prevent copy errors
# how to we figure out if this is writable?
# can we unload the DLLs so that we can deploy them?
Copy-Item "Clients\*.dll" $powershellClientPath   #disable this line and copy manually if DLLs are already exist and in use
Write-Debug ("Copied module files from {0} to {1}" -f ((Get-Item ".\").FullName), ((Get-Item $powershellModulePath).FullName))

Import-Module Tridion-CoreService
Write-Host ("Installed Tridion-CoreService module in {0}" -f (Get-Item $powershellModulePath).FullName)

以上是关于powershell 安装Tridion CoreService模块。如http://tridion.stackexchange.com/q/3641/88中所述。这个脚本根本不稳定。的主要内容,如果未能解决你的问题,请参考以下文章

powershell 安装Tridion CoreService模块。如http://tridion.stackexchange.com/q/3641/88中所述。这个脚本根本不稳定。

powershell 安装Tridion CoreService模块。如http://tridion.stackexchange.com/q/3641/88中所述。这个脚本根本不稳定。

powershell 从http://code.google.com/p/tridion-powershell-modules/试用SDL Tridion 2013 PowerShell模块。另见Tr

powershell 从http://code.google.com/p/tridion-powershell-modules/试用SDL Tridion 2013 PowerShell模块。另见Tr

powershell 发布一个SDL Tridion页面,即PowerShell。先决条件:http://code.google.com/p/tridion-powershell-modules/和任

powershell 发布一个SDL Tridion页面,即PowerShell。先决条件:http://code.google.com/p/tridion-powershell-modules/和任