AddComputerCommand.DomainName Property
Gets and sets the value of the DomainName parameter of the Add-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 AddComputerCommand
Dim value As String
value = instance.DomainName
instance.DomainName = value
'Declaration
<ParameterAttribute(Position:=0, Mandatory:=True, ParameterSetName:="Domain")> _
<ValidateNotNullOrEmptyAttribute> _
<AliasAttribute(System.String[])> _
Public Property DomainName As String
[ParameterAttribute(Position=0, Mandatory=true, ParameterSetName="Domain")]
[ValidateNotNullOrEmptyAttribute]
[AliasAttribute(System.String[])]
public string DomainName { get; set; }
[ParameterAttribute(Position=0, Mandatory=true, ParameterSetName=L"Domain")]
[ValidateNotNullOrEmptyAttribute]
[AliasAttribute(System.String[])]
public:
property String^ DomainName {
String^ get ();
void set (String^ value);
}
/** @property */
public String get_DomainName ()
/** @property */
public void set_DomainName (String value)
public function get DomainName () : String
public function set DomainName (value : String)
A String object that contains the domain for the computer account.
This topic is included in this SDK for completeness only. For more information about this cmdlet, see Add-Computer in the Microsoft TechNet library.
For Help at the command line, type:
get-help add-computer
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
AddComputerCommand Class
AddComputerCommand Members
Microsoft.PowerShell.Commands Namespace