locked
How do I find RRS feed

  • Question

  • Hello

    This is the 1st time using power shell. I have managed to use it to restrict the time and day a generic account can logon. The issue is more for my own interest is where does power-shell save it by default?

    This is on a windows 10 machine.

    Thursday, January 17, 2019 4:44 PM

All replies

  • The logonHours attribute of the user. It is a byte array of 21 bytes (168 bits), one bit for every hour of every day of the week. If the bit is 1, the user is allowed to logon, if 0 they are not.

    Richard Mueller - MVP Enterprise Mobility (Identity and Access)



    Thursday, January 17, 2019 4:48 PM
  • Hi,

    Was your issue resolved?

    If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.

    If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.

    If no, please reply and tell us the current situation in order to provide further help.

    Best Regards,

    Lee


    Just do it.

    Tuesday, January 22, 2019 6:34 AM