New-RASLogonHours
Creates a new logon hours rule.
New-RASLogonHours [-Name] <string> [[-SiteId] <uint>] [-Description <string>] [-Enabled <bool>] [<CommonParameters>]
Creates a new logon hours rule.
-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>
-none-
---------- EXAMPLE 1 ----------
New-RASLogonHours "My Logon Hours"
Creates a new logon hours rule with the specified name.