< Back
WindowsComputerRestart
Post
NAME WindowsComputerRestart
SYNOPSIS
Autonance DSL task to restart a Windows computer.
SYNTAX
WindowsComputerRestart [-ComputerName] <String> [-Credential <PSCredential>] [-Count <Int32>] [-Delay <Int32>]
[<CommonParameters>]
DESCRIPTION
The WindowsComputerRestart task is part of the Autonance domain-specific
language (DSL). The task will restart the specified Windows computer using
WinRM. A user account can be specified with the Credential parameter.
PARAMETERS
-ComputerName <String>
This task restarts the specified Windows computer.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Credential <PSCredential>
Specifies a user account that has permission to perform the task.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Count <Int32>
Specifies the number of retries between computer state tests.
Required? false
Position? named
Default value 120
Accept pipeline input? false
Accept wildcard characters? false
-Delay <Int32>
Specifies the interval between computer state tests.
Required? false
Position? named
Default value 5
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
Author : Claudio Spizzi
License : MIT License
RELATED LINKS
https://github.com/claudiospizzi/Autonance
SYNOPSIS
Autonance DSL task to restart a Windows computer.
SYNTAX
WindowsComputerRestart [-ComputerName] <String> [-Credential <PSCredential>] [-Count <Int32>] [-Delay <Int32>]
[<CommonParameters>]
DESCRIPTION
The WindowsComputerRestart task is part of the Autonance domain-specific
language (DSL). The task will restart the specified Windows computer using
WinRM. A user account can be specified with the Credential parameter.
PARAMETERS
-ComputerName <String>
This task restarts the specified Windows computer.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Credential <PSCredential>
Specifies a user account that has permission to perform the task.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Count <Int32>
Specifies the number of retries between computer state tests.
Required? false
Position? named
Default value 120
Accept pipeline input? false
Accept wildcard characters? false
-Delay <Int32>
Specifies the interval between computer state tests.
Required? false
Position? named
Default value 5
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
Author : Claudio Spizzi
License : MIT License
RELATED LINKS
https://github.com/claudiospizzi/Autonance