public/Stop-FreeNasSystem.ps1
<# .SYNOPSIS Shutdown your FreeNas server. .DESCRIPTION Shutdown your FreeNas server. .EXAMPLE PS C:\> Stop-FreeNasSystem #> function Stop-FreeNasSystem { Param( ) $Uri = "api/v1.0/system/shutdown/" $results = Invoke-FreeNasRestMethod -Uri $Uri -Method Post return $results } |