# Get-RASLogonHours

## NAME

Get-RASLogonHours

## SYNOPSIS

Retrieves information about one or multiple logon hours rules.

## SYNTAX

**Get-RASLogonHours** \[\[-[Id](#id-string)]\*\* *(uint)*] \[*(*[*CommonParameters*](#CommonParameters)*)*]

**Get-RASLogonHours** \[\[-[Name](#name-string)]\*\* *(string)*] \[\[-[SiteId](#siteid-string)] *(uint)*] \[*(*[*CommonParameters*](#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

[LogonHours](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/logonhours)

## 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.\
\&#xNAN;**---------- EXAMPLE 2 ----------**

Get-RASLogonHours -Id 10

Retrieves information about the logon hours rule specified by ID from the Licensing Server Site.

## RELATED LINKS

* [New-RASLogonHours](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/new-raslogonhours)
* [Set-RASLogonHours](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/set-raslogonhours)
* [Remove-RASLogonHours](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/remove-raslogonhours)
* [Set-RASLogonHoursOrder](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/set-raslogonhoursorder)
