Recent Tweets by Zeaun

Active Directory

Active Directory Photos

A client recently asked me about populating the Photo fields in Outlook and Lync.  I had already set them up with an internal file share for photos, but he was hoping for a way to store the photos in Active Directory instead.

Of course my first instinct was to prepare a PowerShell script for him with a nice GUI interface so he could import the photo, and populate a custom attribute in AD.

Fortunately I instead did a bit of looking around to see how others have tackled the issue recently and I cam across the CodeTwo Active Directory Photos… Continue reading

Change All User Passwords In The Domain

So you have an Active Directory domain and you, for some reason, want to reset everyone’s password to a default value?

This is easier said than done, and only requires one simple command chain. Here you go:

1) Make sure that you are running this on a Domain Controller, or on a computer with the Remote Server Administration Tools installed, and are logged in with a domain admin account.
2) Open a command prompt
3) Type the following:

dsquery user -limit 999 | dsmod user -pwd thenewpassword

And that’s it. This works on every edition of Microsoft’s Windows Server line,… Continue reading