- Включение и отключение компонентов Windows 10
- Работаем с Windows Features
- Управление Features on Demand (FOD)
- Установка и переустановка пакетов языков (Language Interface Packs, LIP)
- How to Shutdown/Power off Windows 10 PC Using CMD
- Windows 10 Won’t Shut Down Problem
- Guide: How to Shut Down Windows 10 PC/Laptop by Using Command-Line
- How to Disable Windows File Compression
- Windows 10, 8, 7, and Vista Command
- Windows Group Policy
- Windows 2000 and XP NTFS Volumes
- You Might Also Like
- Reader Interactions
- Comments
- Did this help? Let us know! Cancel reply
Включение и отключение компонентов Windows 10
Как известно, Windows 10 отличается набором компонентов от предыдущих версий операционных систем Windows. Зачастую требуется их включить или выключить, чтобы они не потребляли системные ресурсы, да и просто не мешали. В этой статье мы рассмотрим как это сделать быстрее и эффективнее.
Начнем с того, что существует два основных способа работы с компонентами (они еще называются features) — утилита DISM и командлеты Powershell. И то и другое встроено в Windows 10, в отличие от Windows 7, где dism можно было добавить или установив пакет Windows ADK, или руками скопировав dism.exe с другого компьютера.
Сразу отмечу, что утилиту dism и среду powershell для работы с системой необходимо запускать от имени администратора, даже если ваш аккаунт уже находится в группе локальных админов. Итак, вы или находите cmd или windows powershell в меню и, кликнув правой кнопкой мышки, выбираете «Запуск от имени администратора».
В Windows 10 есть понятие Features и Capabilities. Первое — это привычные нам компоненты, которые можно найти в Панели управления -> Программы и компоненты -> Включение и отключение компонентов Windows. То есть это встраиваемые модули, которые выполняют определенный сервисный функционал.
Capabilities — это дополнительные возможности, которые расширяют возможности интерфейса и увеличивают удобство пользователя. Среди них — Language packs, наборы шрифтов. Да, Microsoft удалил часть нестандартных шрифтов, которые теперь вынесены в опциональные компоненты. Скачать эти компоненты можно в виде ISO файла с сайта Volume Licensing Service Center или напрямую через Internet и графический интерфейс Windows. Такую концепцию Microsoft назвала Features on Demand (FOD). Их в более ранних версия Windows не было.
Работаем с Windows Features
Итак, список установленных компонентов можно посмотреть командой
Dism /online /Get-Features
Вот как в Powershell можно получить список всех компонентов командлетами Get-WindowsFeature (для Windows Server) или Get-WindowsOptionalFeature (Windows 10):
Чтобы получить список отключенных компонентов, введите:
Get-WindowsOptionalFeature -Online | ? state -eq ‘disabled’ | select featurename
Этот список также можно вывести в файл (для windows Server):
Get-WindowsFeature | Where-Object <$_.Installed -match “True”>| Select-Object -Property Name | Out-File C:\Temp\WindowsFeatures.txt
Посмотрев список названий и их состояние, можно использовать эти названия для того, чтобы компоненты включить или выключить:
Dism /online /Enable-Feature /FeatureName:TFTP /All
ключ /All позволяет включить также все дочерние компоненты;
Установка компонентов через Powershell выполняется командой Enable-WindowsOptionalFeature.
Enable-WindowsOptionalFeature -Online -FeatureName RSATClient-Roles-AD-Powershell
Параметр -All включает все дочерние компоненты.
Dism /online /Disable-Feature /FeatureName:TFTP
Аналогично, через Powershell это можно сделать командой Disable-Windowsoptionalfeature -online -featureName [feature name].
Обратите внимание, некоторые фичи имеют разные названия в Windows 7 и Windows 10. Например, RSAT в Windows 7 — это RemoteServerAdministrationTools, а в Windows 10 — RSATclient.
Управление Features on Demand (FOD)
Если вы устанавливаете их через графический интерфейс, то вам необходимо пройти “System –> App & features –> Manage optional features” и нажать знак + напротив необходимых компонентов.
Чтобы сделать это автоматизированно через командную строку, наберите чтобы получить список доступных компонентов:
DISM.EXE /Online /Get-Capabilities
или на Powershell:
Как и прежде, запомните название необходимых вам компонентов, чтобы включить их командой (на примере .Net Framework 3):
DISM.EXE /Online /Add-Capability /CapabilityName:NetFx3
или на Powershell:
Add-WindowsCapability –Online -Name NetFx3
Если же у вас нет доступа в Интернет, то есть выход. Итак, вы скачиваете ISO образ диска с FOD компонентами с сайта Volume Licensing Service Center. Файлы будут разные для разных релизов Windows 10 — 1511, 1607, 1703, 1709. Важно помнить, что компоненты одного релиза не подходят к другому. Если вы сделаете in-place upgrade (установка одного релиза поверх другого через обновление), то несовместимые установленные компоненты будут удалены без вашего желания! Да, Microsoft удаляет то, что считает несовместимым при обновлении.
Так вот, ISO файл содержит набор неизвестных и сложных для понимания файлов с расширением cab. Вот чудесный файлик на сайта Microsoft, который обясняет назначение каждого файла. Итак, существуют следующие типы FOD:
- Microsoft-Windows-LanguageFeatures-Basic — проверка правописания для различных языков и раскладок клавиатуры;
- Microsoft-Windows-LanguageFeatures-Fonts — национальные шрифты, например, азиатские
- Microsoft-Windows-LanguageFeatures-OCR — средства для распознавания шрифтов
- Microsoft-Windows-LanguageFeatures-Handwriting — средства для распознавания рукописного ввода
- Microsoft-Windows-LanguageFeatures-TextToSpeech — средства преобразования текста в голос, используемые подсказчиком Cortana
- Microsoft-Windows-LanguageFeatures-Speech — распознавание голоса
- Microsoft-Windows-InternationalFeatures — пакеты национальных настроек, например, для Тайваня
Итак, для добавления таких FOD компонентов, используйте команды вида (замените имя компонента):
Dism /Online /Add-Capability /CapabilityName:Language.Basic
Для удаления FOD:
Dism /Online /Remove-Capability /CapabilityName:Language.Basic
Установка и переустановка пакетов языков (Language Interface Packs, LIP)
Язык интерфейса Windows можно поменять, установив так называемые LIP. ранее они назывались MUI (Multi user interface). Файлы LIP выглядят так: Microsoft-Windows-Client-Language-Pack_x64_es-es.cab для испанского языка. Выглядеть установка будет примерно так:
Dism /Add-Package /online /PackagePath:»C:\Languages\Microsoft-Windows-Client-Language-Pack_x64_fr-fr.cab»
Dism /Remove-Package /online /PackageName:Microsoft-Windows-Client-LanguagePack-Package
В следующей статье мы поговорим как с помощью DISM и Powershell управлять так называемыми Modern-приложениями AppX.
How to Shutdown/Power off Windows 10 PC Using CMD
Windows 10 Won’t Shut Down Problem
Windows 10 won’t shut down problem occurs every time when Microsoft released an update. This time when the anniversary update was released on August 2, many people began to report Windows 10 start menu not working, which stopped them from accessing the power button. Finally, they don’t know how to power off PC as they lost the usual way.
«After installing Windows 10, my laptop no longer shuts down properly. Last night, after I finished the PDF editing, I turned off the computer to have a rest. Windows logoВ existed and seemed to shut down fine, but my laptop itself did not shut down. I was left with a black screen and my power lights and backlit keyboard still on. If I waited a while then held the power button for a second, the hardware then shut down and Windows did not report any errors the next time the computer is started up.»
We received many people’s complaints about being unable to shut down their computers through power button, which exactly resemble this old post on Microsoft community. To solve the problem, people have to learn a new way to shutdown PC before Microsoft released another Windows 10 update to fix this bug.
Guide: How to Shut Down Windows 10 PC/Laptop by Using Command-Line
It’s very useful to learn how to use command line to shutdown a Windows 10 computer when Windows file crashes or computer screen freezes or other stuck errors that prevent system shutdown. Follow the guide below strictly and try to close Windows 10 when it does not turn off.
STEP 1. Start->Run->CMD;
STEP 2. Type «shutdown» in the open command prompt window;
STEP 3. List of various choices that you can do with the command will be listed down;
STEP 4. Type «shutdown /s» to Shutdown your computer;
STEP 5. Type «shutdown /r «to Restart your windows PC;
STEP 6. Type shutdown /l» to Log off your computer
SETP 7. Type «shutdown /a»to Abort the shutdown process before the timeout;В
SETP 8. Type shutdown to know more choices in system shutdown process.
How to Disable Windows File Compression
By Mitch Bartlett 10 Comments
This tutorial shows you how to disable the File Compression feature in Microsoft Windows.
Windows 10, 8, 7, and Vista Command
- Select the “Start” button, then type “CMD“.
- Right-click “Command Prompt“, then choose “Run as administrator“.
- If prompted for a password, enter credentials for an account that has administrator rights.
- Type the following then press “Enter“.
- fsutil behavior set disablecompression 1
You should receive a message that says “NOTE: Changes to this setting require a reboot to take effect.” Restart the computer to make the change stick.
If you wish to enable it again, you can use the command fsutil behavior set disablecompression 0
Windows Group Policy
- From the Group Policy Editor, navigate to “Computer Configuration” > “Administrative Templates” > “System” > “Filesystem” > “NTFS“.
- Open the “Do not allow compression on all NTFS volumes“.
- Select the “Enabled” radio button, then select “OK“.
Windows 2000 and XP NTFS Volumes
- Hold down the “Windows key” , then press “R“.
- Type “regedit” and select “OK“.
- Navigate to the following:
- HKEY_LOCAL_MACHINE
- SYSTEM
- CurrentControlSet
- Control
- FileSystem.
- Look for an entry on the right side for “NtfsDisableCompression“. If it doesn’t exist, you will need to create it. To do so, right-click on “FileSystem“, then select “New” > “DWORD Value“. Give the value a name of “NtfsDisableCompression“. Press the “Enter” key when you are done.
- Right-click the “NtfsDisableCompression” entry and click “Modify“.
- To disable compression set the “Value data” to “1“. (To enable compression again, set the Value data to 0 or delete NftsDisableCompression)
- Restart the computer to apply changes.
Now when trying to compress a folder, the following error will be produced:
An error occurred applying attributes to the file:
Access is denied.
You Might Also Like
Reader Interactions
Comments
Autumn Defloria says
Right click c drive go to properties go to general and unlock compress this drive to save disk space. Perfect n done
One way to get rid of ntfs compression is to use non 4KiB NTFS cluster size, cluster size is selectable at format time, but with some 3rd party tools cluster size can be changed without loosing data.
NTFS compression is only for 4KiB cluster sized NTFS partitions.
So just use 8KiB cliuster size up to 32KiB, do not use more than 32KiB (among it is possible) because some tools / disk apps will fail (like some defragmenters).
Also there is a more drastic solution, just disallow NTFS compression for all volumes (not sure how it dares with already NTFS compressed files), using a command in a command line run with admin rights.
To do not allow any NTFS compression on any volume, the comand is:
fsutil behavior set disablecompression 1
To undo that change (aka, allow NTFS compression on some volumes):
fsutil behavior set disablecompression 0
Hope that helps!
If none of the above works for you, try this method that worked for me:
Open My Computer, right click on your C: drive, then select “Attributes”, a window pops up, untick the 2nd bottom box which says “Compress files to save disk space” (or something similar to that)
Dario Leslie says
I actually found a way on how to solve the compressed file download issue, please include it here!
Open CMD as admin then type compact/compactos:query to check if Win10 itself was compressed, if yes: congrats, we found the issue. Now just type compact/compactos:never to undo it. Can take a while until everything’s finished so give it a good while.
Dario Leslie says
I already tried the command prompt line as administrator but nonetheless all my newly downloaded files are still compressed. Any way to turn this annoying “feature” off?
I don’t see any selection for “run as administrator” from the command prompt.
So actually… the command line way disabled file compression for one reboot it seems. When I rebooted again (several days later) it went right back to compressing files! I then went to modify the group policy, and it’s STILL compressing all new files on my computer… this is driving me nuts! Still looking for a -permanent- solution to this very annoying issue…
I just used the command prompt version of this fix to disable file compression that was driving me nuts because I ran low on diskspace recently, and it did the trick! I’m running Win10 64-bit version. Thank you for this!
Ulrich Scharmer says
I followed your instructions (command line), then I check the registry entry (it showed: NtfsDisableCompression, value data 1). But still the same: any file I download to my download folder is compressed (blue double arrows).
after windows 10 continiously compressing the files on my desktop to free up disk space, i found this tweak helpful to stop this behaviour that otherwise cannot be stopped by the user.
Did this help? Let us know! Cancel reply
This site uses Akismet to reduce spam. Learn how your comment data is processed.