GetWmiObjectCommand.Credential Property
Gets and sets the value of the Credential 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> _
<CredentialAttribute> _
Public Property Credential As PSCredential
[ParameterAttribute]
[CredentialAttribute]
public PSCredential Credential { get; set; }
[ParameterAttribute]
[CredentialAttribute]
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 contains security information used to authenticate the user.
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