protected override void BeginProcessing()
        {
            base.BeginProcessing();

            string domainDN;

            if (string.IsNullOrEmpty(this.Domain))
            {
                // Automatically infer DC's domain name.
                domainDN = this.ReplicationClient.DomainNamingContext;
            }
            else
            {
                if (!this.Domain.Contains("."))
                {
                    // This is not a hard check, because root domain does not need to have a dot in it.
                    // TODO: Extract as a resource
                    this.WriteWarning("The domain name supplied appears to be a NetBIOS name instead of DNS name.");
                }

                // Convert Domain DNS name to distinguished name
                domainDN = DistinguishedName.GetDNFromDNSName(this.Domain).ToString();
            }

            // TODO: Error processing
            foreach (var backupKey in this.ReplicationClient.GetDPAPIBackupKeys(domainDN))
            {
                this.WriteObject(backupKey);
            }
        }
        protected override void BeginProcessing()
        {
            base.BeginProcessing();
            if (!this.Domain.Contains("."))
            {
                // This is not a hard check, because root domain does not need to have a dot in it.
                // TODO: Extract as a resource
                this.WriteWarning("The domain name supplied appears to be a NetBIOS name instead of DNS name.");
            }

            // TODO: Error processing
            // Convert Domain DNS name to distinguished name
            var domainDN = DistinguishedName.GetDNFromDNSName(this.Domain);

            foreach (var backupKey in this.ReplicationClient.GetDPAPIBackupKeys(domainDN.ToString()))
            {
                this.WriteObject(backupKey);
            }
        }