Skip to content
Tech Master Tech Master

OneStopTechnical Forum

  • Books
  • AI
  • Networking
  • Windows
  • Linux
  • Cloud
  • Mac
  • Active Directory
  • Azure
  • Cloud
  • Exchange
  • M365
  • Server 2025
  • Storage
  • Vsphere
  • Website
  • Database
  • Security
  • Knowledge Base
  • VPN
Tech Master
Tech Master

OneStopTechnical Forum

Default Windows directories and their purposes

blog.payperitem.com, April 3, 2025

1. System Directories

DirectoryPathPurpose
WindowsC:\WindowsMain system directory containing OS files.
System32C:\Windows\System32Core system files, including DLLs and executables for Windows services and utilities.
SysWOW64C:\Windows\SysWOW6432-bit system files on 64-bit Windows (opposite of what the name suggests).
WinSxSC:\Windows\WinSxSSide-by-side assemblies for DLL versioning (stores multiple versions of system files).
TempC:\Windows\TempTemporary files used by Windows and applications.

2. User Directories

DirectoryPathPurpose
UsersC:\Users\Contains all user profiles.
DesktopC:\Users\%USERNAME%\DesktopUser’s desktop folder.
DocumentsC:\Users\%USERNAME%\DocumentsDefault location for saved documents.
DownloadsC:\Users\%USERNAME%\DownloadsDefault download folder for browsers.
PicturesC:\Users\%USERNAME%\PicturesDefault folder for images.
MusicC:\Users\%USERNAME%\MusicDefault folder for music files.
VideosC:\Users\%USERNAME%\VideosDefault folder for video files.
AppDataC:\Users\%USERNAME%\AppDataStores user-specific application data (hidden by default).
LocalC:\Users\%USERNAME%\AppData\LocalLocal application settings and cache.
RoamingC:\Users\%USERNAME%\AppData\RoamingUser data that syncs across devices in domain environments.
LocalLowC:\Users\%USERNAME%\AppData\LocalLowMore restricted storage for security purposes (e.g., Internet Explorer).

3. Program Files Directories

DirectoryPathPurpose
Program FilesC:\Program FilesDefault location for installed 64-bit applications.
Program Files (x86)C:\Program Files (x86)Default location for installed 32-bit applications on 64-bit Windows.
Common FilesC:\Program Files\Common FilesShared files for installed programs.

4. System Configuration & Logs

DirectoryPathPurpose
System Volume InformationC:\System Volume InformationStores system restore points and indexing data (restricted access).
ProgramDataC:\ProgramDataShared application data for all users.
PerfLogsC:\PerfLogsPerformance logs and diagnostic reports.
Recycle BinC:\$Recycle.BinStores deleted files (hidden by default).

5. Boot & Recovery Directories

DirectoryPathPurpose
BootC:\BootBoot configuration files (on some installations).
EFI (ESP Partition)C:\EFI or C:\Boot\EFIBoot files for UEFI systems (usually on a separate partition).
RecoveryC:\RecoveryRecovery environment files for system repair.

1. Modifying Folder Permissions & Ownership

Some Windows directories (like System32, Program Files, and System Volume Information) are protected and require administrator rights to modify.

Take Ownership & Modify Permissions (GUI Method)

  1. Right-click on the folder → Properties.
  2. Go to the Security tab → Click Advanced.
  3. Click Change next to Owner → Type "Administrators" → Click Check Names.
  4. Select Replace owner on subcontainers and objects → Click OK.
  5. In the Security tab, click Edit → Select "Administrators" → Check "Full control".
  6. Click Apply and OK.

🔹 Command Line Method (Take Ownership & Full Control)

powershell

takeown /f "C:\Folder\Path" /r /d y
icacls "C:\Folder\Path" /grant Administrators:F /t /c /l /q
  • takeown makes you the owner.
  • icacls grants full control to administrators.

2. Relocating System Folders

Windows allows moving some directories (like Documents, Downloads), but others (like System32) are hardcoded.

Move User Folders (Documents, Downloads, etc.)

  1. Open File Explorer (Win + E).
  2. Right-click the folder (e.g., Documents) → Select Properties.
  3. Go to the Location tab → Click Move….
  4. Choose a new location (e.g., another drive) → Click Apply.
  5. Windows will prompt to move files—select Yes if needed.

