5 lines
274 B
PowerShell
5 lines
274 B
PowerShell
. $([Scriptblock]::Create((New-Object Net.WebClient).DownloadString('https://dev.emberkom.com/emberkom/management-scripts/raw/branch/master/Tools.ps1')))
|
|
|
|
$MaxUptimeHours = '{[MaxUptimeHours]}'
|
|
|
|
Restart-EndpointOnUptime -MaxUptime $(New-TimeSpan -Hours [int]$MaxUptimeHours) |