Tag Archives: Windows 7

Repairing Micrsoft .NET Framework on Windows 7 / Vista

I recently came across a machine where .NET Framework 3.5 wasn’t functioning correctly.  It was needed as a prerequisite and the application was not recognizing it even though it was enabled in the “Turn Windows Features on and off” (Search for this on the Windows Start Menu).

If uninstalling and installing .NET on Vista does not work you can run a command to scan and repair system files.  Since .NET 3.5 is part of Windows 7 you can’t easily uninstall it.  Try this command out and it should help if you actually have corrupt system files.

  1. Open a command prompt (CMD) window and make sure you ‘Run As Administrator’. (Search for CMD in your Windows 7 Start Menu and then right click CMD.EXE and select ‘Run As Administrator’).
  2. Enter the following command and press enter:  sfc /scannow

This can take a while but let it run.  This will scan all protected system files and replace incorrect versions with correct Microsoft versions.  Once it has completed reboot your machine and try again.

sfc

If any errors are reported that SFC was unable to fix, there are steps in this knowledge base article  that explain how to locate and attempt to fix the errors

How to completely / cleanly remove a Printer from Windows 7

Open the ‘Start‘ menu and type ‘CMD‘ in the search bar.  Right click on ‘CMD‘ and select ‘Run as Administrator

When the command prompt opens up type the command ‘printui /s /t2‘.

printui

Select the Printer you would like to Remove and click on ‘Remove..’.  Remember to select ‘Remove driver and driver package’.

If you have difficulty removing the driver and package you can stop and start the ‘Print Spooler’ service.  You can do this by searching for ‘service.msc’ in your Windows 7 start menu (Remember to Run as Administrator).  Find the service named ‘Print Spooler’.  Right click and Stop the service and then Start the service.  After you have done that you can try removing the Driver / Driver Package again.

Windows 7: Unable to access network share?

This is a pretty random issue we came across at my job but apparently this can happy with Windows 7.  Users were randomly losing connection to their network share.  It would tell them that the location is unavailable.  We realized that the Offline files service in Windows 7 was running and for some reason it was causing their drive to go offline.

There is a simple solution for this.  First, turn off and disable the ‘Offline Files’ service if you don’t plan on using it.  Also, add the following registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\NetCache

Create Key Name: FormatDatabase
Type: DWORD
Value: 1

Note:  You don’t need to disable the service but there is no reason it should be running for desktop computers.

Warning: All cache files are deleted and unsynchronized data is lost. (applies to laptops that sync)