powershell 从Tridion-Powershell-Modules项目安装和配置Tridion-CoreService模块

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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

以上是关于powershell 从Tridion-Powershell-Modules项目安装和配置Tridion-CoreService模块的主要内容,如果未能解决你的问题,请参考以下文章

powershell 从PowerShell访问SQLite

powershell 从Network Drives Powershell复制

powershell 从powershell将数据插入表中

powershell 从PowerShell动态加载.Net程序集

powershell 从git编辑PowerShell中的文件

powershell 从PowerShell运行CMD中的命令