Get-RASLogonHours
NAME
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.
PARAMETERS
Name (string)
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.
Required? false
Position? 0
Default value
Accept pipeline input? false
Accept wildcard characters? false
SiteId (uint)
Site ID from which to retrieve the logon hours rule information.
If the parameter is omitted, the Licensing Server Site ID will be used.
Required? false
Position? 1
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
Id (uint)
The ID of a logon hours rule for which to retrieve the information.
Required? false
Position? 0
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
(CommonParameters)
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters documentation.
INPUTS
-none-
OUTPUTS
EXAMPLES
**---------- EXAMPLE 1 ----------
Get-RASLogonHours "My Logon Hours" | Format-List
Retrieves 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 ----------
Get-RASLogonHours -Id 10
Retrieves information about the logon hours rule specified by ID from the Licensing Server Site.
RELATED LINKS
Last updated