Categories
Uncategorized

Making Space on Windows

Task

Creating space on a storage device.

Description

NVME, SSD, HDD, USB, Disk, Cloud – with time, our storage fills up with unnecessary data, this can take up a lot of space and with storage devices, they can slow down the more data they have, even if they are not full.

Quick guide

Use tools, remove temp files.
Find old programs and data.
Making priorities.

Part 0 – Info

Identify the problems

  • Lack of space (20% or more free)
  • Show loading PC

Install the required tools

  • Windows Disk Cleanup (pre-installed)
  • CCleaner
  • TreeSize

Part 1 – Finding files

Making priorities

Finding the files you want to keep and the files you can remove, priority for the biggest size.
Make a list of games and tools you use and which ones you need and don’t need, including programs that overlap and games that are large or unplayed.

Places to look

  • Apps & features (programs)
  • Desktop (personal data)
  • User folder – Documents, Downloads, etc. (projects and personal data)
  • Steam (installed games)
  • C drive

System files to keep

  • Windows, Program Files, Installed programs and directories
  • 33 GB – System Volume Information (System restore)
  • 12 GB – hiberfil.sys
  • 1 GB – pagefile.sys
  • 25 GB – Users/ianea/.nuget – windows programs

Can be removed but are also useful

  • Browsers
  • Browser temp files
  • Development (Unity, Visual Studio, Emulators)
  • Windows common and system files
  • Games and game saves

Currently used games and tools

  • Rocket League – in use
  • Fifa – unused
  • Visual Studio – in use
  • Visual Studio (older version) – unused
  • Projects from GitHub – some in use

Biggest files – A list of my largest folders

User data, Programs, windows and program data/temp files
215 GB – Users/ianea
Program data
64 GB – Users/ianea/AppData/Local
13 GB – Users/ianea/AppData/Local/Google
8 GB – Users/ianea/AppData/Local/Microsoft
6.9 GB – Users/ianea/AppData/Local/Unity
Emulators
48 GB – Users/ianea/.android
18 GB – Users/ianea/.android/avd/pixel5.avd
17 GB – Users/ianea/.android/avd/pixel2.avd
10 GB – Users/ianea/.android/avd/pixel2-k.avd
Windows programs
25 GB – Users/ianea/.nuget
21 GB – Users/ianea/AppData/Roaming
4 GB – Users/ianea/AppData/Roaming/Opera
2.5 GB – Users/ianea/AppData/Roaming/.minecraft
GitHub Repos, Games saves, Projects
13 GB – Users/ianea/source
12 GB – Users/ianea/Documents
11 GB – Users/ianea/Downloads

58 GB – Program Files
17 GB – Program Files/WindowsApps
8 GB – Program Files/Microsoft Visual Studio // 2022
6 GB – Program Files/dotnet
58 GB – Program Files (x86)
14 GB – Program Files/Microsoft Visual Studio // 2019
7 GB – Program Files/Android
57 GB – Windows
18 GB – Windows/Installer
11 GB – Windows/WinSxS
53 GB – ProgramData
22 GB – ProgramData/Microsoft // visual studio

Part 2 – Removing files

  1. Empty recycling bin
  2. Uninstall unused programs
  3. Uninstall unused games
  4. Remove old projects
  5. Remove unused data and files – Downloads, Documents, Desktop
  6. Temp files – CCleaner
  7. Windows update cache – Disk Cleanup
  8. Windows update cache – Manual
    Go to Services – Windows Update – Stop
    Delete C:\Windows\SoftwareDistribution\Download
    Go to Services – Windows Update – Start
  9. Remove files with command line – force remove rm ".\some folder" -r -force
  10. Empty recycling bin (again)

Other possible solutions

1. Move

Move data not frequently used or games onto another drive or USB device.

2. Cloud

Move data onto the cloud with a cloud provider (OneDrive, Google Drive, IDrive, Dropbox).

3. Upgrade

Upgrade to a larger storage device or add additional devices for storage.
You can also use a NAS to store data on the network.

4. Compression (not recommended for SSD lifespan)

Windows Properties – Advanced- Compress.

5. Disable services (not recommended)

Remove Hibernation, Page File, System Restore and other windows services.
You can also uninstall Windows Features

6. Check for viruses

A possible reason for a reduction in usable storage space.

Categories
Uncategorized

Windows Search Fix

Task

Fix an issue causing Windows Search to malfunction – e.g. SearchApp.exe crashing

Description

When typing into the Windows Search – e.g. press Windows Key then start typing, a window would open then close or it would search for one result but close on the next search.

Quick guide

Remove cortana, uninstall, remove with powershell and delete from Registry.
Create website, create/enable config, enable port
regedit – “search” backup, delete

Part 0 – Info

Error identified in Event Viewer

Alternative: Use PowerToys Run instead of Windows Search – Shortcut = Alt+Space

Part 1 – Registry Edit

  1. Run “Registry Editor” – Windows Key + R, type “regedit”
  2. Navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search 
  3. Make a backup of the whole registry and another of this specific folder.
  4. Delete the “Search” folder entry.
  5. Restart your PC and see if Windows Search is still crashing.

Part 2 – (Optional) Remove Cortana

Settings

  1. Go to Settings > Privacy > Background apps
  2. Task Manager > Startup > Cortana > Disable

PowerShell Command

  • Run “Windows PowerShell (Admin)” – Windows key + X, A
# Command 1
WinGet uninstall "cortana"

# Command 2
Get-AppxPackage -allusers Microsoft.549981C3F5F10 | Remove-AppxPackage

Registry

Registry Editor – Navigate to Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search
Delete “BingSearchEnabled” then restart

Other possible solutions

1. Fonts

Fonts folder

  1. Go to: C:\Users\[username]\AppData\Local\Microsoft\Windows\Fonts
  2. Go to folder Properties – Security – Edit – Add – Advanced – Find Now – ALL APPLICATION PACKAGES
  3. Give  “Read & execute” permissions

2. PowerShell Command Search

  • Run “Windows PowerShell (Admin)” – Windows key + X, A
# Command 1
`Get-AppXPackage -Name Microsoft.Windows.Cortana | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}`
WinGet uninstall "cortana"

3. Rename Folder

Rename folder – Microsoft.Windows.Search_cs41h5txwa

4. Re-uninstall

  1. Install Cortana (Microsoft Store)
  2. Uninstall