Monday, 6 May 2024

How to Seize FSMO Roles From Dead Domain Controller

The Flexible Single Master Operations (FSMO) role are critical components of an Active Directory domain controller. They are responsible for managing various operations within the domain, including creating and deleting objects, schema updates, and domain renaming.

If a domain controller holding an FSMO role fails, it is crucial to seize the role quickly to avoid disruption to the domain.

This blog post will discuss how to seize an FSMO role from a failed domain controller in Active Directory. We will provide step-by-step instructions and highlight important things to watch out for during the process.

The Environment

This tutorial will demonstrate the examples using two domain controllers.

  • DC1.theitbros.local – The failed domain controller who’s the current owner of all FSMO roles.
  • DC2.theitbros.local – The additional domain controller to which we’ll forcefully transfer the FSMO roles.

Apart from that, your administrator account must be a member of the following Active Directory groups:

  • Domain Admins
  • Schema Admins

FSMO Roles: Transferring vs. Seizing

The two ways to reassign FSMO roles are transfer and seize. Both methods ultimately transfer the FSMO roles to another DC.

  • Transfer — is used for the planned demotion of a domain controller (for example, when you decommission a server) or when a DC is temporarily disconnected while performing maintenance tasks.
  • Seize — used when the physical server has failed (and you do not have an up-to-date Active Directory backup of this DC to perform a non-authoritative restore of Active Directory Domain Services) or Windows Server is faulty; or after you have forcibly demoted a domain controller to a member server.

In a gist, you can gracefully move (transfer) FSMO roles from one working DC to another or forcefully grab (seize) the FSMO roles from a dead DC.

Determine the FSMO Roles to Owner

Note. The AD PowerShell cmdlets are available in the Active Directory module 2.0 or newer on domain controllers with Windows Server 2008 R2 or higher.

Suppose DC1 goes kaput, and you must transfer the FSMO roles it holds to another domain controller. Having FSMO roles on different domain controllers is common. So you must confirm which FSMO roles the dead server holds.

First, let’s list the domain controllers in our environment.

