Share via


AddComputerCommand.Server Property

Gets and sets the value of the Server 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

'Usage
Dim instance As AddComputerCommand
Dim value As String

value = instance.Server

instance.Server = value

Syntax

'Declaration
<AliasAttribute(System.String[])> _
<ParameterAttribute(ParameterSetName:="Domain")> _
<ValidateNotNullOrEmptyAttribute> _
Public Property Server As String
[AliasAttribute(System.String[])] 
[ParameterAttribute(ParameterSetName="Domain")] 
[ValidateNotNullOrEmptyAttribute] 
public string Server { get; set; }
[AliasAttribute(System.String[])] 
[ParameterAttribute(ParameterSetName=L"Domain")] 
[ValidateNotNullOrEmptyAttribute] 
public:
property String^ Server {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_Server ()

/** @property */
public void set_Server (String value)
public function get Server () : String

public function set Server (value : String)

Property Value

A String object that contains the name of a domain controller that adds the computer to the domain.

Remarks

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

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

Target Platforms

See Also

Reference

AddComputerCommand Class
AddComputerCommand Members
Microsoft.PowerShell.Commands Namespace

Other Resources

Windows PowerShell SDK