Windows Dev Center

RestartComputer Members

Activity to invoke the Microsoft.PowerShell.Management\Restart-Computer command in a workflow. Introduced in Windows PowerShell 3.0.

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

  Name Description
  RestartComputer Initializes a new instance of the RestartComputer class. Introduced in Windows PowerShell 3.0.
Top

(see also Protected Properties)
 NameDescription
public propertyAppendOutput  Determines whether to append output to the stream specified by the Result property. Introduced in Windows PowerShell 3.0. (Inherited from PipelineEnabledActivity)
public propertyDcomAuthenticationProvides access to the DcomAuthentication parameter. Introduced in Windows PowerShell 3.0.
public propertyDebug  Gets or sets a value that indicates whether to emit the debug output of the activity. Introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
public propertyDelayProvides access to the Delay parameter. Introduced in Windows PowerShell 3.0.
public propertystaticDisableSelfRestartIf true, then the workflow will not checkpoint and resume after the computer is restarted. Introduced in Windows PowerShell 3.0.
public propertyDisplayName  (Inherited from Activity)
public propertyErrorAction  Gets or sets how errors are handled by the activity. Introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
public propertyForProvides access to the For parameter. Introduced in Windows PowerShell 3.0.
public propertyForceProvides access to the Force parameter. Introduced in Windows PowerShell 3.0.
public propertyId  (Inherited from Activity)
public propertyImpersonationProvides access to the Impersonation parameter. Introduced in Windows PowerShell 3.0.
public propertyInput  The input stream for the activity. Introduced in Windows PowerShell 3.0. (Inherited from PipelineEnabledActivity)
public propertyMergeErrorToOutput  Gets or sets a value that indicates whether to merge error data to the output stream. Introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
public propertyProtocolProvides access to the Protocol parameter. Introduced in Windows PowerShell 3.0.
public propertyPSActionRetryCount  Gets or sets the number of times the activity retries execution of an action after encountering an execution error. Introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
public propertyPSActionRetryIntervalSec  Gets or sets the number of seconds to wait before retrying the action. Introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
public propertyPSActionRunningTimeoutSec  Gets or sets the number of seconds to wait before the action times out. Introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
public propertyPSCommandNameOverridden. Gets the fully qualified name of the command invoked by this activity. Introduced in Windows PowerShell 3.0.
public propertyPSComputerNameGets or sets the computer name to invoke this activity on. Introduced in Windows PowerShell 3.0.
public propertyPSCredentialGets or sets the credential to use in the remote connection. Introduced in Windows PowerShell 3.0.
public propertyPSDebug  Gets or sets the debug stream (or collection of streams) for the activity. Introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
public propertyPSDisableSerialization  Gets or sets a value that indicates whether to disable serialization for the activity. Introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
public propertyPSError  Gets or sets the error stream (or collection of streams) for the activity. Introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
public propertyPSPersist  Gets or sets a value that indicates whether to force the activity to persist the workflow state onto the disk. Introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
public propertyPSProgress  Gets or sets the progress stream (or collection of streams) for the activity. Introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
public propertyPSProgressMessage  Gets or sets the message in the progress stream. Introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
public propertyPSRequiredModules  Gets or sets the list of module names or paths that are required to run this activity successfully. Introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
public propertyPSVerbose  Gets or sets the verbose stream (or collection of streams) for the activity. Introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
public propertyPSWarning  Gets or sets the warning stream (or collection of streams) for the activity. Introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
public propertyResult  The output stream from the activity. Introduced in Windows PowerShell 3.0. (Inherited from PipelineEnabledActivity)
public propertySoftProvides access to the Soft parameter.This element is introduced in Windows PowerShell 5.0.
public propertyThrottleLimitProvides access to the ThrottleLimit parameter. Introduced in Windows PowerShell 3.0.
public propertyTimeoutProvides access to the Timeout parameter. Introduced in Windows PowerShell 3.0.
public propertyUseDefaultInput  Specifies whether to connect the input stream for this activity. Introduced in Windows PowerShell 3.0. (Inherited from PipelineEnabledActivity)
public propertyVerbose  Gets or sets a value that indicates whether to emit verbose output of the activity. Introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
public propertyWaitProvides access to the Wait parameter. Introduced in Windows PowerShell 3.0.
public propertyWarningAction  Gets or sets how warnings are handled by the activity. Introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
public propertyWsmanAuthenticationProvides access to the WsmanAuthentication parameter. Introduced in Windows PowerShell 3.0.
Top

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

(see also Protected Methods)
 NameDescription
public methodEquals  (Inherited from Object)
public methodGetHashCode  (Inherited from Object)
public methodGetType  (Inherited from Object)
public methodShouldSerializeDisplayName  (Inherited from Activity)
public methodToString  Overridden. (Inherited from Object)
Top

(see also Extension Methods)
 NameDescription
protected methodAbort  (Inherited from NativeActivity)
protected methodActivityEndPersistence  When overridden in a derived class, ends the persistence of the Windows PowerShell activity. Introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
protected methodCacheMetadata  Overridden. Retrieves the stream and ubiquitous parameter information from the hosting application. Introduced in Windows PowerShell 3.0. (Inherited from NativeActivity)
protected methodCacheMetadata  Overridden. (Inherited from Activity)
protected methodCancel  Overridden. Cancels the running activity. Introduced in Windows PowerShell 3.0. (Inherited from NativeActivity)
protected methodExecute  Overridden. Begins the execution of the activity. Introduced in Windows PowerShell 3.0. (Inherited from NativeActivity)
protected methodFinalize  (Inherited from Object)
protected methodGetActivityArguments  Retrieves the list of arguments for the activity. Introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
protected methodGetImplementation  When overridden in a derived class, implements any functionality that is specific to a command type. Introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
protected methodGetPowerShell  When overridden in a derived class, retrieves a configured instance of PowerShell. Introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
protected methodGetRunInProc  Determines whether this activity should be run in or out of process when run locally. Introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
protected methodMemberwiseClone  (Inherited from Object)
protected methodOnCreateDynamicUpdateMap  (Inherited from NativeActivity)
protected methodOnCreateDynamicUpdateMap  Overridden. (Inherited from Activity)
protected methodPrepareSession  When overridden in a derived class, customizes the runspace of a PowerShell instance that the runtime has prepared for it. Introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
protected methodUpdateInstance  (Inherited from NativeActivity)
protected methodWriteProgressRecord  Writes a progress record for the current activity. Introduced in Windows PowerShell 3.0. (Inherited from PSActivity)
Top

  Name Description
public extension method As  Use this method to adapt an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  This is called to adapt an object from a foreign app domain to a known interface in this appDomainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  Adapts an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  Use this method to adapt and extend an object so that you can pass it to a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  This is called to adapt and extend an object that we wish to pass to a foreign app domainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  Used to extend an object with an interface from a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method ToEnumerable  This element is introduced in Windows PowerShell 5.0. (Defined by CollectionExtensions.)
Top


Show:
© 2015 Microsoft