Skip to content

Instantly share code, notes, and snippets.

@jhorsman
Last active September 12, 2019 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhorsman/d92d11fc2b65efe6c9e9c49cd7f75740 to your computer and use it in GitHub Desktop.
Save jhorsman/d92d11fc2b65efe6c9e9c49cd7f75740 to your computer and use it in GitHub Desktop.
# see https://github.com/pkjaer/tridion-powershell-modules
# see https://gist.github.com/jhorsman/b218ba7e2e5587d21c395d5968583b61 to learn more about configuring the Tridion-CoreService module
# Install the Tridion-CoreService module from the Tridion-Powershell-Modules project
Install-Module -Name Tridion-CoreService
Import-Module -Name Tridion-CoreService
# Set the server configuration
Set-TridionCoreServiceSettings -Credential (Get-Credential) -CredentialType Windows
Set-TridionCoreServiceSettings -HostName my-cms-server -Version Web-8.5 -ConnectionType Basic-SSL
# Test configuration by listing the current user
Get-TridionUser -Current
#List all system/built-in/predefined users
$client = Get-TridionCoreServiceClient
$filter = New-Object Tridion.ContentManager.CoreService.Client.UsersFilterData;
$filter.IsPredefined = $true;
$client.GetSystemWideList($filter) | Select-Object Id, Title, Description, IsPredefined, IsEnabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment