A következő címkéjű bejegyzések mutatása: windows 7. Összes bejegyzés megjelenítése
A következő címkéjű bejegyzések mutatása: windows 7. Összes bejegyzés megjelenítése

2017. január 3., kedd

Agressively reducing WinSXS with DISM

In my recent quest to reduce virtual server images I noticed that a huge part of the total image is taken up by the WinSXS folder. Here is a comprehensive list of DISM commands you can run to reduce that beyond what is possible by running "Disk Cleanup" from the properties of the C: drive.

Always use a command prompt that is run as Administrator (start menu, type CMD, right click on cmd.exe, Run as Administrator)!

for Windows 8.x, 10 and Windows Server 2012 (R2)

It's always a good idea and can avoid a lot of strange error messages to make sure the Deployment Image is in a healthy condition:
Dism /Online /Cleanup-Image /RestoreHealth

Use this to understand how much of your WinSXS is actually shared with (actively used by) Windows, and how much is taken up by unused features / packages and other stuff:
dism.exe /Online /Cleanup-Image /AnalyzeComponentStore

Use this to get rid of the files from before a service pack was applied:
Dism /online /Cleanup-Image /SPSuperseded

And this one will make sure only the latest necessary version of each file in WinSXS is kept around:
Dism /online /Cleanup-Image /StartComponentCleanup /ResetBase

More aggressive cleansing

Should you want to get rid of all the unused features as well, you can do this:
DISM.exe /Online /English /Get-Features /Format:Table > features.lst

Then you can use this short bash command line to create a .bat file to remove all files that belong to disabled features: (use your Linux, or for windows: use the Linux subsystem in Windows 10, Cygwin on earlier versions of Windows to run bash)
grep '| Disabled\s*$' CMOD-features.lst|cut -d '|' -f 1|while read; do echo "DISM.exe /Online /Disable-Feature /featurename:${REPLY// /} /Remove"; done > remove-disabled-features.bat

Then just run the created .bat file to remove all the rest of the cruft. In theory Windows will be able to reinstall these files if you turn on any of the features, for which the files were removed, but I would not go ahead with the removal until I am reasonable sure I only remove what I will not need. YMMV!

For Windows 7 and Windows Server 2008 R2

It's always a good idea and can avoid a lot of strange error messages to make sure the Deployment Image is in a healthy condition:
dism /online /Cleanup-Image /scanhealth

Use this to get rid of the files which were deprecated by installed Service Packs:
DISM.exe /Image:C:\test\offline /Cleanup-Image /spsuperseded /hidesp

You can get the list of packages, and seems safe to remove the ones that are not "Installed" but "Staged" or "Superseded"

dism /online /Format:Table /Get-Packages > packages.lst

Then remove them, for example:
dism /online /remove-package /packagename:Microsoft-Windows-CodecPack-Basic-Package~31bf3856ad364e35~amd64~~6.1.7601.17514

You can also list the installed features both enabled and disabled:
dism /online /get-features >features.lst

But so far I have found no way on the older Windows versions to remove the files from WinSXS that belong to disabled features...

2015. június 28., vasárnap

Change Drive Letter and Paths greyed out? (Windows 7)

If you use Backblaze cloud backup it can be utterly frustrating that disconnecting and reconnecting USB drives can change their drive letters, and Backblaze has no method of cleverly "following"them.

Even more frustrating, that they do not provide a knowledge base article how to fix it (change it back).

But the worst thing happens, when for some reason you cannot do it right clicking your computer, then "Manage" then "Disk Management", then right clicking the Volume (not the disk!) with the improper drive letter: for one out of my three USB HDDs that option is greyed out!

Let's cut to the chase: i found the solution on this forum:
1. Open a command prompt.
2. Type in diskpart.
3. Type list disk to see a list of disks.
4. Type select disk #  (where # is the disk you want).
5. Type list volume to see partitions.
6. Type select volume #  (where # is the volume you want).
7. Type assign letter=x  (where x is the drive letter).

Using a command line and diskpart just worked for me! YMMW!

2010. június 8., kedd

Szabad hely Windows 7 / Vista alatt: WinSXS Lite

Edit: just do this on an up to date Windows 7 / 8 system: http://blogs.technet.com/b/askpfeplat/archive/2013/10/08/breaking-news-reduce-the-size-of-the-winsxs-directory-and-free-up-disk-space-with-a-new-update-for-windows-7-sp1-clients.aspx

Van egy fantasztikus, a restore pointokkal szemben (elvileg) sokkal jobban működő rendszerfájl visszaállítási szolgáltatás a két új Windowsban.
Sajnos a gyakorlatban hajlamos igen sok helyet felzabálni (nálam most egy viszonylag friss Windows 7 installon 6,37 GB a Windows\WinSXS mappa).
Annak megállapítására, hogy mik a "nagyfogyasztók" javaslom a nagyon intuitív Disk Space Fan alkalmazást.

zok számára, akik sokszáz GB-os mobil winchesterekkel rendelkeznek ez nem igazán gond. Aki viszont szűkös de gyors SSD-n vagy virtuális gép szűkös virtuális lemezén dolgozik, annak nagyon hasznos lehet a WinsxsLite alkalmazás (valójában egy részletesen kidolgozott script .bat-ban).

Önmagában tartalmazás a részletes help-et, de a lényeg: két fázisban (szinten) alkalmazható. Az elsőben kiír néhány megőrzésre nem érdemes (pl. média) fájlt az sxs mappából és azokat a fájlokat, amik teljesen megegyeznek a diszken máshol található fájllal azokat hard link-re cseréli (így csak egyszer foglalja a helyet a diszken.)
A második fázis futtatása lecseréli az összes régebbről eltárolt DLL stb. verziót a legújabbra, még több helyet takarítva meg.
Az első futtatásra csak részletes magyarázatot ad, aztán lehet hozzákezdeni a nagytakarításhoz.

Rendszeres olvasók