text
stringlengths
0
4.23k
/deleterodfsrmember [<read_only_domain_controller_name>]
Deletes the global AD DS settings for DFS Replication that correspond to the specified read-only domain controller, or deletes the global AD DS settings for DFS Replication for all read-only domain controllers if no value is specified for <read_only_domain_controller_name>.Use this option to manually delete the AD DS settings only when the automatic deletion fails on a read-only domain controller and stalls the read-only domain controller for a long time when rolling back the migration from the Prepared state to the start state.
/?
Displays help at the command prompt.
/setglobalstate <state>
Important: You should only run this command on the PDC emulator.
/deleterontfrsmember [<read_only_domain_controller_name>]
<read_only_domain_controller_name>
You shouldn't need to use this option during a normal migration process, because the DFS Replication service automatically deletes these AD DS settings during the migration from the Redirected state to the Eliminated state. Use this option to manually delete the AD DS settings only when the automatic deletion fails on a read-only domain controller and stalls the read-only domain controller for a long time during the migration from the Redirected state to the Eliminated state.
/deleterodfsrmember [<read_only_domain_controller_name>]
<read_only_domain_controller_name>
Use this option to manually delete the AD DS settings only when the automatic deletion fails on a read-only domain controller and stalls the read-only domain controller for a long time when rolling back the migration from the Prepared state to the start state.
Remarks
Use the /setglobalstate <state> command to set the global migration state in AD DS on the PDC emulator to initiate and control the migration process. If the PDC emulator isn't available, this command fails.
/setglobalstate <state>
Migration to the Eliminated state is irreversible and rollback isn't possible, so use a value of 3 for state only when you are fully committed to using DFS Replication for SYSvol replication.
Global migration states must be a stable migration state.
Active Directory replication replicates the global state to other domain controllers in the domain, but because of replication latencies, you can get inconsistencies if you run dfsrmig /getglobalstate on a domain controller other than the PDC emulator.
dfsrmig /getglobalstate
The output of dfsrmig /getmigrationstate indicates whether migration to the current global state is complete, listing the local migration state for any domain controllers that haven't yet reached the current global migration state. The local migration state for domain controllers can also include transition states for domain controllers that have not reached the current global migration state.
dfsrmig /getmigrationstate
Read-only domain controllers can't delete settings from AD DS, the PDC emulator performs this operation, and the changes eventually replicate to the read-only domain controllers after the applicable latencies for active directory replication.
The dfsrmig command is supported only on domain controllers that run at the Windows Server domain functional level, because SYSvol migration from FRS to DFS Replication is only possible on domain controllers that operate at that level.
You can run the dfsrmig command on any domain controller, but operations that create or manipulate AD DS objects are only allowed on read-write capable domain controllers (not on read-only domain controllers).
Examples
To set the global migration state to Prepared (1) and to initiate migration or to rollback from the Prepared state, type:
dfsrmig /setglobalstate 1
To set the global migration state to Start (0) and to initiate rollback to the Start state, type:
dfsrmig /setglobalstate 0
To display the global migration state, type:
dfsrmig /getglobalstate
Output from the dfsrmig /getglobalstate command:
dfsrmig /getglobalstate
Current DFSR global state: Prepared
Succeeded.
To display information about whether the local migration states on all the domain controllers match the global migration state and if there are any local migration states where the local state doesn't match the global state, type:
dfsrmig /GetMigrationState
Output from the dfsrmig /getmigrationstate command when the local migration states on all of the domain controllers match the global migration state:
dfsrmig /getmigrationstate
All Domain Controllers have migrated successfully to Global state (Prepared).
Migration has reached a consistent state on all Domain Controllers.
Succeeded.
Output from the dfsrmig /getmigrationstate command when the local migration states on some domain controllers don't match the global migration state.
dfsrmig /getmigrationstate
The following Domain Controllers are not in sync with Global state (Prepared):
Domain Controller (Local Migration State) DC type
=========
CONTOSO-DC2 (start) ReadOnly DC
CONTOSO-DC3 (Preparing) Writable DC
Migration has not yet reached a consistent state on all domain controllers
State information might be stale due to AD latency.
To create the global objects and settings that DFS Replication uses in AD DS on domain controllers where those settings were not created automatically during migration or where those settings are missing, type:
dfsrmig /createglobalobjects
To delete the global AD DS settings for FRS replication for a read-only domain controller named contoso-dc2 if those settings were not deleted automatically by the migration process, type:
dfsrmig /deleterontfrsmember contoso-dc2
To delete the global AD DS settings for FRS replication for all read-only domain controllers if those settings were not deleted automatically by the migration process, type:
dfsrmig /deleterontfrsmember
To delete the global AD DS settings for DFS Replication for a read-only domain controller named contoso-dc2 if those settings were not deleted automatically by the migration process, type:
dfsrmig /deleterodfsrmember contoso-dc2
To delete the global AD DS settings for DFS Replication for all read-only domain controllers if those settings were not deleted automatically by the migration process, type:
dfsrmig /deleterodfsrmember
To display help at the command prompt:
dfsrmig
dfsrmig /?
diantz
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Package existing files into a cabinet (.cab) file. This command performs the same actions as the updated makecab command.
Syntax
diantz [/v[n]] [/d var=<value> ...] [/l <dir>] <source> [<destination>]
diantz [/v[<n>]] [/d var=<value> ...] /f <directives_file> [...]
Parameters
Parameter
Description
<source>
File to compress.
<destination>
File name to give compressed file. If omitted, the last character of the source file name is replaced with an underscore (_) and used as the destination.
/f <directives_file>
A file with diantz directives (may be repeated).
/d var=<value>