Windows Hacks

From Torben's Wiki
Jump to navigationJump to search

Boot into Repair Mode

hold SHIFT key while clicking on reboot

Create list of installed programms

wmic /output:InstalledPrograms.txt product get name,version

Startup / Autostart in Windows 10

shell:startup

Disable Hibernate

run commant prompt / cmd as administrator and execute

powercfg.exe /hibernate off

Remove system and hidden attributes

as admin cmd

attrib -h -s FILE


Create Link

e.g. for moving iTunes Backups or some other folder from c: to another partition

mklink /J "%APPDATA%\Apple Computer\MobileSync\Backup" "e:\iTunesBackups"

Take over Ownership of File or Directory

takeown /f E: /r /d Y

(run in admin cmd)

Cleanup files

run cleanmgr as admin

C:\Windows\SoftwareDistribution

from [1]

run cmd as admin
net stop wuauserv
net stop bits
delete all files in C:\Windows\SoftwareDistribution
net start wuauserv
net start bits

C:\Windows\WinSxS

from [2]

run cmd as admin
Dism.exe /online /Cleanup-Image /StartComponentCleanup

Delete files of invalid filename

chkdsk /f
reboot
now delete should be possible

Move/Clone System Partition(s) to new Disk

After quite some pain I finally succeded in moving the dual boot (Windows and Linux) to a new harddisk. For cloning I used EaseUS Todo Backup Free 12.0 without resizing. Than testing that both Linux and Windows run. Than moving and resizing Linux using gparted. Than resizing Windows using AOMEI Partition Assistant Standard Edition 8.5.