September 2010
S M T W T F S
« Aug    
 1234
567891011
12131415161718
19202122232425
2627282930  

Thomas' Photography

Turkey - IstanbulMardi GrasSpain - GranadaAquariumKidsOrlandoSpain - BarcelonaFamily - Mi FamiliaJamieFrench QuarterStephen at ZooSpainCemeteriesPatel ChristeningFeatured Photography

Remove Old Computer Accounts

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. [...]

Get Disabled Users and When They Were Modified Last

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 [...]

PowerShell Script to Reset Home Directory Permissions

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 [...]

PowerShell Find and Delete Old Computer Accounts

   
 

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 [...]