Archive

Posts Tagged ‘Computers’

Bad Image Error

March 12, 2009 1 comment

Description – When booting into Windows you receive an error that says, “lsass.exe – Bad Image. The application or DLL C:\WINDOWS\system32\MPR.dll is not a valid Windows image. Please check this against your installation diskette.”

Cause – This can happen if a chkdsk moves the file (and potentially others) referenced in the error.

Solution – Copy the files back to the hard drive from the Windows installation disk.

  1. Boot to the Windows XP disc. Make sure the disc is as close as possible to the version installed on the computer. (i.e. Use a Windows XP SP3 disc)
  2. When prompted press R to enter the Recovery Console.
  3. Select the Windows installation & type the administrator password.
  4. Look on the root of the C drive & navigate to the latest FOUND directory. In my case the directory was C:\found.000\dir0000.chk.
  5. Note the files that have been moved. There may be more than just the mpr.dll file in this example. In my case the files were mpr.dll, mprapi.dll & mprdim.dll.
  6. For each file, determine the directory that the file should be in. If there are multiple files, they could potentially belong in different directories. In my case, all three files are supposed to be in C:\Windows\System32. I also verified this by typing dir c:\windows\system32\mp*.dll. I noticed that those 3 files were there but that they all had a file size of 0.
  7. Copy each file from the Windows installation CD to the correct location. In this case the commands I ran were:
    copy d:\i386\mpr.dl_ c:\windows\system32\mpr.dll
    copy d:\i386\mprapi.dl_ c:\windows\system32\mprapi.dll
    copy d:\i386\mprdim.dl_ c:\windows\system32\mprdim.dll
  8. Reboot the computer. It should boot up like normal.
  9. For good measure you should run a chkdsk /r to make sure everything is OK. Using the /r switch can make it take a little while.
Categories: Computers Tags: ,

Allow Users to Change Date, Time & Time Zone

February 20, 2009 Leave a comment

I’m a big believer in following the "don’t put your primary account in the Administrators group” philosophy. Especially for “Users”. However, sometimes there are things that they just need to be able to do that require elevated privileges.

One of those things is changing the time zone. Users that travel need to be able to adjust the time zone on their laptop to reflect the time zone that they are in. Now in Vista, a regular user account can change the time zone. In XP the best you can do is give the user the ability to change the date, time & time zone. Sure the user changing the date or time could be bad especially on a domain because time being in sync is very important. But training (i.e. telling) the user to only change the time zone & not the time shouldn’t be that hard.

  1. Open the Local Security Settings MMC.
    Note:To open that MMC using the runas command you must first invoke the MMC console by running the following command:
    runas /user:domain\username “mmc %windir%\system32\secpol.msc”
  2. Expand Local Policies>User Rights Assignment.
  3. Double click Change system time & add the Users group.
  4. Open regedit & navigate to HKLM\System\CurrentControlSet\Control\TimeZoneInformation.
  5. Right click TimeZoneInformation & give the Users group the following permissions:
    Query Value
    Set Value
    Create Subkey
    Enumerate Subkey
    Notify
    Read Control
  6. Log off then log on.
Categories: Computers Tags:

Start another instance of Explorer.exe using the RunAs Command

January 27, 2009 Leave a comment

Sometimes it’s handy to have another instance of Windows Explorer running with a different user’s credentials…like an administrator account. To do that use the following steps.

  1. Run the following command: runas /user:domain\administrator regedit.
  2. Browse to HKCU\Software\Microsoft\ Windows\CurrentVersion\Explorer\Advanced.
  3. Change SeparateProcess from 0 to 1 then close regedit. If the value doesn’t exist then create it. It is a DWORD value.
  4. Run the following command: runas /user:domain\administrator explorer.
Categories: Computers Tags: