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.
EXAMPLES
Example 1
New-RASLogonHours "My Logon Hours"Creates a new logon hours rule with the specified name.
PARAMETERS
-Name
The name of the target logon hours rule.
This must be the actual logon hours rule name used in the RAS Farm.
-SiteId
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
Enable or disable the logon hours rule upon creation.
If the parameter is omitted, the logon hours rule is initialised as disabled.
-Description
A user-defined logon hours rule description.
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
None
OUTPUTS
LogonHours
RELATED LINKS
Last updated