This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
computing:disk_space_low [2015/06/15 11:32] gcooper |
computing:disk_space_low [2019/07/27 14:09] (current) gcooper |
||
---|---|---|---|
Line 11: | Line 11: | ||
==== Remove Old Kernels ==== | ==== Remove Old Kernels ==== | ||
+ | |||
+ | === CentOS === | ||
+ | |||
+ | http:// | ||
+ | |||
+ | < | ||
+ | yum install yum-utils | ||
+ | rpm -q kernel | ||
+ | package-cleanup --oldkernels --count=2 | ||
+ | </ | ||
+ | |||
+ | === Debian/ | ||
:!: Uses '' | :!: Uses '' | ||
- | Paste this ant the CLI then run '' | + | Paste this at the CLI then run '' |
< | < | ||
Line 32: | Line 44: | ||
http:// | http:// | ||
+ | |||
+ | ==== Delete $Windows.~BT and $Windows.~WS Folders ==== | ||
+ | |||
+ | '' | ||
+ | |||
+ | < | ||
+ | takeown /F C: | ||
+ | icacls C: | ||
+ | rmdir /S /Q C: | ||
+ | </ | ||
+ | |||
+ | Now copy-paste the following and hit Enter to delete the contents of $Windows.~WS directory | ||
+ | |||
+ | < | ||
+ | takeown /F C: | ||
+ | icacls C: | ||
+ | rmdir /S /Q C: | ||
+ | </ | ||
+ | |||
+ | ==== Delete Old User Profiles ==== | ||
+ | |||
+ | < | ||
+ | cd c:\users | ||
+ | dir | ||
+ | wmic / | ||
+ | </ | ||
+ | |||
+ | ==== Disk Compression ==== | ||
+ | |||
+ | Compress the C: drive from the CLI: | ||
+ | |||
+ | < | ||
+ | compact.exe /s /c /a /i < | ||
+ | </ | ||
==== Empty Recycle Bin for All Users ==== | ==== Empty Recycle Bin for All Users ==== | ||
Line 54: | Line 100: | ||
powercfg.exe -h off | powercfg.exe -h off | ||
</ | </ | ||
+ | |||
+ | ==== Change Pagefile Size ==== | ||
+ | |||
+ | By default, the pagefile will be as large as your system RAM. While this is important for Suspend-to-RAM, | ||
+ | |||
+ | **System Properties -> Advanced -> Performance Options -> Advanced** | ||
==== Tools ==== | ==== Tools ==== | ||
- | **TreeSize Free** is a very useful tool for finding | + | === TreeSize Free === |
+ | |||
+ | | ||
http:// | http:// | ||
- | This is a short script | + | === ICSweep === |
+ | |||
+ | * Cleans temp files | ||
+ | * Good for RDS servers | ||
+ | * Seems to work on 2012 R2 | ||
+ | * Run as administrator | ||
+ | |||
+ | http:// | ||
+ | |||
+ | < | ||
+ | c: | ||
+ | c: | ||
+ | </ | ||
+ | |||
+ | === SBS 2008 === | ||
+ | |||
+ | * Short script | ||
+ | * Probably | ||
< | < | ||
Line 101: | Line 172: | ||
Cleanmgr.exe | Cleanmgr.exe | ||
</ | </ | ||
+ | |||
+ | ==== Windows 2012 and 2012 R2 ==== | ||
+ | |||
+ | **2012 R2 - SxS**: https:// | ||
+ | |||
+ | :!: The **Disk Cleanup Tool** is available in Windows Server 2012, if you **install the Desktop Experience feature**. | ||
+ | |||
+ | :!: All existing service packs and updates cannot be uninstalled after this next command is completed. | ||
+ | |||
+ | Clean up all superseded updates: | ||
+ | |||
+ | < | ||
+ | dism.exe /online / | ||
+ | </ | ||
+ | |||
+ | Clean up after service packs: | ||
+ | |||
+ | < | ||
+ | dism.exe /online / | ||
+ | </ | ||
+ | |||
+ | ===== Outlook ===== | ||
+ | |||
+ | ==== Move Local Cache ==== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | https:// | ||
+ | |||
+ | === Symlink Method === | ||
+ | |||
+ | Perhaps as an administrator: | ||
+ | |||
+ | - **Create a new directory/ | ||
+ | - **Adjust permissions** so that user, and administrators, | ||
+ | - M**ove the user's .OST file** to the new location | ||
+ | - **Create a symbolic link** from the old file/ | ||
+ | - **Start Outlook** | ||
+ | - If any problems, close Outlook and check permissions | ||
+ | |||
+ | As the user whose .OST file we are moving, create the symlink at a command prompt: | ||
+ | |||
+ | < | ||
+ | mklink " | ||
+ | </ | ||
+ |