Install Dedup on Win8.1 (continued)
1. Select the installation Source
In Windows 8.1, the deduplication function does not exist. You need to extract related files from the corresponding Server version, that is, Windows Server 2012 R2.
2. Extract files
There are many directories and files in the installation source. We only need three directories:
\ WINDOWS \ servicing \ Packages, package file;
\ WINDOWS \ winsxs: Assembly file. Except for the Assembly subdirectory, other subdirectories are not required;
\ WINDOWS \ winsxs \ Manifests: configuration file.
Copy the subdirectories and files in these three directories to the same directory. Assume that all files and directories are copied to s: \ 4 \ Packages.
3. incremental Compression
Incremental Compression: Delta Compression
Why do we need to talk about incremental compression? It is because many of the files copied to s: \ 4 \ Packages are incrementally compressed. If you use NotePad to open the files, you can understand only the content starting with DCN PA30, and the rest are garbled.
The file ID.
DC, short for incremental compression. N indicates a certain type of compression. In addition to DCN, there are also DCD and DCM. PA30 should be the version of incremental compression, indicating that the compression uses msdelta. dll is used as the engine, and msdelta is also used for decompression. dll; there is also a version PA19 that uses mspatchc. dll compression, using mspatcha. dll to extract (extract is also called application, apply ).
4. Preparations before installation
Disable the Hash test.
Because the default Assembly file should be uncompressed, but the files we extracted from the installation CD are compressed. During the installation package, the system will perform a Hash test on the Assembly file, certainly cannot pass the test. To do this, you must disable the Hash test function. You need to add a DisableFileHashVerification attribute in the registry. The type is DWORD, the value is 1, and the location is HKLM \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ SideBySide \ Configuration.
5. Installation Package
Command Used by the installation package: Dism
Dism/online/Add-Package/PackagePath: Path of the Package file
Deduplication is a function of the file service role. It depends on some basic functions of the file service, that is, Microsoft-Windows-FileServer-Package.
Dism/online/Add-Package/PackagePath: Microsoft-Windows-FileServer-Package ~ 31bf3856ad364e35 ~ Amd64 ~~ 6.3.9600.16384.mum
Dism/online/Add-Package/PackagePath: Microsoft-Windows-FileServer-Package ~ 31bf3856ad364e35 ~ Amd64 ~ Zh-CN ~ 6.3.9600.16384.mum
Dism/online/Add-Package/PackagePath: Microsoft-Windows-Dedup-Package ~ 31bf3856ad364e35 ~ Amd64 ~~ 6.3.9600.16384.mum
Dism/online/Add-Package/PackagePath: Microsoft-Windows-Dedup-Package ~ 31bf3856ad364e35 ~ Amd64 ~ Zh-CN ~ 6.3.9600.16384.mum
6. Preparations before enabling the Function
This step is critical, because almost all errors are related to the settings here. If the extracted file is an uncompressed original file, skip this step.
As mentioned above, the deduplication function involves 10 sets, three of which have been installed.
During package installation, the content in the registry should be automatically written, but not necessarily. If the function cannot be enabled, you can refer to the appendix to set the relevant registry values. The Registry is located at HKLM \ COMPONENTS \ DerivedData \ Components, and the file is \ Windows \ System32 \ Config \ Components.
Generally, HKLM \ COMPONENTS is not loaded. You need to load it before performing subsequent operations.
7. Enable Functions
Enable-WindowsOptionalFeature-Online-FeatureName File-Services
Enable-WindowsOptionalFeature-Online-FeatureName CoreFileServer
Enable-WindowsOptionalFeature-Online-FeatureName Dedup-Core
8. Verification
If the installation is successful, run the following command.
View the command for deduplication: get-commandDedup
Enable deduplication of Disk Data: Enable-DedupVolume T:
Scan the disk and calculate the deleted duplicate data status: Update-DedupStatus T:
Return the deleted duplicate data status: Get-DedupStatus