< Back
Set-PDCEmulatorSrvRecords
Post
NAME Set-PDCEmulatorSrvRecords
SYNOPSIS
Changes the PDC Emulator Srv DNS Records for every domain in the forest.
SYNTAX
Set-PDCEmulatorSrvRecords [[-Priority] <Int32>] [[-Weight] <Int32>] [[-RestartServer] <Boolean>] [-Credential
<PSCredential>] [-PassThru] [<CommonParameters>]
DESCRIPTION
The cmdlet defaults to reducing the priority and increasing the weight of the PDC Emulator in every domain so that
it does not process logons.
PARAMETERS
-Priority <Int32>
The priority to set on the DNS Srv Records for each PDC.
Required? false
Position? 1
Default value 200
Accept pipeline input? false
Accept wildcard characters? false
-Weight <Int32>
The weight to set on the DNS Srv Records for each PDC.
Required? false
Position? 2
Default value 25
Accept pipeline input? false
Accept wildcard characters? false
-RestartServer <Boolean>
Indicate whether to restart the server in order to complete the change.
Required? false
Position? 3
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Credential <PSCredential>
Specifies a user account that has permission to perform this action. The default is the current user.
Type a user name, such as "User01" or "Domain01\\User01", or enter a PSCredential object, such as one generated
by the Get-Credential cmdlet. If you type a user name, you will be prompted for a password.
The user must have ENTERPRISE ADMIN privileges to connect to each PDC Emulator in each domain.
Required? false
Position? named
Default value [System.Management.Automation.PSCredential]::Empty
Accept pipeline input? false
Accept wildcard characters? false
-PassThru [<SwitchParameter>]
Returns an object that represents the updated dns records for each PDC Emulator.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
System.Management.Automation.PSCustomObject[]
NOTES
AUTHOR: Michael Haken
LAST UPDATE: 1/7/2017
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Set-PDCEmulatorSrvRecords
Sets the priority to 200 and weight to 25.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Set-PDCEmulatorSrvRecords -Priority 150 -Weight 20
Sets the priority to 150 and weight to 20.
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Set-PDCEmulatorSrvRecords -RestartServer
Sets the priority to 200 and weight to 25 and restarts the server immediately to implement the change.
RELATED LINKS
SYNOPSIS
Changes the PDC Emulator Srv DNS Records for every domain in the forest.
SYNTAX
Set-PDCEmulatorSrvRecords [[-Priority] <Int32>] [[-Weight] <Int32>] [[-RestartServer] <Boolean>] [-Credential
<PSCredential>] [-PassThru] [<CommonParameters>]
DESCRIPTION
The cmdlet defaults to reducing the priority and increasing the weight of the PDC Emulator in every domain so that
it does not process logons.
PARAMETERS
-Priority <Int32>
The priority to set on the DNS Srv Records for each PDC.
Required? false
Position? 1
Default value 200
Accept pipeline input? false
Accept wildcard characters? false
-Weight <Int32>
The weight to set on the DNS Srv Records for each PDC.
Required? false
Position? 2
Default value 25
Accept pipeline input? false
Accept wildcard characters? false
-RestartServer <Boolean>
Indicate whether to restart the server in order to complete the change.
Required? false
Position? 3
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Credential <PSCredential>
Specifies a user account that has permission to perform this action. The default is the current user.
Type a user name, such as "User01" or "Domain01\\User01", or enter a PSCredential object, such as one generated
by the Get-Credential cmdlet. If you type a user name, you will be prompted for a password.
The user must have ENTERPRISE ADMIN privileges to connect to each PDC Emulator in each domain.
Required? false
Position? named
Default value [System.Management.Automation.PSCredential]::Empty
Accept pipeline input? false
Accept wildcard characters? false
-PassThru [<SwitchParameter>]
Returns an object that represents the updated dns records for each PDC Emulator.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
System.Management.Automation.PSCustomObject[]
NOTES
AUTHOR: Michael Haken
LAST UPDATE: 1/7/2017
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Set-PDCEmulatorSrvRecords
Sets the priority to 200 and weight to 25.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Set-PDCEmulatorSrvRecords -Priority 150 -Weight 20
Sets the priority to 150 and weight to 20.
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Set-PDCEmulatorSrvRecords -RestartServer
Sets the priority to 200 and weight to 25 and restarts the server immediately to implement the change.
RELATED LINKS