In order to make modification to the Tridion MMC Snap-in such as the database settings, your user account will need access to the TridionRsaKeyContainer.
Ever get this annoying "Access is denied" error when you tried to add yourself to the TridionRsaKeyContainer? I have plenty of times.....
I always thought that the original Administrator account who did the Tridion installation can grant this access. But what if the original user account that was used was deleted or the employee left the company? Then you're screwed........ ok, that's not true!
Here's a way around it with the use of Microsoft PSTools
Playing around with Windows PowerShell today. As usual, the first thing that people learn is the infamous "Hello World" program. So I tried scripting an array of string in PS (plus color!)
Today marks the first day of me learning about the Tridion Core Service! First let's step through how to connect (remotely from the server as a client)
Open Visual Studio and create a new Windows Console project
Add Tridion.ContentManager.CoreService.Client.dll as a reference in the solution
Add Systems.ServiceModel and System.Runtime.Serialization as a reference in the solution
Make sure the project is running .NET Framework 4.0
Create an app.config file with the content from Tridion.ContentManager.CoreService.Client.config and update the netTcp_2011 address with the appropriate server IP
<?xml version="1.0"?>
<configuration>
<system.serviceModel>
<!-- Default/example WCF settings for Core Service. These settings should be copied into the host application's configuration file. -->
<bindings>
<!-- Default Core Service binding settings are provided here. These can be used as a starting point for further customizations. -->
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tridion.ContentManager.CoreService.Client;
namespace CoreService
{
class Program
{
static void Main(string[] args)
{
// Connecting to Core Service
var client = new SessionAwareCoreServiceClient("netTcp_2011");
client.ChannelFactory.Credentials.Windows.ClientCredential = new System.Net.NetworkCredential("administrator", "tridion");
Console.WriteLine("Connected to CoreService with user " + client.GetCurrentUser().Title);
Console.Read();
}
}
}