We recently upgraded to Windows 2008R2 Native Mode. As a result we now have a lot of PowerShell functionality in AD without using the Quest cmdlets. They were great while we needed them but I like having the native functionality.
I blogged about how to do this from the command line using dsquery and dsrm here. [...]
My company has been under a data hold for a period of time now. I’m not sure if every company is like this, but our people like to retain literally EVERYTHING! Over the past few years this has caused all our methods of storing data to explode. We have recently gotten the clearance to remove [...]
It’s official – I’ve installed a Windows 2008 R2 AD Server in production. I’ve had it running at home for awhile now. I have not had any real data to work with so my experience has been somewhat limited. There are real advantages to having old data/users/groups/email when trying to write some data specific scripts [...]
There are times we have servers on the network and we don’t remember exactly what they are for or who set them up. Having the computer description in AD and in the properties of the servers helps out, however they are not synchronized so it’s possible to have different descriptions in both places. This script [...]
This is one of those “Clean up AD” projects. We needed to find all the user accounts that don’t have managers assigned to them along with other contact information. It’s not hard but I like to have it available to see whenever I need it…
get-qaduser -ObjectAttribute @{manager=””} -sizelimit 0 | sort| ft name,phone,email
This is turning into my PowerShell notebook but I’m finding some good applications and don’t want to forget or lose, so here’s another one.
It searches AD in the domain and OU specified for users that do not have NULL values for the homeDirectory and sorts by when they were changed last. Seems to work unless [...]
We had something happen at work and all the user home directory permissions were totally reconfigured. This meant that every user was able to read ever other user’s home directories. Not a good thing!
Over time and various fileserver migrations these permissions have been mangled and I have wanted to write a script to reset all [...]
 Â
Â
I am trying to find all the inactive computer accounts in the domain. I am making a point of using PowerShell to accomplish this so I can reuse the code and I figure that I will need to learn some pretty nifty skills to accomplish this.
I am currently running this:
get-qadcomputer -sizelimit 0 [...]
Recent Comments