The boob-tube

It all started when they took Tech-TV and run it into the ground by allowing the G4 network to take it over. The G4 network is a gaming network, don’t get me wrong, I like games. PS2 games, PC games, PSP is cool too. But no one would be able to call me a hard core gamer. Every now and then a game comes along and I get sucked into it and spend tons of time playing. Like Burnout 3 or Half Life 2 or Far Cry or Dungeon Seige. But my career and more of my time is tech related and I have to say that I shed a tear when G4 took Tech-TV and totally decimated it. Not long after that I called the Dish Network and had them change my package to only local channels. I don’t really miss having all of those channels either. It was mostly just a bunch of junk anyways.
dvd
So now I’ve been renting DVD’s like crazy. I signed up with Blockbuster’s movie pass thing which allows you to have 2 DVD’s out at a time for as long as you want for like $19.95 a month. It’s pretty cool because I’m far more inclined to experiment and get stuff I’m not sure about. We usually rented about 3 to 4 movies a month prior to getting rid of the extra channels anyways. At $3.75 a pop that ended up being about $15.00. Now I can get as many as I can watch in a month for $4.00 more. There are movie rental places that are cheaper than the $3.75 but my experience there has been that they don’t have what I want when I want it. Someone else I know has a problem with Blockbuster, but we won’t discuss that here! :) I tried the movie by mail thing, but the turn around is just too slow for me. Content on demand is where we are heading and the quicker we get there the better.

  • Camera: NIKON D70
  • Taken: 14 July, 2005
  • Aperture: ƒ/5.6
  • Focal length: 70mm
  • Shutter speed: 1/60s

Enable and disable domain user accounts with VBScript

How to enable and disable a Windows domain account using vb script. In our network there are only 2 people who are able to add or manipulate domain users. Every now and then I have wanted to give a non administrator user the ability to enable or disable a user account.

Keys

In our case we have a couple of domain user accounts used for external software support companies that VPN into our network to perform tasks. I didn’t want that account being open and accessible all of the time. I realize I could have used logon hours within the account properties to specify what hours the user could and couldn’t log on, but I wanted to the account to only be enabled when the support personel asked for access. I didn’t want to add the person I wanted to be able to enable and disable this account to the domain administrator’s group and I didn’t want to have to install the domain administration tools on their PC so they could do this locally.
After some research I found a really easy way to accomplish this using VB Script. The user that will be running the script will have to have security privileges on the user that they are going to be able to enable or disable. Create a text file and name it whatever you want with .vbs as the extension. Edit the following text in the appropriate places and copy this text into the .vbs file.

Set objUser = GetObject _
(“LDAP://cn=accountname,ou=organizationalunit,dc=domain,dc=domainextension”)
objUser.AccountDisabled = FALSE
objUser.SetInfo

Replace accountname with the user account name, replace organizationalunit with the appropriate organizational unit, domain and domain extension. Save the text file.
Just double click it to execute and viola! Now this is just the bare minimum coding to enable a disabled account it doesn’t come back and let you know it worked or didn’t work. You could get fancy and make it display a message box when it’s finished, but I didn’t feel like going that far.
The following code disables the specified account.
Const ADS_UF_ACCOUNTDISABLE = 2
Set objUser = GetObject _
(“LDAP://cn= accountname,ou= organizationalunit,dc= domain,dc= domainextension “)
intUAC = objUser.Get(“userAccountControl”)
objUser.Put “userAccountControl”, intUAC OR ADS_UF_ACCOUNTDISABLE
objUser.SetInfo

For added security I took the disable account code and made a scheduled task on one of our servers to automatically run this script every day at 4:30pm. That way I know the account gets disabled and don’t have to worry about someone forgetting to disable it.

I love America

I love America

I went to the 4th of July celebrations put on by one of the churches in the area. I was impressed with how well they did the planning and activities. It was the first large scale fireworks I had been to in several years. I was also impressed because they gave a good gospel message and there was at least 100,000 people there that day. Many of those people are not regular church attenders.

Bathing lizard

Bathing lizard

While at the Barnes Jewish Children’s Hospital in St. Louis last week I visited a cool garden they have on the 8th floor. It is meant to be a place for patients and visitors to enjoy a walk and get some fresh air. I was very impressed with how good a job they had done with the garden. I found this metal lizard soaking up the sun and enjoying a bath.

Helicopter

Helicopter

This is from a 4th of July celebration we went to. Right as we arrived this Apache Helicopter was taking off and I quickly threw down my back pack, grabbed my camera changed lenses turned and started snapping.

Kids among us

Kids among us...

Everywhere I turn there are two things that are not far from me. One is computer stuff and gadets, which my wife is ready to throttle me over. Not that I have parts and junk laying around everywhere, but there are gadets, remotes and such all around. T