# Limit what the account can logon to an hours accessed

1. In Active Directory find a user by selecting action > find an new window will popup where you can search for users
2. once you have selected the user go into the account tab you will see two buttons "Logon hours" and "Log on to"
   1. Logon hours: select the hours a user can access computers&#x20;
   2. log on to: set the user to only be allowed to logon to a certain computer(s)

<figure><img src="https://2273033137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGlSezkssK5aHdG6Al3xJ%2Fuploads%2FPL2eJkWxCm5JenbhR8oZ%2Fad-user-account-properties.png.webp?alt=media&#x26;token=b60d43ef-7144-4688-90e2-a7c5404f4bf0" alt=""><figcaption></figcaption></figure>

## Log On To Button

1. when selecting "Log on to" under computer name add the device name of the pc or whatever your naming scheme is and hit add, now user should only be able to logon that one pc

<figure><img src="https://2273033137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGlSezkssK5aHdG6Al3xJ%2Fuploads%2File4tfEFrIoG6dWsRXCJ%2Fad-user-property-logon-workstations-option.png.webp?alt=media&#x26;token=2cb7305f-9eee-43b5-9a8b-e1441ea42af0" alt=""><figcaption></figcaption></figure>

{% embed url="<http://woshub.com/restrict-workstation-logon-ad-users/>" %}

## Logon Hours Button

1. After clicking the logon hours button it shows you the window below
   1. All blue is logon permited
   2. All White is logon denied
2. in this image user is only allowed to sign in anyday of the week from 12am-9am and block at any other time

<figure><img src="https://2273033137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGlSezkssK5aHdG6Al3xJ%2Fuploads%2FoCSCameCR9nzl9Fmhneo%2FPermitted-logon-days-and-hours.png?alt=media&#x26;token=c628afa8-4a53-4765-9231-ee224ed2752f" alt=""><figcaption></figcaption></figure>

{% embed url="<https://4sysops.com/archives/restrict-logon-time-for-active-directory-users/>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://baric6.gitbook.io/barics-knowledge-base/it-help/windows/limit-what-the-account-can-logon-to-an-hours-accessed.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
