Share via


StopComputerCommand.Impersonation Property

Gets and sets the value of the Impersonation parameter of the Stop-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 StopComputerCommand
Dim value As ImpersonationLevel

value = instance.Impersonation

instance.Impersonation = value

Syntax

'Declaration
<ParameterAttribute> _
Public Property Impersonation As ImpersonationLevel
[ParameterAttribute] 
public ImpersonationLevel Impersonation { get; set; }
[ParameterAttribute] 
public:
property ImpersonationLevel Impersonation {
    ImpersonationLevel get ();
    void set (ImpersonationLevel value);
}
/** @property */
public ImpersonationLevel get_Impersonation ()

/** @property */
public void set_Impersonation (ImpersonationLevel value)
public function get Impersonation () : ImpersonationLevel

public function set Impersonation (value : ImpersonationLevel)

Property Value

A ImpersonationLevel constant that identifies the impersonation level to use when calling WMI.

Remarks

This topic is included in this SDK for completeness only. For more information about this cmdlet, see Stop-Computer in the Microsoft TechNet library.

For Help at the command line, type:

get-help stop-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

StopComputerCommand Class
StopComputerCommand Members
Microsoft.PowerShell.Commands Namespace

Other Resources

Windows PowerShell SDK