Category Archives: Active Directory

Powershell function for gathering users in groups

A friend of mine asked me a couple of days ago if I knew a way to gather users who are members of given groups. I thought to myself “Hmm, challenge accepted!” and started writing a small powershell script. After … Continue reading

Posted in Active Directory, Microsoft, Powershell Tagged , , ,

“The given Key was not present in the dictionary” error when running Group Policy Modeling

I ran into a rather strange error today when trying to run Group Policy Modeling on a user. Instead of showing me Summary and Settings I received an error stating that The given Key was not present in the dictionary. At … Continue reading

Posted in Active Directory, Microsoft Tagged , , , ,

Function for adding photo in Active Directory

I have always been careful to avoid the really advanced and cool stuff in Powershell, like functions, arrays and such. But as I created the last script it hit me that it would be really cool to have it in … Continue reading

Posted in Active Directory, Microsoft, Powershell Tagged , , ,

Simple script for adding user photo in Active Directory

It’s been a while since I posted here so I thought it might be time to add some content. This script is a simple script that adds a photo to a user’s active directory user object. It also checks the … Continue reading

Posted in Active Directory, Microsoft, Powershell Tagged , ,

Mass import of users in Active Directory v2 – Powershell time

Earlier I posted a script that created users and homefolders and added the users to specified groups. It also set ntfs permissions on the homefolders. That script used primarily old fashioned stuff, so I sat down and started looking for … Continue reading

Posted in Active Directory, Exchange, Microsoft, Powershell Tagged , , ,

Mass import of users in Active Directory

Tried sleeping……That obviously didn’t work out, so here’s a guide on how to import a number of users in Active Directory and then creating and sharing out their home folder. Note: This guide uses dsadd for creating users and cacls … Continue reading

Posted in Active Directory, Microsoft Tagged , , , , ,

ALTools from Microsoft, awesome!

Stumbled upon a tool from Microsoft called ALTools that I thought were absolutely awesome. It’s over 7 years old so I wonder why I haven’t seen it before Nevertheless it’s as cool now as it was when it was released. … Continue reading

Posted in Active Directory, Microsoft Tagged , ,