Включение и отключение компонентов 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.
Turn Windows features on or off
I am using Windows 7 professional version 8.0.50727.42 with all windows updates applied. I am trying to install Microsoft.NET framework 2.0 SP 1 and it keeps telling me that I have to use «Turn Windows features on or off» to install the 2.0 SP1 and it terminates. When I go to the «Turn Windows features on or off» function in the control panel, it doesn’t have Microsoft.NET 2.0 as one of the features to turn on or off.
How can I get my version of windows to recognize the 2.0 to be able to proceed?
According to this thread: http://social.msdn.microsoft.com/Forums/en-US/netfxsetup/thread/f983b4e9-ab63-4497-a20a-9acc0df83fd9
For Windows 7, .NET Framework 3.5 with SP1 is shipped with it as one of OS component.
For .NET Framework 3.5 with SP1, it includes .NET 2.0 with SP2 and .NET 3.0 with SP2 as prerequisite.
This means, you have the .NET Framework 2.0 SP2, 3.0 SP2 and 3.5 SP1 plus a few post 3.5 SP1 bug fixes on Windows 7. They are OS components . We don’t need to manually install it.
Please use Verification Tool to verify .Net Framework 2.0. If .Net Framework 2.0 cannot be verified on your computer, you can try to follow the steps mentioned in the following blog to repair the .NET Framework 2.0 on Windows 7.
See: http://blogs.msdn.com/astebner/archive/2007/03/26/how-to-repair-the-net-framework-2-0-and-3-0-on-windows-vista.aspx (also apply to Windows 7)
Or you can try to repair OS. Here is a KB about this, please see: http://support.microsoft.com/kb/936212/
Since .NET Framework 2.0 is installed as a part of the OS, the cause can be that OS is not well installed on your PC.
You can try the following:
Click Start
Type: CMD, from the results, right click CMD
Click ‘Run as Administrator’
At the Command Prompt, type: sfc/scannow
This will check for any integrity violations
Turn windows features off net framework
This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.
Answered by:
Question
When ever I am trying to install .Net framework on my machine (Vista 32 bit machine) it gives above error.
Even after «Turning on or off windows features» through control panel, it continue giving the same error.
Has anybody faced this issue befor?
Answers
What .NET Framework version are you trying to install on your machine? Vista already has .NET Framework 3.0 as an OS component in it. So if you are trying to install a version lower than .NET Framework 3.5, you will see this message. All you would need to do in this case would be to goto Control Panel -> Programs and Features -> Turn Windows features on or off -> Check the box next to Microsoft .NET Framework 3.0.
All replies
What .NET Framework version are you trying to install on your machine? Vista already has .NET Framework 3.0 as an OS component in it. So if you are trying to install a version lower than .NET Framework 3.5, you will see this message. All you would need to do in this case would be to goto Control Panel -> Programs and Features -> Turn Windows features on or off -> Check the box next to Microsoft .NET Framework 3.0.
I had exactly the same problem, but i fixed it myself bu going into the windows features and unticking an option that says
«Microsoft .NET Framework 3.5.1»
Unticking this and clicking okay and let it do its thing.. then retry installing .net 3.5
workd for mee 😀
If it works for anyone else then please say soo..
BTW im using windows 7
I’am using windows 7 professional
I have that error when i want tick the box on Microsoft .NET Framework 3.5.1
When i tic it its show an error saying «An error has been occurred. Not all of the features were successfully changed».
I also use the cleaner program for the .NET Framework
and also i type in cmd >> sfc \scannow its scaning and nothing happen
hope you make a tutorial about it how to fix it please dude and replay me
and post the link from youtube
or type step by step how to be working
Replay me please with a good solution
Solidsnake 89. here ya go . Had the same exact problem. DROVE ME NUTS FOR DAYS. after much searching got clue from another.
Find a computer (my laptop served me well) copied files labled framework and framework 64 (both are win 7 64 bit machines) from C:windows/Microsoft.NET folder. to thumb drive. copy and replace existing files to non working machine in same location.
I WAS THEN ABLE TO CHECK What EVER AND IT WORKS . AND turbo tax then installed also .
this way worked for me
but i download 231mb of .net framework 3.5 sp1 from microsoft web site (not 2.7bm)
hey sparks i tried to delete the frameworks for replacing them but i couldnt because an error occurs saying that
«you need permission to perform this action
You require permission from TrustedInstaller to make changes to this folder»
I will be waiting for your reply
Ah yes the dredded «TrustedInstaller». This is a generic user which is given total Administrative rights for the installation of your operating system at the time it was built by the manufacturer. I have seen this TrustedInstaller user on HP, Dell and standard Windows installs. The way to get around that is to take ownership of your hard drive and give those rights to you, using your current username. This is done by using the security tab in in My Computer. Open My Computer, «right click» on the drive «C» or whatever drive has your operating system on it. Left click properties, there will be seven (7) tabs that open up in a box. Go to the tab that has «Security» on it by left clicking it and brining it to the front, then «Advanced» near the lower right corner of this window. Click on the tab that has «Owner», click on the button that has «edit». This will open a box that should have Administrators and your username in it. Click on your username and it will be come highlighted, then make sure to click in the check box below it «Replace owner on subcontainers and objects:, then click ok. You will probably get two errors, about «pagefile.sys» and another file name of somekind. Just click ok to those and it will change ownership of the drive to your account and that should give you sufficient rights to complete the installation.
When ever I am trying to install .Net framework on my machine (Vista 32 bit machine) it gives above error.
Even after «Turning on or off windows features» through control panel, it continue giving the same error.
Solution is that : Open Control panel >>Program(Uninstall a progaram )>>then click at Turn window feature on or off>>uncheck dot net framwork 3.5.