Get-RASLogonHours
SYNOPSIS
Retrieves information about one or multiple logon hours rules.
SYNTAX
Get-RASLogonHours [[-Id] <uint>] [<CommonParameters>]Get-RASLogonHours [[-Name] <string>] [[-SiteId] <uint>] [<CommonParameters>]DESCRIPTION
The cmdlet returns an object of the type logon hours rule.
To see the complete list of object properties, use the Format-List cmdlet (see examples).
The result set contains only the major properties of a group; it does not include the complete list of settings supported in RAS.
EXAMPLES
Example 1
Get-RASLogonHours "My Logon Hours" | Format-ListRetrieves information about the logon hours rule specified by name from the Licensing Server Site.
To retrieve the info from a specific Site, specify the -SiteId parameter.
The Format-List cmdlet formats the display output to include all available group properties.
Example 2
Retrieves information about the logon hours rule specified by ID from the Licensing Server Site.
PARAMETERS
-Name
The name of the logon hours rule for which to retrieve the information.
This must be the actual logon hours rule name used in the RAS Farm.
-SiteId
Site ID from which to retrieve the logon hours rule information.
If the parameter is omitted, the Licensing Server Site ID will be used.
-Id
The ID of a logon hours rule for which to retrieve the information.
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