# RestartComputer Members

Activity to invoke the Microsoft.PowerShell.Management\Restart-Computer command in a workflow. This SDK programming element is introduced in Windows PowerShell 3.0.

The following tables list the members exposed by the RestartComputer type.

## Public Constructors

Name Description
RestartComputer Initializes a new instance of the RestartComputer class. This SDK programming element is introduced in Windows PowerShell 3.0.
Top

## Public Properties

NameDescription
AppendOutput  Determines whether to append output to the stream specified by the Result property. This SDK programming element is introduced in Windows PowerShell 3.0. (Inherited from PipelineEnabledActivity)
DcomAuthenticationProvides access to the DcomAuthentication parameter. This SDK programming element is introduced in Windows PowerShell 3.0.
Debug  Gets or sets a value that indicates whether to emit the debug output of the activity. This SDK programming element is introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
DelayProvides access to the Delay parameter. This SDK programming element is introduced in Windows PowerShell 3.0.
DisableSelfRestartGets or sets a value that indicates whether self-restarting is blocked. This SDK programming element is introduced in Windows PowerShell 3.0.
DisplayName  (Inherited from Activity)
ErrorAction  Gets or sets how errors are handled by the activity. This SDK programming element is introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
ForProvides access to the For parameter. This SDK programming element is introduced in Windows PowerShell 3.0.
ForceProvides access to the Force parameter. This SDK programming element is introduced in Windows PowerShell 3.0.
Id  (Inherited from Activity)
ImpersonationProvides access to the Impersonation parameter. This SDK programming element is introduced in Windows PowerShell 3.0.
Input  The input stream for the activity. This SDK programming element is introduced in Windows PowerShell 3.0. (Inherited from PipelineEnabledActivity)
MergeErrorToOutput  Gets or sets a value that indicates whether to merge error data to the output stream. This SDK programming element is introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
ProtocolProvides access to the Protocol parameter. This SDK programming element is introduced in Windows PowerShell 3.0.
PSActionRetryCount  Gets or sets the number of times the activity retries execution of an action after encountering an execution error. This SDK programming element is introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
PSActionRetryIntervalSec  Gets or sets the number of seconds to wait before retrying the action. This SDK programming element is introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
PSActionRunningTimeoutSec  Gets or sets the number of seconds to wait before the action times out. This SDK programming element is introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
PSCommandNameOverridden. Gets the fully qualified name of the command invoked by this activity. This SDK programming element is introduced in Windows PowerShell 3.0.
PSComputerNameGets or sets the computer name to invoke this activity on. This SDK programming element is introduced in Windows PowerShell 3.0.
PSCredentialGets or sets the credential to use in the remote connection. This SDK programming element is introduced in Windows PowerShell 3.0.
PSDebug  Gets or sets the debug stream (or collection of streams) for the activity. This SDK programming element is introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
PSDisableSerialization  Gets or sets a value that indicates whether to disable serialization for the activity. This SDK programming element is introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
PSError  Gets or sets the error stream (or collection of streams) for the activity. This SDK programming element is introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
PSPersist  Gets or sets a value that indicates whether to force the activity to persist the workflow state onto the disk. This SDK programming element is introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
PSProgress  Gets or sets the progress stream (or collection of streams) for the activity. This SDK programming element is introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
PSProgressMessage  Gets or sets the message in the progress stream. (Inherited from PSActivity)
PSRequiredModules  Gets or sets the list of module names or paths that are required to run this activity successfully. This SDK programming element is introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
PSVerbose  Gets or sets the verbose stream (or collection of streams) for the activity. This SDK programming element is introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
PSWarning  Gets or sets the warning stream (or collection of streams) for the activity. This SDK programming element is introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
Result  The output stream from the activity. This SDK programming element is introduced in Windows PowerShell 3.0. (Inherited from PipelineEnabledActivity)
ThrottleLimitProvides access to the ThrottleLimit parameter. This SDK programming element is introduced in Windows PowerShell 3.0.
TimeoutProvides access to the Timeout parameter. This SDK programming element is introduced in Windows PowerShell 3.0.
UseDefaultInput  Specifies whether to connect the input stream for this activity. This SDK programming element is introduced in Windows PowerShell 3.0. (Inherited from PipelineEnabledActivity)
Verbose  Gets or sets a value that indicates whether to emit verbose output of the activity. This SDK programming element is introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
WaitProvides access to the Wait parameter. This SDK programming element is introduced in Windows PowerShell 3.0.
WarningAction  Gets or sets how warnings are handled by the activity. This SDK programming element is introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
WsmanAuthenticationProvides access to the WsmanAuthentication parameter. This SDK programming element is introduced in Windows PowerShell 3.0.
Top

## Protected Properties

Name Description
CanInduceIdle  Overridden. Gets a value that indicates whether the activity can be idle. (Inherited from NativeActivity)
Constraints  (Inherited from Activity)
DefiningModule  Gets the name of the module that an activity needs to load before it can execute. (Inherited from PSActivity)
Implementation  Overridden. (Inherited from Activity)
ParameterDefaults  Gets or sets the parameter defaults. (Inherited from PSActivity)
PSDefiningModule  Gets the module that defines the command called by this activity. (Inherited from PSActivity)
UpdatePreferenceVariable  Gets a value that indicates whether preference variables are updated. (Inherited from PSActivity)
Top

## Public Methods

NameDescription
Equals  (Inherited from Object)
GetHashCode  (Inherited from Object)
GetType  (Inherited from Object)
ShouldSerializeDisplayName  (Inherited from Activity)
ToString  Overridden. (Inherited from Object)
Top

## Protected Methods

Name Description
Abort  (Inherited from NativeActivity)
ActivityEndPersistence  When overridden in a derived class, ends the persistence of the Windows PowerShell activity. (Inherited from PSActivity)
CacheMetadata  Overridden. Retrieves the stream and ubiquitous parameter information from the hosting application. (Inherited from NativeActivity)
Cancel  Overridden. Cancels the running activity. (Inherited from NativeActivity)
Execute  Overridden. Begins the execution of the activity. (Inherited from NativeActivity)
Finalize  (Inherited from Object)
GetActivityArguments  Retrieves the list of arguments for the activity. (Inherited from PSActivity)
GetImplementation  When overridden in a derived class, implements any functionality that is specific to a command type. (Inherited from PSActivity)
GetPowerShell  When overridden in a derived class, retrieves a configured instance of PowerShell. (Inherited from PSActivity)
GetRunInProc  Determines whether this activity should be run in or out of process when run locally. (Inherited from PSActivity)
MemberwiseClone  (Inherited from Object)
OnCreateDynamicUpdateMap  (Inherited from NativeActivity)
OnCreateDynamicUpdateMap  Overridden. (Inherited from Activity)
PrepareSession  When overridden in a derived class, customizes the runspace of a PowerShell instance that the runtime has prepared for it. (Inherited from PSActivity)
UpdateInstance  (Inherited from NativeActivity)
WriteProgressRecord  Writes a progress record for the current activity. (Inherited from PSActivity)
Top