Showing posts with label windows. Show all posts
Showing posts with label windows. Show all posts

Friday, 12 February 2016

Windows slow after upgrading to Windows 10 from Windows 7 or 8

If you've upgraded Windows from Windows 7/8 to Windows 10 and finding the system slow, try following the steps below.
  • In the first instance, try disabling Real-Time protection in Sophos on the PC to see if things improve. If there is no difference, leave the real-time protection off for the time being.
  • In Task Manager, order by high-disk usage at the top
  • Look for "Service Host: Local System (Network Restricted)" and monitor it's disk usage for a few seconds.

    If it's usage is high, then press the Windows key, and type Services, and open. Find "Superfetch", stop the service, and then go into it's Properties, and change the Start-up method to "disabled".

    Monitor the Service Host:Local System (Network Restricted) service to see if it's disk usage goes down. If it doesn't, or it does but disk usage is still high, move onto the next step
  • Look for the process "Antimalware Service Executable" and monitor it's usage. This is the process for Windows Defender - it will continue to run even if you open Windows Defender and turn Real-Time protection and everything off. If you try and stop the service, you get a "Access is deniet" message. Assuming after some monitoring this service's disk usage is quite high, follow the next step
  • Press the Windows key, and type "Local group policy" and it should bring up a shortcut to the Local Group Policy Editor, "Edit group policy". Open it.
  • In the Local Group Policy Editor window, expand "Computer Management", and then "Administrative Templates" and then "Windows Components".

  • Expand "Windows Components" and click on "Windows Defender". 

  • Double-click "Turn off Windows Defender", and in the Window that opens, click "Enabled" and then Apply and then close the group policy editor.
  • Now Windows Defender is turned off to stop the Antimalware Service Executable running, and Superfetch has been disabled to dramatically decrease the disk usage of Service Host: Local System (Network Restricted) service.
  • Monitor the running processes for a couple of minutes, whilst opening one or two programs or explorer windows to make sure things have sped up a bit and that the processes above are not running.

Thursday, 12 March 2015

Allow Non-Administrators to Start/Stop Services in Windows 7/8/Server

Sometimes you want a user to have the ability to start/stop services for certain software, but without giving their account the required administrator privileges. The guide below will help you grant permissions for a non-administrator account to have the ability to start and stop a particular chosen service in Windows 7, Windows 8, Windows Server 2008 and Windows Server 2012.

- Click Start, Run and type "mmc.exe"
- Microsoft Management Console opens, once this happens, click File then Add/Remove Snap-in



- Choose "Security Configuration and Analysis" from the list and Add
- Choose "Security Templates" and Add, then Click OK.

We now need to create a blank security template.

- Firstly, create a folder in the root called "Security", e.g. C:\Security
- Go back into the Microsoft Management Console (MMC) and right-click "Security Templates" and then "New Template Search Path".
- Choose the newly created Security directory, e.g. C:\Security and click OK
- Right-Click C:\Security from the console tree on the left and click "New Template" and give it a name, I'll name it "custom services". Click OK



- Right-Click on the "Security Configuration and Analysis" option on the left, and select "Open Database". Browse to C:\Security (or whatever the name of the directory you created previously is) and name the database "Security". Click OK to create a Security.sdb file which is used to apply the changes.
- After clicking OK, an "Import Template" screen comes up - browse to C:\Security and choose "custom services.inf". This will then apply the template with all the local services to the database.
N.B. If you get an error at this point, then you need to go back to the start and create the security templates on a local disk
- Now Right-Click "Security Configuration and Analysis" again and choose "Analyze Computer" and accept the default log path. Then you will see a screen that looks similar to the below



- Now double-click System Services, and scroll down to find the service you want to change stop/start permissions for, e.g. Fax
- Double-Click and tick the "Define this policy in the database" box and then the click the "Edit Security button


- Click Add, and type in the username of the account you want to modify permissions for, then click OK
- Now with the username selected, check the "Allow" permissions for "Start, Stop and Pause" and click OK and OK again


- You'll see a red "x" next to the service because the permissions for it conflict with the local computer permissions, so we now need to apply the new security permissions
- Right-click "Security Configuration and Analysis" from the left and then "Configure Computer" and then click OK.
Now the new permissions should be applied, test to make sure it works, and if it doesn't double check you followed all the steps correctly all the way through

Wednesday, 11 March 2015

Windows Update Cannot Check For Updates

If you're getting the error message "Windows Update cannot check for updates because the service is not running" when you try and run Windows Update, then follow the steps below to attempt to get it working again.
- Firstly, check that you still have the Windows Update Service installed, by going to Control Panel > System & Security > Administrative Tools > Services. Or simply by typing "services.msc" in the Run menu, or in the Start menu in Windows 8.
(click for bigger photo)
Windows 8
- Look for the service "Windows Update". If it is there, right-click and choose Start. If it starts successfully, try running Windows Update again. If it's disabled, double-click it and change start-up type to "Automatic" and try running Windows Update again.
- Assuming the service is missing, then its likely that the registry entry in Windows for the Windows Update Service has become corrupt or been deleted - some viruses do this. (it may be you've had this problem after having a virus).
- Open the Registry Editor by typing "regedit" into the Start menu, and click File > Export to create a backup of the registry - export it to a directory you'll remember (in the root of C: for example)
(click for bigger photo)
- Once the registry has been backed up, browse to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices and look for a key in the left-hand column called "wuauserv". Most likely the key isn't there, or it is empty.
- Import the missing key by downloading it below and installing it onto the problem PC by double-clicking it.
Windows Update Service Win7 x64.reg - Right-Click and Save-As.
- Check the key has installed successfully by browsing to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices again and checking the "wuauserv" is in the left-hand column and that it has entries in it.
(click for bigger photo)
- Restart the PC and try running Windows Update again, and it should be working.
- If update works but they fail to install, follow the steps in here in my other post to clear the Windows Update cache, logs and downloaded files.

Windows Update Failing - Windows 7 / Windows 8

If you're Windows Updates are constantly failing, then try out the steps below.
- Stop the Windows Update Service. Open the Control Panel, browse to System & Security > Administrative Tools and open Services. Alternatively, type "services.msc" under Start > Run, or in Windows 8, simply hit the Windows key to use the Start menu and type "services.msc" and press Enter.
(click for bigger photo)
Windows 8
- Find the service "Windows Update". Right-click and choose "Stop" to stop the service running. Minimize the Services console.
(if there is no Windows Update service listed, see my other blog "Windows Update Service is missing")
(click for bigger photo)
- Open My Computer or Windows Explorer and browse to C:WindowsSoftwareDistributionDatastore and delete everything within this folder
(click for bigger photo)
- Then browse to C:WindowsSoftwareDistributionDownload and delete everything within this folder.
(click for bigger photo)
- Go back into the Services console and Right-click Windows Update and choose "Start" to restart the Windows Update service.
- Go back into Control Panel > System & Security > Windows Update. If you've followed the above steps correctly, it will say "Last check for updates: Never". If this is so, click "Check for updates". It should find new updates and with a bit of luck, updates will download and install successfully.