Condividi tramite


RestartComputerCommand.ComputerName Property

Definition

Specifies the computer (s)Name on which this command is executed. When this parameter is omitted, this cmdlet restarts the local computer. Type the NETBIOS name, IP address, or fully-qualified domain name of one or more computers in a comma-separated list. To specify the local computer, type the computername or "localhost".

public:
 property cli::array <System::String ^> ^ ComputerName { cli::array <System::String ^> ^ get(); void set(cli::array <System::String ^> ^ value); };
public:
 property Platform::Array <Platform::String ^> ^ ComputerName { Platform::Array <Platform::String ^> ^ get(); void set(Platform::Array <Platform::String ^> ^ value); };
public string[] ComputerName { get; set; }
[System.Management.Automation.Alias(new System.String[] { "CN", "__SERVER", "Server", "IPAddress" })]
[System.Management.Automation.Parameter(Position=0, ValueFromPipeline=true, ValueFromPipelineByPropertyName=true)]
[System.Management.Automation.ValidateNotNullOrEmpty]
public string[] ComputerName { get; set; }
member this.ComputerName : string[] with get, set
[<System.Management.Automation.Alias(new System.String[] { "CN", "__SERVER", "Server", "IPAddress" })>]
[<System.Management.Automation.Parameter(Position=0, ValueFromPipeline=true, ValueFromPipelineByPropertyName=true)>]
[<System.Management.Automation.ValidateNotNullOrEmpty>]
member this.ComputerName : string[] with get, set
Public Property ComputerName As String()

Property Value

String[]
Attributes

Applies to