DISM & .Net Framework on Windows 8.1 and 10

Useful DISM commands I can never rememeber

Install .Net Frameworks 3x

Dism /online /enable-feature /featurename:NetFx3 /All /Source:<drive>:\sources\sxs /LimitAccess


DISM /Cleanup-Image

Check Logs

  • C:\Windows\Logs\CBS\CBS.log
  • C:\Windows\Logs\DISM\dism.log

Dism /Online /Cleanup-Image /CheckHealth

Dism.exe /online /Cleanup-Image /StartComponentCleanup

Dism /Online /Cleanup-Image /ScanHealth

Dism /Online /Cleanup-Image /RestoreHealth

sfc /scannow


CSC Folder – Offline Files

Offline files are stored in the \windows\CSC folder

To delete the offline files in CSC Folder, you will first have to disable Offline Files. Then, you can change the permissions of the CSC Folder and its subfolders and delete them.

Step 1: Disable the Offline Files.

a.   Open Sync Center and click on Manage Offline Files on the left.

b.  Select the Disable Offline Files Button and reboot the computer.

Step 2: Give yourself all the permissions.

a.   Press Windows key + X and select Command Prompt (Admin).

b.  Type these commands and press Enter after each one.

cd c:\Windows

takeown /f csc /r /a /d y > NUL

icacls csc /grant Administrators:(F) /t /l /q

c.   Delete the folders under C:\Windows\CSC.

Note: You will need administrator access or password to perform these steps.




Synology Raid Rebuild – Speed up the rebuild process

Telnet to the Synology NAS, login in a root.   (You may need to enable Telnet Server first)

Raid Stats Command
cat /proc/mdstat

Default Raid Values
cat /proc/sys/dev/raid/speed_limit_max
cat /proc/sys/dev/raid/speed_limit_min

Improve Rebuild Speed  –  increase the speed_limit_min value.
echo 40000 > /proc/sys/dev/raid/speed_limit_min

check speed with
cat /proc/mdstat
Max speed on my DS1812+ with DSM5.1  was just under 40000K/sec
So 3TB Disk took approx 20hrs to rebuild

Remove a corrupt User Profile

1. Rename the profile Directory   c:\users\login name  i.e Login_Name.bak

2. Run Regedit, find the login name from the sub keys in  HKLM\SOFTWARE\Microsoft\Windows NT\ CurrentVersion\ProfileList

and rename with a .bak  i.e   S-1-5-21….

Look in each one for ProfileImagepath that matches the one you renamed in point 1.

Don’t forget to backup the Registry before you start, as getting this wrong could damage your Operating System.