# List all DCs 
## Using PowerShell 
Get-ADDomainController -Filter * | Select-Object ` 
HostName, Site, OperatingSystem

## Using DSQUERY 
dsquery server -forest

As you can see below, this forest has two domain controllers. And we know that DC1 is dead. So that makes DC2 our candidate as the new FSMO role owner.

seize fsmo roles from dead domain controller

Next, list the FSMO roles owner using the commands below.

# List FSMO Roles owners 
## Using PowerShell 
Get-ADDomain | Select-Object PDCEmulator, InfrastructureMaster, RIDMaster 
Get-ADForest | Select-Object DomainNamingMaster, SchemaMaster

## Using NETDOM 
netdom query fsmo

As confirmed, DC1 owns all FSMO roles (PDC Emulator, RID Master, Infrastructure Master, Domain Naming Master, Schema Master).

seize roles from failed domain controller

How to Transfer FSMO Roles From a Failed Domain Controller

You can seize FSMO roles in three ways—PowerShell (Move-ADDirectoryServerOperationMasterRole), NTDSUTIL, and Active Directory Users and Computers (ADUC) console.

Seize FSMO Roles Step by Step (ADUC)

Log on to the domain controller that will be the new FSMO roles owner. In this example, that server is DC2.

Once you’ve logged on to DC2, open the ADUC console.

how to seize fsmo roles from dead domain controller

Click the Domain Controllers Organizational Unit (OU) and look for the failed domain controller (DC1). Right-click the failed DC and click Delete.

seizing fsmo roles from dead server

When asked to confirm the deletion, click Yes.

transfer fsmo roles when dc is down

You’ll receive a warning that you’re deleting a domain controller without running the removal wizard. But since we’re removing a dead domain controller, check the box to Delete this Domain Controller anyway and click Delete.

seize fsmo roles

Click Yes to confirm the deletion of this domain controller.

how to seize fsmo roles

The deletion will detect that DC1 is the owner of the FSMO roles. Those FSMO roles will be transferred to the additional domain controller (DC2) when you click OK.

seize domain controller roles

Once DC1 is deleted, right-click the domain and click Operations Masters.

how to transfer fsmo roles when dc is down

Now, click through each tab (RID, PDC, and Infrastructure) and confirm that the operations master is DC2.

seize pdc role

Next, open the Active Directory Domains and Trusts console. Click Action → Operations Master.

active directory seize fsmo roles

Confirm that DC2 is now the Domain Naming operations master.

fsmo roles transfer

Now, let’s check the Schema Master role. Run the below command in an elevated PowerShell window to register the Active Directory Schema Management console:

regsvr32 schmmgmt.dll

Click OK,

seize fsmo roles step by step

Next, open MMC and add the Active Directory Schema snap-in.

force fsmo role transfer

Right-click the Active Directory Schema node → Operations Master. Confirm the DC2 is the current schema master.

seizing fsmo roles

Using the GUI, you’ve successfully seized the FSMO role from a failed domain controller.

Seize FSMO Roles Step by Step (PowerShell)

The PowerShell method of seizing the FSMO roles involves fewer steps than the others, making it an ideal emergency break-glass method.

Log on to the domain controller (DC2) and open PowerShell as admin.

Next, define the roles to seize. The below code defines all roles in a variable named $fsmoRoles.

$fsmoRoles = @( 
'SchemaMaster', 
'DomainNamingMaster', 
'InfrastructureMaster', 'PDCEmulator', 
'RIDMaster' 
)

You can also substitute the operations master’s names with their corresponding numbers.

Operation Master Role NameNumber
PDCEmulator0
RIDMaster1
InfrastructureMaster2
SchemaMaster3
DomainNamingMaster4

Run the following commands to move the FSMO roles to DC2.itbros.local forcefully. The first command gets the domain controller object (Get-ADDomainController). The second command ([Move-ADDirectoryServerOperationMasterRole](https://theitbros.com/transfer-fsmo-roles-using-powershell/)) transfers the FSMO roles:

$targetDC = Get-ADDomainController -Identity DC2.theitbros.local 
Move-ADDirectoryServerOperationMasterRole ` 
-Identity $targetDC ` 
-OperationMasterRole $fsmoRoles ` 
-Confirm:$false ` 
-Force

If there are no errors or output on the screen, the FSMO role move operation was completed successfully.

seize all fsmo roles

To confirm, let’s check the new FSMO roles owner.

Get-ADDomain | Format-List PDCEmulator, InfrastructureMaster, RIDMaster 
Get-ADForest | Format-List DomainNamingMaster, SchemaMaster

seize fsmo roles ntdsutil

Suffice it to say the PowerShell method is quick and convenient.

Seize FSMO Roles Step by Step (NTDSUTIL)

In this last method, we’ll go old school. This method is interactive using the ntdsutil tool.

Open PowerShell or command prompt as admin and run the ntdsutil command.

Next, enter each command below.

roles 
connections 
connect to server DC2 
q

force transfer fsmo roles

Run the below command to seize the naming master FSMO role.

seize naming master

You will be prompted to confirm the role seizure. You will see this confirmation dialog for each FSMO role you are seizing. Click Yes.

seize fsmo roles command line

NTDSUTIL will first attempt a safe role transfer. As expected, the safe transfer fails because DC1 is already dead. It proceeds with the seizure of the role instead.

As shown below, NTDSUTIL successfully seized the Naming Master role to DC2.

how to move fsmo roles

Now, run each command below to seize the remaining FSMO roles.

seize infrastructure master 
seize rid master 
seize schema master 
seize pdc 
q

sieze fsmo roles

transfer fsmo roles

seize fsmo

seize fsmo role

Now, let’s enter the metadata cleanup mode.

metadata cleanup 
connections 
connect to server DC2 
q

move fsmo roles

List the existing Active Directory sites:

select operation target 
list sites

This domain has only one AD site called EAST-US. Type the site number where the failed domain controller belongs. Then, list the servers on that site.

select site 0 
list servers in site

fsmo seize roles

Select the failed controller (DC1) and display the list of domains:

select server 0 
list domains

Select the domain and return to the metadata cleanup menu:

select domain 0 
q

seize roles domain controller

Delete the selected server (DC1):

remove selected server

And you will get this confirmation dialog. Click Yes.

fsmo seize

domain controller seize fsmo roles

Whew! That was a lot of steps! I don’t think I’ll often use ntdsutil for FSMO roles operations.

Post FSMO Seizure Clean-Up Tasks

After you’ve successfully seized the FSMO roles, here are some tasks you must do.

Delete the Failed Domain Controller

You can delete the DC from the Active Directory Sites and Services (dssite.msc).

command to seize fsmo roles

Click Yes to confirm the deletion.

fsmo roles seize

Delete DNS Records

Once you’ve deleted the domain controller object, make sure to delete the DNS records that point to that DC.

You can let the DNS scavenging take care of it or manually remove them using the DNS manager. In the below example, the DC1 DNS entry is already removed automatically.

force seize fsmo roles

Check for Errors

After capturing the FSMO roles, check for errors in the Directory Services and DNS logs in the Event Viewer. If there are problems, use the following commands to help you fix the most common errors automatically.

dcdiag /v /fix 
netdiag /v /fix

Things to Watch Out For

  • Seizing an FSMO role should only be done as a last resort when a domain controller holding an FSMO role fails and cannot be recovered.
  • Seizing an FSMO role can cause conflicts if the original domain controller is recovered or brought back online.
  • After seizing an FSMO role, ensuring that the domain is fully functional and has no issues is crucial.
  • Wait for the changes to replicate throughout the AD forest.

Conclusion

In conclusion, seizing an FSMO role from a failed domain controller is a critical task that must be performed carefully. By following the steps outlined in this blog post and keeping an eye on potential issues, you can ensure that the domain remains fully functional even after a domain controller failure.

Thursday, 17 August 2023

Seqrite Backup and Restore Process 


Crf Back Process:

Seqrite Backup Feature allows you to take periodic backup of important data files present on the endpoints.

By default, the following types of files are backed up by Seqrite backup feature:

File Type

Extension

Text

.txt

Email Files

.eml

Document

.doc, .docx, .xls, .xlsx, .ppt, .pptx, .pdf, .wps, .wpt, .rtf, .et, .docm, .xlsm, .pptm, .ett, .dpt, .dps, .ods, .odp, .odg, .odt

Accounting Files (Tally data files)

tcp, 900, tsf, 001, 247, 500, 989, tsm.


This article will help you to add custom file extensions/ file types other than the default supported file types in the EPS console 7.6 from the policies.

Applicable versions: EPS 7.6

To add custom file type for backup, follow the steps:

1. Log on to the Seqrite Endpoint Security Web console.

2.  Go to Clients > Manage Policies.

3. Select the “Policy” to which you want to add custom file extensions/file types.

4.  Go to General settings in the selected Policy.

5. To add custom file type /file extension, enter the file extension name and set its maximum file size.
Note: Maximum file size can be set up to 999999 MB.
For E.g.
 If wish to back up AutoCAD data which has file type .dwg. Add file type in the EPS console 7.6 from the policy.

6. Click Add. AutoCAD data will be backed up on the endpoints once the settings are saved in the policy.

7. To save your settings, click Save Policy.


NOTE:

1.     Backup feature will back up the “Default file type” and “Updated file type” data on the physical local drives on the endpoints.

2.     The default file types has maximum file size limit of 25 MB.

3.     Make sure the local drives of the endpoint have enough free space to back up the important files.

To exclude any file extension from Seqrite Backup, follow these steps:

1. If backup of any file type is not needed, then exclude the file type from the EPS console 7.6 policy settings.
    


2. To save your setting, click Save Policy.


In this way, other/custom file types can be added in the EPS console 7.6 from the policy.

 

Restore Processes:

  • Restore all the backup files to a specified location.
  • Open Command Prompt as Administrator and run below command,
    cfrutil.exe /restore DDMMYYYYHHMM <Path_to_restore_file>
    e.g. cfrutil.exe /restore 150120181200 C:\restore


Above command will restore all files backed up before 15th Jan2018 12:00 PM.


Top of Form

Bottom of Form

 


Monday, 20 March 2023

Convert Windows Server Evaluation Edition to Retail OEM

 

Upgrading licensed versions of Windows Server

Below are general guidelines for in-place upgrade paths where Windows Server is already licensed (that is, not evaluation):

·         Upgrades from 32-bit to 64-bit architectures are not supported. All releases of Windows Server since Windows Server 2008 R2 are 64-bit only.

·         Upgrades from one language to another are not supported.

·         If the server is an Active Directory domain controller, you cannot convert it to a retail version. See Upgrade Domain Controllers to Windows Server 2012 R2 and Windows Server 2012 for important information.

·         Upgrades from pre-release versions (previews) of Windows Server are not supported. Perform a clean installation of Windows Server.

·         Upgrades that switch from a Server Core installation to a Server with Desktop Experience installation (or vice versa) are not supported.

·         Upgrades from a previous Windows Server installation to an evaluation copy of Windows Server are not supported. Evaluation versions should be installed as a clean installation.

·         You can only change from Standard edition to Datacenter edition when upgrading. Changing from Datacenter edition to Standard edition is not supported.

 Important

If your server uses NIC Teaming, disable NIC Teaming prior to upgrade, and then re-enable it after upgrade is complete. See NIC Teaming Overview for details.

Converting an evaluation version to a retail version

You can convert the evaluation version of Windows Server to the retail version. If you have installed the evaluation of Standard edition, you can convert it to the retail version of either the Standard edition or Datacenter edition. Similarly, if you have installed the evaluation of the Datacenter edition, you can only convert it to the retail version of the Datacenter edition.

If you haven't already activated Windows, the bottom right-hand corner of the desktop shows the time remaining in the evaluation period.

 Important

For releases of Windows Server 2016 prior to 14393.0.161119-1705.RS1_REFRESH, you can only convert from evaluation to retail when Windows Server has been installed with the Server with Desktop Experience installation option (not Server Core). Starting with version 14393.0.161119-1705.RS1_REFRESH and later releases, you can convert evaluation editions to retail regardless of the installation option used.

 Note

Before you attempt to convert from evaluation to retail, verify that your server is actually running an evaluation version. To do this, launch an elevated command prompt and run the command slmgr.vbs /dlv; evaluation versions will include EVAL in the output.

Windows Server Standard or Datacenter

If the server is running an evaluation version of Windows Server Standard edition or Windows Server Datacenter edition, you can convert it to a retail version as follows:

1.    From an elevated command prompt or PowerShell session, run the following command to save the Microsoft Software License Terms for Windows Server, which you can then review:

Copy

DISM /online /Set-Edition:ServerDatacenter /GetEula:C:\eula.rtf

2.    Determine the current edition name by running the command below. The output is an abbreviated form of the edition name, for example Windows Server Datacenter edition is ServerDatacenter:

Copy

DISM /online /Get-CurrentEdition

3.    Verify which editions the current installation can be converted to by running the command below. The evaluation version of Windows Server Standard can be converted to the retail version of either the Standard or Datacenter editions of Windows Server, whereas the evaluation version of Windows Server Datacenter can only be converted to the retail version Windows Server Datacenter:

Copy

DISM /online /Get-TargetEditions

4.    Make note of the target edition name you want to convert to, and enter this and your retail product key in the command below. This process requires you to accept the Microsoft Software License Terms for Windows Server you saved previously.

 Tip

You can convert from the evaluation version of Windows Server Standard to the retail version of Windows Server Datacenter in one step by using the appropriate product key and edition ID.

Copy

DISM /online /Set-Edition:<edition ID> /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula

For example:

Copy

DISM /online /Set-Edition:ServerDatacenter /ProductKey:ABCDE-12345-ABCDE-12345-ABCDE /AcceptEula

 Tip

For more information about Dism.exe, see DISM Command-line options.

 Important

If the server is an Active Directory domain controller, you cannot convert it to a retail version. In this case, install an additional domain controller on a server that runs a retail version, migrate any FSMO roles held, and remove Active Directory Domain Services (AD DS) from the domain controller that runs on the evaluation version. For more information, see Upgrade Domain Controllers to Windows Server 2012 R2 and Windows Server 2012.

Windows Server Essentials

If the server is running Windows Server Essentials, you can convert it to the full retail version by entering a retail, volume license, or OEM key by launching an elevated command prompt and entering it as part of the following command:

Copy

slmgr.vbs /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

Converting Windows Server Standard edition to Datacenter edition

At any time after installing Windows Server, you can convert Windows Server Standard edition to Datacenter edition. You can also run setup.exe from the installation media to upgrade or repair the installation (sometimes called in-place repair). If you run setup.exe to upgrade or repair in-place on any edition of Windows Server, the result will be the same edition you started with.

You can convert the Standard edition of Windows Server to the Datacenter edition as follows:

1.    Determine that Windows Server Standard is the current edition name by running the command below. The output is an abbreviated form of the edition name, for example Windows Server Standard edition is ServerStandard:

Copy

DISM /online /Get-CurrentEdition

2.    Verify that Windows Server Datacenter is a valid option to convert to by running the following command:

Copy

DISM /online /Get-TargetEditions

3.    Enter ServerDatacenter and your retail product key in the command below:

Copy

DISM /online /Set-Edition:ServerDatacenter /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula

Converting between retail, volume-licensed, and OEM licenses

At any time after installing Windows Server, you can freely convert between a retail license, a volume-licensed license, or an OEM license. The edition (Standard or Datacenter) remains the same during this conversion. If you are starting with an evaluation version, convert it to the retail version first, then you can convert between the versions.


To do this, run the following command from an elevated command prompt, including providing your volume-license, retail, or OEM product key:

Copy

slmgr.vbs /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX


Project Image;