Usually this is done with account restrictions in Active Directory or even a
GPO. Or are you trying to read a list of users from a text file and make
the change to the user account?
--
Jeffery Hicks
Microsoft PowerShell MVP
http://www.scriptinganswers.com
http://www.powershellcommunity.org
Now Available: WSH and VBScript Core: TFM
Coming Soon: Windows PowerShell: TFM 2nd Ed.
"Gustavo" <Gustavo@discussions.microsoft.com> wrote in message
news

FD3C9D1-CD52-4896-882F-7C247B5A414C@microsoft.com...
> Hello scritpting guys:
>
> I need your again, I need to set the limit user logon time, but
> reading
> from a txt or csv file, I found this code from Richard, I think it's ok,
> but
> I need to reed it from a txt file.
>
> I hope you can me.