🔹 Registry Hack for Changing Program Files Location
(Only for fresh installs—DO NOT use on an existing system!)

  1. Open Registry Editor (Win + R → regedit).
  2. Navigate to: CopyEditHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion
  3. Find ProgramFilesDir and ProgramFilesDir (x86).
  4. Change their values to the new location (D:\Program Files).
  5. Restart your system.

💀 Warning: Changing Program Files on a live system can break installed applications!


3. Cleaning Up & Maintaining Windows Directories

Over time, system directories accumulate junk files. Here’s how to clean them up safely.

Clear Temporary Files

powershell

del /s /q /f C:\Windows\Temp\*
del /s /q /f C:\Users\%USERNAME%\AppData\Local\Temp\*

Or use Disk Cleanup (cleanmgr):

  1. Press Win + R, type cleanmgr, and hit Enter.
  2. Select your drive (C:), click OK.
  3. Click Clean up system files, check Temporary files, Windows Update Cleanup, Recycle Bin, etc.
  4. Click OK to delete.

Remove Old Windows Update Files

powershell

Dism.exe /Online /Cleanup-Image /StartComponentCleanup /ResetBase

This will delete outdated update files and free up several GBs of space.


Permanently Disable Windows Reserved Directories

Disable System Volume Information (Restore Points)

powershell

vssadmin delete shadows /all /quiet
wmic shadowcopy delete

Then disable restore points:

  1. Open System Properties (Win + R → sysdm.cpl).
  2. Go to the System Protection tab.
  3. Select C:\, click Configure → Choose Disable system protection.

Empty WinSxS Without Breaking Windows

powershell

Dism.exe /online /Cleanup-Image /SPSuperseded

This removes old service packs and updates from C:\Windows\WinSxS.


Special Cases: Hidden/System Folders

Some directories are locked by Windows:

FolderHow to Access/Modify
C:\System Volume InformationGrant ownership (takeown /f "C:\System Volume Information" /r /d y)
C:$Recycle.BinEmpty it using rd /s /q C:\$Recycle.Bin
C:\Windows\WinSxSUse Dism.exe to safely clean it
C:\Users\All Users (ProgramData)Move it via Registry (not recommended)
Networking

Post navigation

Previous post
Next post

Related Posts

Trouble shooting on Dc when all FSMO roles transferred to new server and after shutting down the old server it search for the OLD DC

April 11, 2025April 11, 2025

When you’ve transferred all FSMO (Flexible Single Master Operations) roles to a new Domain Controller (DC) and shut down the old DC, yet clients or other DCs are still searching for the old server, it usually means residual references to the old DC are lingering in Active Directory or DNS….

Read More

🔥 Firewall vs IDS vs IPS 🛡️

April 3, 2025April 3, 2025

Feature Firewall 🔥 Intrusion Detection System (IDS) 👀 Intrusion Prevention System (IPS) 🚧 Purpose Controls and filters network traffic Monitors and detects suspicious activity Detects and blocks threats in real time Function Enforces security policies (allow/block traffic) Detects attacks but does not block them Detects and blocks threats automatically Placement…

Read More

Deep understanding on Lan Viewer

April 3, 2025April 3, 2025

“LAN Viewer” is a broad term, but it typically refers to tools or techniques used to scan, monitor, and manage devices within a Local Area Network (LAN). Depending on your use case, this could involve: support@payperitem.com indabhar@gmail.com

Read More

Recent Posts

  • List of AD Schema Versions
  • OldNewExplorer Free Download For Windows 11, 10, 8 and 7 [Latest Version]
  • How to Get the Classic (old) Context Menu on Windows 11
  • BitLocker Recovery Keys
  • Active Directory and Server hardening

Recent Comments

No comments to show.
June 2025
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« May    
Log in
©2025 Tech Master | WordPress Theme by SuperbThemes
  • Login
  • Sign Up
Forgot Password?
Lost your password? Please enter your username or email address. You will receive a link to create a new password via email.
body::-webkit-scrollbar { width: 7px; } body::-webkit-scrollbar-track { border-radius: 10px; background: #f0f0f0; } body::-webkit-scrollbar-thumb { border-radius: 50px; background: #dfdbdb }