SetScheduledJobCommand.Credential Property

Gets or sets the PowerShell credentials for the scheduled job. This property represents the Credential cmdlet parameter. This SDK programming element is introduced in Windows PowerShell 3.0.

Namespace: Microsoft.PowerShell.ScheduledJob
Assembly: Microsoft.PowerShell.ScheduledJob (in Microsoft.PowerShell.ScheduledJob.dll)


Dim instance As SetScheduledJobCommand
Dim value As PSCredential

value = instance.Credential

instance.Credential = value


<CredentialAttribute> _
<ParameterAttribute(ParameterSetName:="ScriptBlock")> _
<ParameterAttribute(ParameterSetName:="FilePath")> _
Public Property Credential As PSCredential
public PSCredential Credential { get; set; }
property PSCredential^ Credential {
    PSCredential^ get ();
    void set (PSCredential^ value);
/** @property */
public PSCredential get_Credential ()

/** @property */
public void set_Credential (PSCredential value)
public function get Credential () : PSCredential

public function set Credential (value : PSCredential)

Property Value

Returns PSCredential.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Target Platforms

See Also


SetScheduledJobCommand Class
SetScheduledJobCommand Members
Microsoft.PowerShell.ScheduledJob Namespace