# 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