< Back

Set-SDPropSchedule

Fri Jan 10, 2020 7:09 pm

NAME Set-SDPropSchedule



SYNOPSIS

Sets the schedule that the SDProp process runs.





SYNTAX

Set-SDPropSchedule [-Seconds] <Int32> [-FindPDCEmulator] [-Domain <String>] [-Credential <PSCredential>] [-WhatIf]

[-Confirm] [<CommonParameters>]





DESCRIPTION

The cmdlet sets the AdminSDProtectFrequency registry key value with the desired schedule in seconds. The cmdlet

must be run on the PDC Emulator for it to be effective.



The cmdlet requires confirmation because of the impact of the change.





PARAMETERS

-Seconds <Int32>

The number of seconds in between SDProp execution tasks. This can be from 60 seconds (1 minute) to 7200

seconds (2 hours). Setting this value less than

the default of 3600 seconds is not recommended for performance reasons.



Required? true

Position? 1

Default value 0

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-FindPDCEmulator [<SwitchParameter>]

If this cmdlet is not being run on the PDC emulator for the domain, you can specify this parameter to find the

PDC emulator in the domain and execute the change

on that server.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Domain <String>

The domain to execute the schedule update on. If this is not specified, it defaults to the domain of the

current user.



Required? false

Position? named

Default value

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 credential is used to connect to a remote computer if the FindPDCEmulator parameter is specified. If the

cmdlet is being run locally, this parameter is ignored.



Required? false

Position? named

Default value [System.Management.Automation.PSCredential]::Empty

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

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

System.Int32





OUTPUTS

System.Management.Automation.PSCustomObject



Returns a custom object that contains the updated registry property.





NOTES





AUTHOR: Michael Haken

LAST UPDATE: 1/8/2017



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Set-SDPropSchedule -Seconds 5400



Sets the schedule for the SDProp task to run every 5400 seconds (90 minutes).









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Set-SDPropSchedule -Seconds 5400 -FindPDCEmulator -Credential (Get-Credential)



Sets the schedule for the SDProp task to run every 5400 seconds (90 minutes) on the PDC emulator discovered for

the current user's domain.











RELATED LINKS