Category Archives: Windows Vista

Windows Vista solutions

Remove or Hide System Reserved Partition

This post shows you how to fix a new box that has a System Reserved Partition taking up a drive letter and accessible by all.

Here is the fix using Diskpart:

  1. Load Command Prompt (cmd)
  2. Load Diskpart (diskpart)
  3. List Disks (list disk)
  4. Select Proper Disk (select disk #)
  5. List Partitions (list partition)
  6. Select Proper Partition (select partition #)
  7. List Volumes (list volume) NOTE: Look at Drive letter of system reserved volume
  8. Select the volume to hide (select volume #)
  9. Remove assigned disk letter (remote letter X)

Done!

Taking ownership of an entire drive in Windows

The commands below will show you how to take ownership of an entire drive. Here is a simple script to accomplish just that.

Create a cmd file takeowner.cmd in notepad and type the following or past this in a command line prompt one line at a time:

takeown /f %1 /r /d y
icacls %1 /grant administrators:F /t

Fix Windows Update error in Windows Vista

I uninstalled WSUS and had most of the client computers unable to check for updates, even after updating the GPO to grab them from the net. I found the following solution and it fixed the issue: (Note: I didn’t follow all these instructions and found that just stopping the Crypto service and deleting catroot2 folder was sufficient.)

You can try to register the following DLLs if Windows Update service is not starting up or having some issue updating/running Windows Updates:

1. Create a batch file and copy the following contents in it and then double click on it to register modules.

regsvr32 c:windowssystem32vbscript.dll
regsvr32 c:windowssystem32mshtml.dll
regsvr32 c:windowssystem32msjava.dll
regsvr32 c:windowssystem32jscript.dll
regsvr32 c:windowssystem32msxml.dll
regsvr32 c:windowssystem32actxprxy.dll
regsvr32 c:windowssystem32shdocvw.dll

2. Restart the Windows Update and Automatic service

3. Stop the Cryptographic Service

4. Remove the folder WindowsSystem32Catroot2

5. Rename the WindowsSoftwareDistribution folder.

This above folder is the restoration point for Windows Update service.

6. Now restart the Cryptographic Service.

7. Create another batch file and put the following lines in it and then double click on it to register the modules:

regsvr32 /s Softpub.dll
regsvr32 /s Mssip32.dll
regsvr32 /s Initpki.dll
regsvr32 softpub.dll
regsvr32 wintrust.dll
regsvr32 initpki.dll
regsvr32 dssenh.dll
regsvr32 rsaenh.dll
regsvr32 gpkcsp.dll
regsvr32 sccbase.dll
regsvr32 slbcsp.dll
regsvr32 cryptdlg.dll
regsvr32 Urlmon.dll
regsvr32 Shdocvw.dll
regsvr32 Msjava.dll
regsvr32 Actxprxy.dll
regsvr32 Oleaut32.dll
regsvr32 Mshtml.dll
regsvr32 msxml.dll
regsvr32 msxml2.dll
regsvr32 msxml3.dll
regsvr32 Browseui.dll
regsvr32 shell32.dll
regsvr32 wuapi.dll
regsvr32 wuaueng.dll
regsvr32 wuaueng1.dll
regsvr32 wucltui.dll
regsvr32 wups.dll
regsvr32 wuweb.dll
regsvr32 jscript.dll
regsvr32 atl.dll
regsvr32 Mssip32.dll

Your Windows Update should work.

Preview Wav, Jpg, Pdf in Outlook 2007

I recently wanted to view Wav files in outlook without launching my default WAV viewer. You need something called a Preview Handler to make it happen. The guy over at http://www.azarfamily.org/previewhandlersforwindowsxp/ has done just that. He compiled an preview handler pack that includes wav and various other files. You can download them from his site or here is the link to download from mine. Ultimate Preview Handler Pack This also works on 7 and Vista.

“Error 1327. Invalid Drive: Drive” or “Error 1325 – File name is not a valid short file name” fixes

Typically this happens when you are installing a program and receiving a pop-up message during installation. I removed a drive from my computer and had this happen to me. The fix for it is rather simple:

1.Click Start, and then click Run.
2.In the Open box, type regedit, and then click OK.
3.In Registry Editor, locate the following registry key:
HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerShell Folders
4.In the right pane, note the values in the Data field of each entry. If any value contains a drive that is not correct for your computer, right-click the entry, type c:my documents in the Value data box, and then click OK.
5.Repeat step 4 for each entry whose Data value contains an incorrect drive.
6.Repeat steps 3 through 5 for each of the following registry keys:
HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerUser Shell Folders
HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersion
HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerShell Folders
HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerUser Shell Folders
7.Close Registry Editor.

Re-run your setup program and it should work. Also, I’d recommend running the registry cleaning portion of CCleaner and checking your Environmental Variables (Under System Properties, Advanced, then Environmental Variables.)

Force Network Connection Priority

This describes how to have an adapter take priority of all internet traffic over another. For instance, you have 2 different networks on a single computer, and the wired connection does all your internal communications, but you want the wireless adapter to do all outgoing internet applications (iexplore, firefox, etc…).

Set the Interface Metric

-Open Network Connections (ncpa.cpl)
-Open the Network Connection to take priority (Right click desired connection -> Properties)
-Select Internet Protocol (TCP/IP) (v4 if on Vista or 7) -> Properties
-Click Advanced button on General Tab
-Un-check Automatic Metric
-Enter in “1” for new metric
(optional) enter in a higher metric for the other adapter. I recommend 10 as a baseline, but you can go higher.

Verify new settings on InterfaceMetric using Command Line

-Type: netsh interface ip show address

Make sure your Metrics reflect the changes made and you are finished. If they haven’t changed release/renew to see changes.

The following table lists the link speeds and metrics for computers that run Windows XP Service Pack 2.

Link Speed

Metric

Greater than 200 Mb

10

Greater than 80 Mb, and less than or equal to 200 Mb

20

Greater than 20 Mb, and less than or equal to 80 Mb

25

Greater than 4 Mb, and less than or equal to 20 Mb

30

Greater than 500 Kb, and less than or equal to 4 Mb

40

Less than or equal to 500 Kb

50

Updates Keep failing in Windows Vista / 7 “updates were not configured correctly reverting changes”

I recently ran into a computer that was constantly failing all updates. Here is what I did to fix this issue.

  1. Run registry cleaner to remove orphaned registry entries. My recommendation is to download CCleaner
  2. Run the following commands as an Administrator from command line or Alternatively you can download Updatefix.bat (I Created This)
  3. cd /d %SystemRoot%System32SMIStoreMachine
    attrib -s -h *
    del *.blf
    del *.regtrans-ms

  4. Reboot your computer. The deleted files are regenerated and you can now install windows updates.