powershell 使用PowerShell和核心服务淘汰SDL Tridion 2013 SP1发布目标。见http://tridion.stackexchange.com/questions/1
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了powershell 使用PowerShell和核心服务淘汰SDL Tridion 2013 SP1发布目标。见http://tridion.stackexchange.com/questions/1相关的知识,希望对你有一定的参考价值。
# Make sure Tridion-PowerShell-Modules is installed fist https://github.com/pkjaer/tridion-powershell-modules
Import-Module Tridion-CoreService
Set-TridionCoreServiceSettings -Version 2013-SP1
$client = Get-TridionCoreServiceClient
# Listing the publication targets does not work for Sites 9 and up
#$filter = New-Object Tridion.ContentManager.CoreService.Client.PublicationTargetsFilterData;
#$client.GetSystemWideList($filter)
# brute-force discover publicaton targets
Get-TridionItem tcm:0-1-65537 | Select-Object Id, Title
Get-TridionItem tcm:0-2-65537 | Select-Object Id, Title
Get-TridionItem tcm:0-3-65537 | Select-Object Id, Title
Get-TridionItem tcm:0-4-65537 | Select-Object Id, Title
Get-TridionItem tcm:0-5-65537 | Select-Object Id, Title
Get-TridionItem tcm:0-6-65537 | Select-Object Id, Title
Get-TridionItem tcm:0-7-65537 | Select-Object Id, Title
Get-TridionItem tcm:0-8-65537 | Select-Object Id, Title
Get-TridionItem tcm:0-9-65537 | Select-Object Id, Title
Get-TridionItem tcm:0-10-65537 | Select-Object Id, Title
$client.DecommissionPublicationTarget("remove-me-tcm:0-1-65537")
以上是关于powershell 使用PowerShell和核心服务淘汰SDL Tridion 2013 SP1发布目标。见http://tridion.stackexchange.com/questions/1的主要内容,如果未能解决你的问题,请参考以下文章
windows powershell 怎么使用啊,是干啥用的
powershell 使用powershell #powershell从zip文件中删除文件
powershell Powershell用于将Powershell与SharePoint 2007一起使用
powershell 如何定时执行 ps1
[powershell]Use powershell to get file hash / 使用powershell获取文件哈希值
PowerShell 添加任务以使用参数运行 PowerShell 脚本