RE: Bulk password reset?

srikantn_at_online.microsoft.com
Date: 06/10/04


Date: Thu, 10 Jun 2004 07:25:32 GMT


You could use dsquery user to query for the users and then pipe the info
into dsmod to change their passwords:
i.e to change the password for all users starting with the letter u in the
OU=test,DC=contoso,DC=com domain and force them to change password at next
logon:

c:>dsquery user ou=test,dc=contoso,dc=com -name u* | dsmod user -pwd test
-mustchpwd yes

HTH

Srikanth N
This posting is provided "AS IS" with no warranties, and confers no rights.



Relevant Pages

  • Re: Group password reset
    ... You can use dsquery to pipe the results to dsmod. ... best to try out on a couple test accounts first. ...
    (microsoft.public.security)
  • Re: Alphabetical Order
    ... a tab, then the non-space characters found in the search, then a newline. ... will miss people whose surnames have a space. ... dollar percent tilde pipe I pipe I percent tilde pipe I dollar ... dollar query 1 pipe I query 0 dollar ...
    (comp.sys.acorn.apps)
  • Re: user password group policy
    ... You can use dsquery piped into dsmod to modify this attribute of the ... dsquery user -stalepwd ... service accounts, ...
    (microsoft.public.windows.server.active_directory)
  • Re: Corrupted table or bug or..??
    ... > There were approx 75,000 rows returned by the query. ... > Does this OSQL test suggest that all is OK internally? ... I would pipe ... >>Rick Sawtell ...
    (microsoft.public.sqlserver.server)
  • Re: When do you most enjoy a bowl?
    ... Ngo Dinh Diem hath posted this query: ... a bowl the most-in the morning, afternoon, mid-afternoon, at 4 am in ... I smoke pretty much all through the day, but my favorite pipe of the ...
    (alt.smokers.pipes)