作者:Gome--李想 | 来源:互联网 | 2023-10-10 17:20
篇首语:本文由编程笔记#小编为大家整理,主要介绍了powershell从Tridion-Powershell-Modules项目安装和配置Tridion-CoreService模块相关的知识,
篇首语:本文由编程笔记#小编为大家整理,主要介绍了powershell 从Tridion-Powershell-Modules项目安装和配置Tridion-CoreService模块相关的知识,希望对你有一定的参考价值。
# Install the Tridion-CoreService module from the Tridion-Powershell-Modules project. See https://github.com/pkjaer/tridion-powershell-modules
Install-Module -Name Tridion-CoreService
Import-Module -Name Tridion-CoreService
# Set the server configuration
Set-TridionCoreServiceSettings -HostName my-cms-server -Version Web-8.5 -ConnectionType Basic
Set-TridionCoreServiceSettings -Credential (Get-Credential) -CredentialType Windows
# Alternatively use SSL (https)
#Set-TridionCoreServiceSettings -HostName my-cms-server -Version Web-8.5 -ConnectionType Basic-SSL
#Set-TridionCoreServiceSettings -Credential (Get-Credential) -CredentialType Windows
# Alternatively if it is safe to save the password in plain-text format...
#Set-TridionCoreServiceSettings -HostName localhost -Version Web-8.5 -ConnectionType Basic
#$credential = New-Object System.Management.Automation.PSCredential("vagrant", (ConvertTo-SecureString "vagrant" -AsPlainText -Force))
#Set-TridionCoreServiceSettings -Credential $credential -CredentialType Windows
# Test configuration by listing the current user
#Get-TridionUser -Current