RemoveComputerCommand.Credential Property
Gets and sets the value of the Credential parameter of the Remove-Computer cmdlet. This property is introduced in Windows PowerShell 2.0.
Namespace: Microsoft.PowerShell.Commands
Assembly: Microsoft.PowerShell.Commands.Management (in microsoft.powershell.commands.management.dll)
Usage
Dim instance As RemoveComputerCommand
Dim value As PSCredential
value = instance.Credential
instance.Credential = value
Syntax
'Declaration
<CredentialAttribute> _
<ParameterAttribute(Position:=1)> _
<AliasAttribute(System.String[])> _
<ValidateNotNullOrEmptyAttribute> _
Public Property Credential As PSCredential
[CredentialAttribute]
[ParameterAttribute(Position=1)]
[AliasAttribute(System.String[])]
[ValidateNotNullOrEmptyAttribute]
public PSCredential Credential { get; set; }
[CredentialAttribute]
[ParameterAttribute(Position=1)]
[AliasAttribute(System.String[])]
[ValidateNotNullOrEmptyAttribute]
public:
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
A PSCredential object that defines a user account (the default is the current user).
Remarks
This topic is included in this SDK for completeness only. For more information about this cmdlet, see Remove-Computer in the Microsoft TechNet library.
For Help at the command line, type:
get-help remove-computer
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.
Platforms
Development Platforms
Windows Server 2008, Windows Vista, Windows Server 2003, Windows XP, Windows 7, Windows 2008 R2
Target Platforms
Windows Server 2008, Windows Server 2003, Windows Vista, Windows XP, Windows 7, Windows 2008 R2
See Also
Reference
RemoveComputerCommand Class
RemoveComputerCommand Members
Microsoft.PowerShell.Commands Namespace