Archive for the ‘windows’ Category

After a colleague of mine installed WDS at a client site they found that certain laptops and desktop PCs would not be able to pick up the images that have been captured.

The problem lies in the HAL Type of the PC that was captured and then WDS finds the HAL type for the PC asking for an image and if one doesn’t match then you will most probably get the error: “There are no images available”

My scenario was that we had a generic image built and working for Single CPU and MultiCPU PCs but only the Multiple / Newer PCs could see the image in WDS – that is because the HAL type was “Advanced Configuration and power interface (ACPI) PC” but these older PCs were being recognised as Uniprocessor HAL Types.

The solution: Get the image onto the Older PC type (via Ghost or Clonezilla etc) login to the system. Download DevCon and extract into C:\Windows or any other %PATH% variable you like.
Then run:
devcon sethwid @ROOT\ACPI_HAL\0000 := +acpiapic_up !acpiapic_mp
devcon update c:\windows\inf\hal.inf acpiapic_up

Reboot and Login two times then Sysprep and capture again!

Hopefully your good to go!

Reference: http://www.ngohq.com/processors/11891-how-to-update-the-hal-without-reinstalling-windows.html

Keywords: WDS, Force HALs, Force HAL, Windows Deployment Services, WDS, ACPI Multiprocessor PC, acpiapic_up, acpiapic_mp, No Images after Capture, Change HAL Type

Posted by on February 17, 2010

Recently I came across a new file format called RSDF, these appear to be txt files which have a bunch of links in them, so called link containers.  I wanted to access the URLS in these files, but I didnt really want to entrust my computer to just “any” application. (more…)

Posted by on May 19, 2009

Hooray! I did it!
I have managed to boot my bootable usb pendrive (BackTrack 3) under QEMU within Windows XP.

For those of you who want the magic one liner here you are:

qemu.exe -L . -m 512 -std-vga -hda \\\\.\\PhysicalDrive2 -soundhw all -localtime -M pc -kernel ../../boot/vmlinuz -initrd ../../boot/initrd.gz -append "root=/dev/ram0 rw initrd=../../boot/initrd.gz ramdisk_size=6666 vga=0x317"

  • This gives you TextMode with 512 MB Ram and Mouse Support!!
  • You will need to change PhysicalDrive2 to what ever drive number your USB key is. (Hint look under the DiskManagment snap-in)
  • You require administrative rights also
  • My Qemu directory lives under USBDriveLetter\BT3\QEMU FYI
  • QEMU Version Win32 PreCompiled 0.9.1

Hopefully this saves you a few hours :-)

Posted by on April 15, 2009

I have been pulling my hair out trying to resolve a backup issue with a client’s backup on Veritas BackupExec 9.1. What happened was that backup was failing on 1 message because the antivirus couldn’t scan it, and locked the backup from reading it.

BackupExecs error was:
0xa0008488 - Access is denied
Backup - \\SERVER\Microsoft Exchange Mailboxes
Access denied to file FirstName LastName [user]FW: Your Tracking # 835503826372.

Now this particular message was found in the Inbox, I then deleted it and emptied the Deleted Items.
Backup still failed! But this time the message was it the root_store IE. The top level of the Mailbox and I couldn’t see it with OWA Client etc. I had to pass it on to another engineer who started looking at it, who then gave me the right tact to search.

I deleted the message by using a Microsoft tool called MDB Viewer, this is a low level tool for Mailboxes,  It’s on the exchange CD-ROM CD-ROM_Drive\Server\Support\Utils\I386\Mdbvu32.exe

I then basically (Remember I don’t do Step by Steps, I do summarys) Choose the Server, Choose the Mailbox (username), then clicked  OpenMessageStore on the MDB menu,
Click Open Root Folder on the MDB menu
From there I saw the message in Messages in Folder Column, I selected it, Choose the operation IpFld->DeleteMessage() and called the function!

Woo Hoo Backup now works!

Merry Christmas to me and you! :P

Posted by on December 19, 2008

So I was back the stupid clients that had the crappy mdaemon / IMAP setup. This time upgrading there MS Office version to 2003 in an effort to stop the IMAP pst file hitting the 2GB limit. Anyway after pulling my hair out to get it to use the 2003 UNICODE PST type store I came across this post: link

“This issue occurs if the DWORD value for the NewPSTFormat registry entry is set to 2. This condition requires Outlook to use the Unicode-based personal folders (.pst) file format. This file format is incompatible with IMAP. ” Fuck! Looks like stupid internet standards win again!

You know the worst part – The client is a lawyer and he explicitly asked me in a email if this will fix the problem, to which I replied “Yes it will”

Now I just need to find that damn message…….

Posted by on December 3, 2008

Part of works server migration has meant that we are working on a new Terminal Server. I liked the old one better because:

  • It had a run command
  • I could view the system drives
  • I could type H: in the address bar and it worked!
  • It had command prompt access!
  • No firefox installed (Hardened IE installed! OMG WTF!)

And the list goes on….. What I find mose stupid is a work for an IT company and they lock the shit down which make us less productive!!

(more…)

Posted by on December 2, 2008

Had a client whose print queue would jam up and they couldn’t restart the printer spooler until you manually cleared the spooled documents. So I stole this piece of code and put it in a batch file. Works wonders!

@echo off
net stop "print spooler"
del /q "%SystemRoot%\system32\spool\PRINTERS\*.*"
net start "print spooler"

Update: The reason the spooler was dying was because when he printed a PDF document he would close Acrobat before the document finished and in turned killed the Print Spooler. Because we charge by the hour, he didn’t want it to be investigated any further, which is fine by me!

Posted by on December 2, 2008

This is a guide, Not a step by step walkthrough! What are you an end user or an admin? FFS!

First create a new outlook data file in outlook – give appropriate name (eg. Archive 2008)

Navigate to the IMAP store in Outlook select all the msgs you would like to “Move” to the archive Eg. Hold shift and click top msg and bottom msg
Right click select Move to Folder etc, Select destination folder. Click OK
Depending on how well outlook is behaved the msgs wont move – in fact they will still be there, but they probably copied to the Archive 2008 data file (Quick go check) Now that you have the msgs copied, you can try delete them, go on try, it doesn’t work does it….no.
–Close Outlook –
On the server navigate to C:\MDaemon\Users\<DOMAIN>\<USERNAME>
delete all the messages that you backed up (Organised by date helps :) )
–Open Outlook –
Get Outlook/IMAP to update the ‘Cached Headers’ Completely (Usually does this automatically after opening outlook?)
Right Click IMAP store in Outlook

Properties – Advanced – Compress Now – Waiting a long time (hours if we are talking gigabytes)

Posted by on November 17, 2008