February 2010
S M T W T F S
« Nov    
 123456
78910111213
14151617181920
21222324252627
28  

Google Ads

Thomas' Photography

JamieCemeteriesSpainKids

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. That solution works very well, however I have other PS scripts I would like to integrate this with so I did it now natively in PS.

$date = [DateTime]::Today.AddDays(-90); Get-ADComputer -Filter ‘PasswordLastSet -lt $date’ -Properties PasswordLastSet | sort Name | remove-adobject -confirm:$false –Recursive

 

I pulled this from the PowerShell AD blog I think so I have to give them original credit. I made slight modifications for my environment…

Updates & Changes

I know I have at least three friends that are not on Facebook for one reason or another. Those people may be unaware that I have started to get a little more serious about my photography. I am start to book jobs and am trying to get a little income out of the deal. I will need to rework the look of my blog and my website to put forth a more professional image that will be required.

I will be removing the current pictures from my homepage and will be redoing the page to be more like a gallery of work. Every piece of work that I will be putting up will be copyrighted, so if you want to use it ASK or you can buy a print. Remember this is a business and I need to treat it as such. I will still have my blog (we all need someplace to rant) and will continue to blog as I feel the need.

маси

I am currently working to become much better so please offer your opinions - even if you think I would not like them, I need the constructive criticism. I am currently studying under some very talented photographers and truly appreciate the input from all sides.

Remove old users with PowerShell v2

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 the users and their related data from the systems so long as they are not related to the hold order. Here is the situation and criteria:

  • Users must be >= 30 days terminated
  • User account must be disabled
  • extensionAttribute10 = NULL

I am using the ‘extensionAttribute10′ as the place to ensure that we don’t delete users that should be retained. I set this to various things depending on the reason we are retaining the specific account and related data.

I have put in place a two step process that will verifying and allow for saving a user account a week before it’s to be removed from the system. The first script will run and query AD for the user accounts that have been specified using the criteria above. I am currently dumping this to a CSV file so it’s easy to look at; I eventually want to email the manager of the former employee a form letter notifying them of the impending deletion.

$ThirtyDaysAgo = (Get-Date).Subtract((New-TimeSpan -Days 10))

$users = (Get-ADUser -Filter { (enabled -eq “False”) -and ( extensionAttribute10 -notlike “*” ) -and ( Modified -lt $ThirtyDaysAgo )} -property * | select-object -property Name, Description, modified, extensionAttribute10, DistinguishedName | sort-object Name)

$users | export-csv c:\temp\UserDel.csv

foreach($user in $users) {

set-aduser -Identity $user.DistinguishedName -replace @{extensionAttribute10 = “False”} -whatif

}

The second will then remove those accounts and home directories when it is set to run.

$users = Get-ADUser -Filter { (enabled -eq “False”) -and (extensionAttribute10 -eq “False”) } -Properties *

foreach ($user in $users) {

write-host $user.name

remove-item $user.homedirectory -force -recurse –whatif

remove-aduser -Identity $user.distinguishedname -whatif

}

There is a lot of improvement to be made here, but I wanted to post this to see if anyone had any suggestions or questions.

I’m sure someone is wondering about the Exchange mailbox. We are still using Exchange 2003 and so there is no PowerShell management of the mailboxes. We have decided that since this is a new process and is still getting updated, it would be best to abandon the mailbox and allow Exchange to clean up after 30 days. This way if there was something missed we could restore the user data from backup and just re-attach the mailbox to the new/old user account. This will change when we migrate to Exchange 2010, but by then the process will be solid and we shouldn’t have any issues.

 

Windows 2008 R2 Impressions

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 or determine how things “fit”. If anyone knows how to generate this for an AD domain, please let me know.

I’ve posted a few powershell scripts using Quest’s cmdlets – they won’t work with the native R2 cmdlets… I’m going to need to rewrite them and repost, annoying but it will help me getting up to speed and shouldn’t take too long, depending on the amount of uninterrupted time I can spend.

The ‘Active Directory Administrative Center’ is a hit – I haven’t gotten too deep, however I can certainly see some uses and the opportunity to ditch some other tools we are using.

This is one of the screens from the admin center – the Modified date in this case is when I installed the new domain controller, evidently it changed something on all the objects. I can’t show everything but just from this section you can tell there is more data collected in AD than there used to be, which is nice if you need to do a lot of clean up.

The data that I’m looking for is available to me now in the native cmdlets and it’s exposed my only problem is going to be figuring out what I need to do so I can get at it…

Cheers

2009 Red Dress Run

I can’t say I ran the “Red Dress Run”, however I can say that I participated in the event. For those that don’t know it’s a yearly event put on by the New Orleans Hash House Harriers. It started very small and has grown to over 5000 participants this year.

After getting deluged by the rain the actual meandering through the streets started about 1:30ish, and ended back at the start a few bar stops later. I got home late.

I didn’t bring my camera so I had full faith in other people’s ability to make me look silly. There are some ridiculous pictures of us (me) on Facebook. I would really suggest you don’t go look at the ones with me in them.

I will be doing this again next year!!!

General Updates

I haven’t been posting here, however I have been active on Facebook so a lot can be found there and twitter for general status stuff.

I’m thinking of migrating my blog, pictures and random other things to a Sharepoint environment. It just makes sense right now since that’s what I use at work and am doing more development etc… Just the environment I’m used to and I don’t see it going anywhere.

Thoughts if you have them… :|

Facebook

