I thought Active Directory and its components were server only.
c7c4c7
ASKER
The code supplied
$usr=[ADSI]'WinNT://localhost/TheUserLogonName'
$usr.passwordExpired = 1
$usr.setinfo()
On Win 7 Pro although it does not flag any error does not require the user to reset their password, I did replace the TheUserLogonName with the correct user name.
http://powershell.com/cs/forums/t/15101.aspx
Will.