< Back

WindowsComputerShutdown

Sat Jan 11, 2020 4:15 am

NAME WindowsComputerShutdown



SYNOPSIS

Autonance DSL task to shutdown a Windows computer.





SYNTAX

WindowsComputerShutdown [-ComputerName] <String> [-Credential <PSCredential>] [-Count <Int32>] [-Delay <Int32>]

[<CommonParameters>]





DESCRIPTION

The WindowsComputerShutdown task is part of the Autonance domain-specific

language (DSL). The task will shutdown the specified Windows computer. A

user account can be specified with the Credential parameter.





PARAMETERS

-ComputerName <String>

This task stops 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 720

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