Export (0) Print
Expand All

RestartServiceCommand Class

The Restart-Service cmdlet class that is implemented by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.


Namespace: Microsoft.PowerShell.Commands
Assembly: Microsoft.PowerShell.Commands.Management (in Microsoft.PowerShell.Commands.Management.dll)

'Usage
Dim instance As RestartServiceCommand

[OutputTypeAttribute(System.Compiler.TypeNode[])] 
[CmdletAttribute("Restart", "Service", DefaultParameterSetName="InputObject", SupportsShouldProcess=true, HelpUri="http://go.microsoft.com/fwlink/?LinkID=113385")] 
public sealed class RestartServiceCommand : ServiceOperationBaseCommand
/** @attribute OutputTypeAttribute(System.Compiler.TypeNode[]) */ 
/** @attribute CmdletAttribute("Restart", "Service", DefaultParameterSetName="InputObject", SupportsShouldProcess=true, HelpUri="http://go.microsoft.com/fwlink/?LinkID=113385") */ 
public final class RestartServiceCommand extends ServiceOperationBaseCommand
OutputTypeAttribute(System.Compiler.TypeNode[]) 
CmdletAttribute("Restart", "Service", DefaultParameterSetName="InputObject", SupportsShouldProcess=true, HelpUri="http://go.microsoft.com/fwlink/?LinkID=113385") 
public final class RestartServiceCommand extends ServiceOperationBaseCommand

This cmdlet stops and then starts one or more services. For more information about this cmdlet, see Restart-Service in the Microsoft TechNet library.

For Help at the command line, type:

PS>get-help restart-service


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Target Platforms


Show:
© 2015 Microsoft