Archive for August, 2009

Mac to Windows Sharing problem

August 18, 2009

I KNOW I won’t get this problem again for a while…
New Mac, wants to get to a share on a Windows XP PC.
Can see it on the network, click on the PC and it sees the shares. Great.
Click on a share however and up pops “The Operation Can’t be completed because original item for share cannot be found”. Boooo.
The problem was that I found other Windows machines on the network and could connect to their shares just fine.
So I had a look at the XP’s event log and found multiple entries complaining that the IRPStackSize was too small.
Quick trip to Microsoft’s KB’s (aka Google it) and found a nice article on how to increase the size…here it is;

To resolve this behavior, increase the IRPStackSize value in the registry:

  1. Click Start, and then click Run.
  2. Type regedit, and then click OK.
  3. Navigate to the following key:
    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters
  4. In the right pane, double-click the IRPStackSize value.

    NOTE: If the IRPStackSize value does not already exist, use the following procedure to create it:

    1. In the Parameters folder of the registry, right-click the right pane.
    2. Point to New, and then click DWord Value.
    3. Type IRPStackSize.

      IMPORTANT: Type “IRPStackSize” exactly as it is displayed because the value name is case-sensitive.

  5. Change the Base to decimal.
  6. In the Value Data box, type a value that is larger than the value that is listed.

    If you created the IRPStackSize value using the procedure described in step 4, the default value is 15. It is recommended that you increase the value by 3. Therefore, if the previous value was 11, type 14, and then click OK.

  7. Close the Registry Editor.
  8. Restart the computer.

Now don’t bother with # 8 because you can just restart the server service and it will do the same thing as rebooting (for the purpose of increasing the IRP Stack size).

Sysprep

August 12, 2009

Probably not going to use this one again for a while….

Sysprep – Build a PC to the right specs, software, updates, etc and then want to make an image to install on multiple machines. This is the puppy to use.

I built a PC with Windows XP SP2 so I had to activate it to get it to SP3. I installed all the updates, Adobe, Java, blah, blah.

Installed Sysprep from Microsoft.com (search for Windows XP SP3 deployment tools).

Once you’re ready drop to a DOS prompt and run this;

sysprep -activated -reseal

-activated wipes the activation so you can add a new key.

-reseal wipes eventlogs and runs the mini setup for Windows so you can add admin passwords and/or user accounts

more Xcopy arguments

August 10, 2009

as well as the /E /C /Y options if you want to exclude some then make a file (call it anything you like) such as exclude.txt and inside simply add the extension of the files you want to exclude like this;
.mp3
.mov
.m4a
etc
Each on a new line. Then in the Xcopy argument you simply type /EXCLUDE exclude.txt and it will look to the text file you created for the exclusions.
Nice for a simply backup script where you don’t want to include the users terabytes of music and movies.

Erase Unused Disk Space

August 4, 2009

Had a client laptop that needed to be donated. They wanted to give it to the family babysitter so it needed to be working. In other words I needed to securely delete the old user data and keep everything else intact.

I used this utility – Eraser – which is open source and wonderful for the job. Nice.

Please contribute if you use it.