Catégories
Geek Hacking

Group Policy Editor (gpedit) and Local Security Policy Editor (secpol) in Windows Home Edition

One of the major restriction windows home edition has, for me, is the lack of the 2 tools gpedit and secpol.

But thoses tools can easily be added, either by just copying a few files from a Pro or Enterprise version of Windows, which most do, or by a simple trick :

http://pastebin.com/Bj56B0sX

@echo off
dir /b C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt
dir /b C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>List.txt
for /f %%i in ('findstr /i . List.txt 2^>nul') do dism /online /norestart /add-package:"C:\Windows\servicing\Packages\%%i"
pause

Afterwards, a few steps of sfc /scannow and dism /online /Cleanup-Image /scanhealth, dism /online /Cleanup-Image /checkhealth, dism /online /Cleanup-Image /restorehealth, possibly with a /source (global options), can check you have the right version, or possibly even « fix » it by replacing it with the correct version.

Merging several *.swm files into a .wim is done with
DISM /Export-Image /SWMFile:install*.swm /Sourceindex:1 /DestinationImageFile:installwim.wim(help), which is usefull for some installation support like the OEM ones.

Concevoir un site comme celui-ci avec WordPress.com
Commencer