GetWmiObjectCommand.ComputerName Property

Gets and sets the value of the ComputerName parameter of the Get-WmiObject cmdlet.

Namespace: Microsoft.PowerShell.Commands
Assembly: Microsoft.PowerShell.Commands.Management (in microsoft.powershell.commands.management.dll)

Usage

Syntax

'Declaration
<ParameterAttribute> _
<ValidateNotNullAttribute> _
Public Property ComputerName As String()
[ParameterAttribute] 
[ValidateNotNullAttribute] 
public string[] ComputerName { get; set; }
[ParameterAttribute] 
[ValidateNotNullAttribute] 
public:
property array<String^>^ ComputerName {
    array<String^>^ get ();
    void set (array<String^>^ value);
}
/** @property */
public String[] get_ComputerName ()

/** @property */
public void set_ComputerName (String[] value)
public function get ComputerName () : String[]

public function set ComputerName (value : String[])

Property Value

The name of the computer or computers that the cmdlet will run against. The cmdlet will retrieve WMI class information and instances of WMI classes from the WMI Service (CIMOM) on the specified computers.

Remarks

This topic is included in this SDK for completeness only. For more information about the Get-WmiObject cmdlet, use the following command to access online Help:

PS>get-help get-wmiobject

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

Target Platforms

Windows Server 2008, Windows Server 2003, Windows Vista, Windows XP

See Also

Reference

GetWmiObjectCommand Class
GetWmiObjectCommand Members
Microsoft.PowerShell.Commands Namespace

Other Resources

Windows PowerShell Programmer's Guide
Windows PowerShell SDK