It’s offocial I’ve finally caved and created a free video poker how to play backgammon no deposit bonus online casino 888 no download casino play roulette craps game black jack download american roulette play video poker baccarat free casino game no download online casino free money on line casino wagering roulette online online casino betting free online casino slots free craps best casino roulette gambling internet casino gambling uk best casino online full pay video poker no deposit casino code best craps game black jack tournament best online casino site craps online game newest online casino free slots no download play blackjack online free dueces wild video poker black jack gambling online video poker game free casino cash no deposit video poker tutorial play free video poker how to win at black jack casino roulette casino guide how to win at roulette rules of craps casino game online real money backgammon baccarat casino online free video poker game play free video poker video poker odds video poker tournaments online casino netFacebook profile. I’ve hit most people in my email already if they have a profile. If I missed you it’s because I have a different email address then what’s in your profile.

Cheers!

Blog Updates

I couldn’t sleep so I decided to use the time to fix a few problems I’ve been having and updating the blog. I’ve added a photo gallery feature that I plan on using extensively and combining my two sites into one. I’ve also added a few features to make it easier for the search engines to index my site. This may not be a beg deal to you, the reader, however to me it makes it nice if people can find my rants.

Also I’m sure some people will notice I have also added Google Search bars to the top and bottom, replacing the search that came with wordpress. Since most people that find my blog are already finding it through the search engines it really didn’t make sense to have another method of searching the same thing.

There are a few other improvements/modifications with feeds, but I don’t think anyone will notice besides myself. If anyone has suggestions or comments please let me know in the comments.

Thanks

SMS Email Gateways

I find myself looking up this page rather often. Rather than consulting Google all the time I figure I will just put the link here.

This is a livejournal page that has, what appears to be, a very inclusive list of all the SMS email gateways. This makes it really easy to page a person with a message without whipping out the phone and typeing on the keypad. It’s also helpful for those of us that need to get paged if something happens on our networks. It’s really easy to setup a system to send an email for an event, and now you can send that email to your phone… or if it’s really annoying forward it to someone else. :)

http://www.livejournal.com/tools/textmessage.bml?mode=details

Social Networking

Recently I’ve started getting involved with the whole “Web 2.0″ & “Social Networking” thing. This includes Twitter, LinkedIn, Scype, and various Google tools. This includes loading IM clients and software on my phone and being continiously connected as determined by battery life.

Twitter - I try and keep everything up to date and Twitter makes it really easy since I can text my tweets and have them updated basicly anywhere. Twitter ID - twimprine

Scype - Scype is a little different and I don’t have it working on my phone yet, however for making calls to other Scype users it seems great, especally if you want/need to video conference. I still need to purchase that camera. Scype ID - thomas.wimprine

LinkedIn - Just search for my name

I may be a little behind the curve here, which is normal for me, but I’m certainly finding good use for these tools and it’s nice to stay in touch with friends that live a little farther away and we don’t get to talk as often.

General Updates

Blog - I’m thinking of moving my blog and pictures to GoDaddy. I’ve had some availability issues and it seems that I can get the same service and more features for about the same price. Has anyone had any issues or comments on thier services?

Dad - My father should be coming home from the hospital today. They determined that his problem was a disection of the artery in the back of the neck. This caused some clotting in the artery that came lose and entered the brain causing the stroke. He’s on blood thinners and stuff for about 3-6 months. Hopefully that’s the extent and the disection will heal properly.

School - I’m currently enrolled in UNO for a double major in CS and Mathematics. This is my first semester taking classes in things that count and are relevant to my major. We are learning Java which is actually pretty cool, but the teacher is horrible. Calculus is REALLY cool so far, however I may change my mind next semester.

Fragility of Life

If anyone is following me on Twitter they will know my father had a small stroke. He’s fine and should be coming home today after some more tests. I don’t think that I’m one to usually wear my heart on my sleeve, however this one kind of struck me hard. If there is anyone in my family that you think would always be there it’s my father.

Our relationship has changed a lot over the years, and I’m sure anyone that has known me for any length of time can imagine the angel I must have been growing up. Now I would consider my father one of my best friends.
Things happen quickly and quite randomly so those you care about can be gone instantly. I’m happy he’s fine, but it drives the point. Don’t take people and relationships for granted, they may not be there later.

More profound wisdom from me…

History Lesson

I’m not one to really get into the political discussions but there are a few things that just really strike me really hard and I figured I would post them here. I heard a few things and I know I had read them before so I looked them up again, in some old political writings of the 1800’s.

  1. Abolition of property in land and application of all rents of land to public purposes.
  2. A heavy progressive or graduated income tax.
  3. Abolition of all rights of inheritance.
  4. Confiscation of the property of all emigrants and rebels.
  5. Centralisation of credit in the banks of the state, by means of a national bank with State capital and an exclusive monopoly.
  6. Centralisation of the means of communication and transport in the hands of the State.
  7. Extension of factories and instruments of production owned by the soil generally in accordance with a common plan.
  8. Equal libility of all to work. Establishment of industrial armies, especially for agriculture.
  9. Combination of agriculture with manufacturing industries; gradual abolition of all the distinction between town and country by a more equable distribution of the populace over the country.
  10. Free education for all children in public schools. Abolition of children’s factory labour in its present form. Combination of education with industrial production.

I think there are things in here of which both parties are guilty. Get the facts before you vote, please. The original document can be found here. <— Please look at it!!!

DRM Creates Criminals!

I can’t think of a better way to say it…
A picture is worth a thousand words

A picture is worth a thousand words

Evacuations & Such

I just determined that my writing sucks. I’m not going to recap what happened and what’s going on, because it’s actually quite simple.

My family and I evacuated the New Orleans area and ended up in Allen, TX. Nice place and work requires me to be here occasionally.

The New Orleans area is still messed up about a week later. We still do not have electricity and flushing the toilet is a gamble on whether you are going to have your package returned. No thanks…

I’ll end up going back but honestly, I’m not in any rush and if I could I would stay here…