Archive for the ‘support’ Category

A free schtasks.exe equivalent for XP Home edition

Monday, December 15th, 2008

It’s funny how one stumbles upon the finer differences between XP Home and XP Professional once in a while. Every good geek knows the biggest limits to XP Home such as no ability to join a corporate network, no Remote Desktop, and no encrypted file system (EFS).  But who knew about a tiny utility that will run a Windows Scheduled Task from the command line? That would be “schtasks.exe”, and it’s not included in XP Home.

The background: I needed a Limited User in Windows to be able to do something requiring Administrative permissions.  There are a few ways to do this, but in this situation, running a scheduled task was the obvious best choice because the task was already there as an overnight maintenance job.

A quick Google search for “run scheduled task from command line” will lead you to the aforementioned schtasks tool.  Well, I could copy the file from an XP Pro workstation, but that would violate Microsoft’s copywrite.

Fortunately, more searching will turn up a reference to an old MS tool “jt.exe” from it’s Windows 2000 Resource Kit.  You can get individual tools from the W2K ResKit here: ftp://ftp.microsoft.com/reskit/win2000/. The license to JT and is much more permissive.  You’re free to use it, but at your own risk.

The “JT” syntax is not straight forward to me.  But these the two examples will probably help:

This lists all tasks: jt.exe /se

This will run (“activate”?) a task (you do not need to include the .job in the TaskName): jt.exe /sac TaskName /rj

On the XP Home Edition computer I was setting this on, the Limited User could run all the scheduled tasks, even when it couldn’t “see” the task in the list. YMMV.

One could  make this end-user friendly by wrapping a batch file around it and put an icon with a link to your script on the Desktop.

Using an Old Printer with Windows Vista – and other Vista issues.

Thursday, August 28th, 2008

So, I bit the bullet and got a new PC with Microsoft Windows Vista.

Yes, like every informed geek, I expect a few issues.  However, sooner or later I will need to support Vista at client sites; besides, XP is getting on in years.

Today’s post is mainly about getting my old, but reliable, Brother HL-1030 to work in Vista.  The Brother laser printer is shared over the network by a Windows XP machine.

Some inter-related problems when trying to map this printer in Vista:

Immediately after trying to map the printer, this error comes up: “The printer driver is not compatible with a policy enabled on your computer that blocks NT 4.0 drivers”.  The Microsoft KB describing this, with no real work around other than “find a compatible driver”, is KB931719. Honestly, given the error message, wouldn’t you expect the KB article to provide a way to change the local policy?

Vista has no built in driver for my old HL1030, nor are there compatible drivers on the web.

On the driver front, a quick Google search told me that the built in Vista driver for the Brother HL-2030 would work fine.  But how do I use it? Every time I try the add printer wizard, it tries to install the incompatible point-and-click NT4/2K/XP drivers.

* Update – 2009-04: I had some intermittent problems with the HL-2030 driver, once in a while a page would not print completely and would cause the printer to require manual intervention to get it going again.  A quick search turned up this page which suggested using the Vista built in driver for the Brother HL-1430.  I’m trying that now.

So, I used an old trick. I faked a local port for the printer. I don’t remember the terminology, but I do recall this mapping system being common in the past – maybe with Novell or DOS?

Anyway, create a new local port using the share name, e.g. \\server\brother. You will be prompted to pick a driver. In my case, using the Brother HL-2030 driver does indeed work fine.

Some other Vista problems that I’ve had to resolve:

I’ve disabled User Access Control.  I can’t officially recommend this to other people, but it just doesn’t jive with me.

I’ve removed all but the US keyboard from my keyboard settings. Canadian PC’s (maybe it’s dependent on the regional settings?) have English, French and a “combo” keyboard mapping installed by default.  That’s fine until you accidentally hit the hot-key to switch to the French format – for some reason you do not get a confirmation prompt (!?!).  It happened to me on day two with this computer.  I’ve previously helped others fix this too.  While you’re at it, those with Intel Graphics, disable the hot-key that rotates the screen – everyone stumbles on that one eventually.

I had issues with an Access “.mdb” database on a network share that I use for tracking stuff. The resolution for that was to add the “serving” machine’s host name to my Internet trusted zone.  Adding only the IP address did not work, despite a MSKB Knowledge Base article I found.

I’m sure more Vista issues will pop-up.  But, so far, it’s been manageable.  I quite like the new 3-D flip task thing and the search tool.