Work
Non admin users running scheduled batch tasks
1I ran into a problem a few months back where I found non-admin users on Windows Server 2003 couldn’t run batch files in scheduled tasks. I just gave up then as it wasn’t important, but I had to find a solution for the same issue today. Didn’t have to look far, it turned out:
SYMPTOMS
When you run a batch job that runs under the context of a regular user account on a Microsoft Windows Server 2003-based computer, the script may not run. If you run the batch job by using the Scheduled Tasks feature, the following error message may be logged in the Scheduled Tasks log file (Schedlgu.txt):
0×80070005: Access is denied.CAUSE
This issue occurs if all the following conditions are true:
• You run the batch job on a Windows Server 2003-based member server.
• The batch job runs as a non-interactive process.
• The batch job is configured to run under the context of an account that is not a member of the Administrators group.
In Windows Server 2003, the Users group does not have Read and Execute permissions to the command processor (Cmd.exe).
Exchange server down all weekend… fixed
1I did some maintenance on our email server on Saturday (backup, chkdsk, defrag) just simple stuff, but somewhere inside the chkdsk things got mangled. I knew there were some file level problems on the machine, and there’d been a general stability problem for a while, so all of this was about due to happen. But what an annoyance, really. We had no inbound email for the entire weekend and Monday.
In the end, the problem was limited to our Xwall spam filter. It’s an incredible filter and I highly, highly recommend it. In this case a couple of it’s key files got re-arranged by the chkdsk, and it wasn’t forwarding emails onto Exchange after it checked them. It took me all weekend and yesterday to diagnose, I’m kinda kicking myself for it. All’s well that ends well I suppose, though.
In the process, I noticed the Appletalk protocol was still installed (from some old stuff we had some on the server, a couple of years back). I removed Appletalk, and then the even log started filling (every minute or two) with:
Event Type: Error
Event Source: atkctrs
Event Category: None
Event ID: 3001
Date:
Time:
User: N/A
Computer:
Description:
Unable to open ATK device for R access. Returning IO Status Block in Data.
Which was a real pain, and only frustrated the troubleshooting process. In the end one Kaushal Shah came to my rescue:
I am facing the same problem. The following Microsoft KB Article ID: Q257760 provides the solution.
It recommends dowloading Exctrlst.exe utility from the Microsoft Windows 2000 Resource Kit. Run this utility and uncheck all the performance counters for which you are getting a error.
Thanks buddy. In my case it was Windows 2003, but it didn’t make a difference; I ran the Exctrlst utility, dropped the performance logging on Appletalk (which, again, wasn’t installed anymore) and problem solved.
Back in the saddle
0In at least 3 ways.
1. Back in Finland. Toronto was great, got a lot of good work done, hung out with *almost* everyone I wanted to, and generally had a productive and fun time. Brought 2 suitcases back of belongings for Maija and I (go Monopoly and Risk!)
2. I foolishly left the power adapter for my laptop in Toronto, and have had to use Maija’s MacBook this week. Which pains me, literally and figuratively. But thanks to the speedy and remarkably cheap shipping of Spring Global Mail, I have my power adapter again! W00t.
3. I bought a voltage converter in Toronto, and then a VGA adapter when I got back, and now I’ve got some sweet Xbox 360 gaming up in here. You do not know how good it feels. I finally got to take the wrapper off Bioshock last night.
And just like they say, the first time you fight a Big Daddy, you get owned.
AND! I have a new mix that I’ll upload soon, I think you’ll love it.
Laptop dead, Ubuntu rescues
0Half way through our holiday in NZ my laptop started puking out blue screens of death. It’s never done this before… but it started in earnest until the machine became pretty much unusable (over a period of 48 hours). So I spent some time in thought, regarding the fate of my 6 month old laptop that I love. After some diagnosis, and gentle coaxing, I was able to ascertain that my hard drive has bad sectors and they’re spreading like the plague. I don’t quite understand how that physical happens, but it’s related to a likely disk impact and scratching due to that. I travel this bad boy fairly heavily, so it’s not entirely surprising.
So my drive’s going bust and it’s a matter of time until it’s totally unusable. If I boot up the laptop and do absolutely nothing, it’s OK… I was able to run a full backup thankfully, so data’s fine. It’s when I tried to write anything that it would go all messed. To my great chagrin, that leaves me having to use Maija’s Macbook for the rest of my holiday. Conclusion: Mac’s are still useless for work. ;)
Anyway, we’re home in Finland now and I’m supposed to work later today, and I really don’t feel like using Maija’s computer anymore. Besides, she needs it for school. Enter Ubuntu Linux on a LiveCD. I’m a big fan of Linux, especially Ubuntu, but I felt I really had to take some time here to sing it’s praises.
Linux is a very customizable operating system. It can be re-arranged, rebuilt, and put together however you need it. These packages are called distributions, and Ubuntu is one of the most popular. I’m currently running Ubuntu 7.10, the Gutsy Gibbon. The beauty of a LiveCD is that the entire OS is packaged ready for use on a single CD-ROM. How does this help me? My hard drive is dead remember. I’m now running pretty much everything I need off a CD-ROM, and can continue working. Yes!
The Gutsy Gibbon is superb. Everything works out of the box: networking, wireless, sound, video, battery information, all my Dell keyboard buttons, etc. It comes with Firefox, Open Office, and Evolution. A good terminal server client, and various other media apps. Evolution is really quite a good mail client, and has support for Exchange. I still feel that Outlook is the best client out there, but Evolution is only getting better, while Outlook is only adding glut.
Graphically, the Gutsy Gibbon is lovely, possessing some of Vista’s Aero-Glass style effects. I’ve had a couple of problems with GParted (for partition disks), but aside from that’s it’s totally stable. Remember I’m running off a CD-ROM here, with everything cached into RAM, so it’s nowhere near an ideal setup. And even now it’s fast, it’s responsive.
I’m totally impressed. I’ve been using Linux for a few years, mostly server sided stuff, but this is the nicest thing I’ve seen on the desktop side yet. The only things I’ve run into that are lacking right now, are:
- good compatibility for Reason. It does run under Wine… but not so great
- multiple Exchange connections, in Evolution. In Outlook and Entourage you can open multiple inboxes, Evolution has yet to catch up.
You’ll notice those two things aren’t even Ubuntu core. Honestly, I think the time has come for Linux on the desktop. I encourage you to head over to ubuntu.com and grab a copy for yourself. Remember, it’s free.
(For the record, I’ve got a new hard drive on the way. I’m honestly torn as to whether to install Windows or stick with Linux. I don’t know what I want more. I’ll almost surely dual boot the system, as I need to use Reason and play old school videogames care of Home of the Underdogs… but beyond that? Don’t know.)
Moving your WSUS 3 database
1I had need to move the database my Windows Server Update Services is using from the Windows Internal Database to my full SQL Server (2005). Following are my steps:
1. Microsoft Article on the steps required, I used this as a guide, but as I had already installed WSUS, I had to vary things a bit.
2. Enabling Nested Triggers on your SQL 2005 database
How to: Configure the nested triggers Option (SQL Server Management Studio)
Use the nested triggers option to control whether an AFTER trigger can cascade; that is, perform an action that initiates another trigger, which initiates another trigger, and so on. When nested triggers is set to 0, AFTER triggers cannot cascade. When nested triggers is set to 1 (the default), AFTER triggers can cascade to as many as 32 levels. INSTEAD OF triggers can be nested regardless of the setting of this option.
To set the nested triggers option
1. In Object Explorer, right-click a server, and then select Properties.
2. On the Advanced page, set the Allow Triggers to Fire Others option to True (the default) or False.
3. Manage the Windows Internal Database with SQL Management Studio
SQL Server Embedded Edition is just a specially configured named instance of the SQL Server Express database engine which can be accessed only by certain Windows Services, or by SQL Server Management Studio Express using \\.\pipe\mssql$microsoft##ssee\sql\query as server name.
4. Detach the WSUS database, copy it across to the new location and attach it to the SQL Server.
5. At this point I pulled a bit from the WSUS 2.0 article here. Specifically about adding the computer account of the front end server to the SQL Server security logins, and
6. Adjust the registy of the front end server to point to the new database location. Close your management console and restart the Update Services service, and IIS. Boom!
Enjoy.
Locking down Firefox settings
0I was going to post this months ago, but I never got around to it. I needed it today, so I opened up the draft. May as well post it.
Locking down settings (such as proxy servers) in Firefox (and for multiple users). This article has seriously saved my bum a couple of times. Thanks man.
I’m a bad blogger
7I’ve clearly annoyed the masses with my lack of posting. Perhaps it was all a ploy to see how many people read this… or perhaps it was something far more intriguing and occuring within intense 1 hour episodes amounting to a total of one day in the life of Jack Bauer…
Or perhaps there was a series of simple busynesses (or businesses) that when applied at the same time with equal amount of pressure, to the same location, resulted in this particular blogger not getting any action for a month.
And by action, in this case I mean sweet sweet blogging action. Not “action” action, cause I got nuff o’ dat this last month.
So what have I been up to? Work. Loads and loads of work. You can begin to see the fruits of some of our labour at store.tacf.org. That will very shortly replace resources.tacf.org for a miriad of reasons which I shall let Mike Livingston point out when he comments on this post. And comment he will, because he reads this on an almost daily basis, and has thus been disapointed on an almost daily basis.
I, alternately, have been satisfied on an almost daily basis. Read: “action”.
Anyway, don’t buy anything on that store because at this stage we’ll take your money and not give you any product. Much like 1200s.com. Remember them? (Read: dirty rotten turntable swindlers.) Well, as it stands right now I have no turntables, but – mysteriously – twice my money back. I feel that I shall have the last laugh. And he who laughs last, laughs loudest. Or laughs longest.
Certainly, he (or I as the case may be) laughs the loneliest. But I shall laugh nonetheless!
Migrating an Exchange 2003 server to a new server box
3My task for the evening is to migrate our old Exchange server to a new one, with completely different hardware. This will be a long long post, and will be boring to those who know nothing about the words “Microsoft Exchange Server”.
Old server:
Dell Poweredge 4400
Windows Server 2003 SP 1
Intel Pentium III, 800 mhz
1 gb RAM, 133? Front Side Bus
New server:
Dell Poweredge 2850
Windows Server 2003 SP 1
Dual Intel Xeon, 3.6ghz
2 gb RAM, 800mhz Front Side Bus
Current time – 5:30pm
Our old mail server is plum tuckered out. We’ve decided it’s time for a new one, so we bought a fancy new server, and it’s been sitting in the rack for 3 weeks doing nothing. The migration task is difficult because we need the new server to do exactly the same thing as the old one, and hopefully without users noting anything has changed. Except for the extreme speed that will be coming their way once we’re working.
First step:
Backup all content on old mail server – I’m using the Windows Backup tool for this, which according to reports is better in Windows 2003 than it ever has been. So far it’s working, backing up everything on the server. I’m a little discouraged that it claims 2 days 6 hours are remaining, but I’m sure it will take much less than that. At this point things could have gone horribly wrong.
Thankfully, my boss called me and asked me how things were going. I told him of the 2 day time schedule, and explained that it was probably because we were backing up onto an external hard drive, and the old server only has USB 1.0. He said that was correct, and that I should try backing up to our network backup storage. Good idea says I. So I restarted the backup to the new location. Now I’m told 2 hours remaining. Woot woot woot.
… 1h 33m…
…30m…
Done. Next, go to our new Exchange server and restore the backup. When I started this I noticed the drive mappings weren’t the same on our new one as they were before, so using Disk Management I swapped the Data partition and CD-ROM drive letters. Now everything looks pretty good to go… so we check advanced settings. Make sure all files are replaced, even if more recent ones are on the server. And… go. 55 minutes remaining. In the time it took to write this section (about 5 minutes due to a brief interruption) it jumped down to 14 minutes. Yay!
…6m… At this point I figured it would be a good idea to shut down the old mail server. Just in case when the new one restarts there are IP and computer naming conflicts. “Planned shutdown: OK”
Restore complete. Restart computer. First boot:
Windows could not start because the following file is missing or corrupt:
Shite. Rebooting from Windows Setup Disk and into Recovery Console… Must rebuild boot menu. Restart. Done that… didn’t help. Gave another more elementary error, so I’m going back into Recovery to try and fix the ntoskrnl specifically. Replaced the file, getting the same message as my manually created boot item.
Ok, I’ve rebooted again, and I’m doing the Autmated System Recovery this time. Maybe I should have started with this. This will (and is) installing a barebones Windows setup and will then ask for the location of the backup. I had a few problems with swapping floppy disks (due to requiring third party RAID drivers) but it’s actually quite intelligent. It’s now copying files.
Current concerns: a) My backup is stored in a network volume… that could be tricky. b) I don’t know if it will make the new partitions the same as the old ones. If so, that’s a bit undesirable. We have a much larger hard disk in the new server.
…28%…
Complete. Rebooting. The install process started, mostly as usual, and then asked for the backup media. Problem: It’s on the network. I can’t access the network. I am able to get into the System Applet, somehow though, so I’m going to try and install the drivers for the NIC, then join it to the domain.
Current time – 9:37pm
Supreme excitement!! I managed to intall the Network Drivers. If you click cancel enough on all the hardware found windows (remember, it’s only installed a very basic windows. You don’t have anything more than the install GUI) you’ll eventually get to the “Devices found but not installed” page. On that list were two Network Adapters. The install worked for the first, and then the second, and then I could connect to the Network Backup Device. Oh man I’m thrilled. So right now it’s restoring the backup. 21 minutes remaining.
Complete. Reboot. Boot successful! So, I’m in Windows now. It’s all the same as the old backup server… only it’s fast. And all the drivers have installed successfully. Only problem, the data partition doesn’t seem to have copied. I also can’t connect to anything on the network. Restart and boot into safe mode. Uninstall Network Adapters, reinstall. Reboot into Safe Mode with Network Support. Connectivity has returned, but I can’t open the backup file anymore (in order to restore the Data partition). Fingers crossed… rebooting into normal mode.
Normal boot successful. For some reason though when I open the backup file again nothing appears in the file list. Thankfully, while this was going on I copied the backup to my external hard drive, and now I tried using that copy instead. Success! There were a couple of new files in the directory the backup was stored, so I wonder if they were causing the backup to not work. Either way it’s now backing up the Data partition, 15 minutes remaining.
Current time – 10:20pm
Backup complete. The data partition is now in place. I rebooted. Low and behold… she’s alive!
That’s right, everything works! Outlook, web access, everything. There’ll be a bit of cleanup as there are some errors in the event log, but on the whole… I’m a happy camper. Thanks for reading. End time – 10:40pm
My school
0I’m now 3 weeks into my new job. I’m loving it. As with any IT job, there are projects and problems that arrise that can cause serious headaches, but I’m enjoying it still.
It dawned on me a week or so ago that TACF has been the perfect learning environment for me. When I left high school I had no money, neither had my parents. At that stage we weren’t landed immigrants, so I don’t think I could even apply for a loan easily. True or not, that was my mindset. Add to that the fact that I hate school and would rather never go back if I didn’t have to.
So, upon finishing high school, the world of work was the place I was heading for. I had to complete one course at night school because of having too many spares the previous semester, so I started looking for a day job. I tried at Future Shop initially, because I had done a co-op placement as a Service Technician. However, they weren’t hiring.
Enter Toronto Airport Christian Fellowship. They were looking for a Summer Camp Administrator to manage bookings of the TACF camp site, and to assist in running the church’s own summer camp program. After 3 months of learning to be an office boy, the job dissolved with the selling of the campground. At the same point, a job opportunity came up in the Maintenance department.
I took it, and spent the next 8 months learning to work with my hands. Woodworking, building, plumbing, electrical work, bricklaying, painting, toilet cleaning, and everything in-between.
Following that the long time employee in the Mailroom decided he’d had enough. Seeing as I’d volunteered there a little, I put in an application. I got the job, and spent a further 8 months up to my eyeballs in stressful neverending work. The mail and shipping industry is not one I will eagerly jump into again, though I might some day. This job was pure learning though. I made deals with salesmen, negotiated for better prices, working mostly alone and with little supervision. At some points I ran into problems with my boss, causing sleep loss. I moved the office from one building to another, pretty much single-handedly. Again, this was pure learning. I dealt with so much office politics, salesman politics, financial limitations, the joys and woes of decision making, and all sorts of things.
I enjoyed that job for a while, but eventually it bored me. The problems with my boss certainly didn’t help, and my job duties were increased with no pay raise.
In the middle of this, I was approached by my new boss, and very tentatively offered a job. The Network Administrator at the time was getting ready to go on maternity leave (men get their own maternity leave, don’t forget it), and so someone was needed to replace him. This tickled my fancy like not much else, so I did everything in my power, nude-dancing excluded, to get the job. The good Lord has seen fit to bless me a heck of a lot in this lifetime of mine, so I ended up with the job.
Now I’m looking back, around, and forward. I’ve worked at TACF for over a year, good times and bad, and am loving it today. I’m excited to go to work, because I’m getting paid to do something that I love. I’ve learnt so much, without having stepped foot in a University, and I’ve been paid the whole time. I’m in an awesome cell group, with guys who are likeminded and provide good fellowship. I’m getting married in three months, and am feeling more and more like I might just be ready for it.
Thank you Jesus, for providing me with an education perfectly suited to who I am. Thank you Jesus for providing me with a beautiful woman who for reasons still unknown to me said yes when I asked her to marry me.
Thank you Mum and Dad for introducing me to a God who made me just so he could love me. And thanks for trucking me around the world at a young age teaching me to communicate and read and think.
And thank you TACF for being my school.
Sender: Girl
0A package arrived for someone today requiring COD. That is Cash on Delivery. As usual I checked who it was from and going to, just to make sure it’s something we’re happy to pay for.
The sender was listed solely as: “Girl”
What? Thought I. Who’s girl? What’s going on here… People can’t just send stuff to people saying that it’s from girl. What girl? There are so many of them!
On closer inspection however, I noticed a stamp which read “Girl Skateboarding Company, Inc.” Ahh well. Mystery solved.
Recent Comments