New-RASLogonHours

NAME

New-RASLogonHours

SYNOPSIS

Creates a new logon hours rule.

SYNTAX

New-RASLogonHours [Name]** (string) [[-SiteId] (uint)] [Description (string)] [Enabled (bool)] [(CommonParameters)]

DESCRIPTION

Creates a new logon hours rule.

PARAMETERS

Name (string)

The name of the target logon hours rule.

This must be the actual logon hours rule name used in the RAS Farm.

SiteId (uint)

Site ID in which to create the specified logon hours rule.

If the parameter is omitted, the Site ID of the Licensing Server will be used.

Enabled (bool)

Enable or disable the logon hours rule upon creation.

If the parameter is omitted, the logon hours rule is initialised as disabled.

Description (string)

A user-defined logon hours rule description.

(CommonParameters)

INPUTS

-none-

OUTPUTS

LogonHours

EXAMPLES

---------- EXAMPLE 1 ----------

New-RASLogonHours "My Logon Hours"

Creates a new logon hours rule with the specified name.

Last updated