![]() ![]() If the status is EnablePending, you must boot the image in order to enable the feature entirely.ĭisable a specific feature in the image. For example, type: Dism /Image:C:\test\offline /Enable-Feature /FeatureName:TFTP /Source:C:\test\mount\windows To service an offline image, specify the location of the mounted image directory. If you specify multiple /Source arguments, the files are gathered from the first location where they are found and the rest of the locations are ignored.įor example, type: Dism /Online /Enable-Feature /FeatureName:TFTP /Source:Z:\sources\SxS /Source:C:\test\mount\windows /LimitAccess You can use the /LimitAccess argument to prevent DISM from contacting WU. If the files are not found in the default location, DISM will contact Windows Update (WU) for the required files. If you do not specify a source, DISM will look in the default location specified by group policy for the required files needed to enable the feature For more information, see Configure a Windows Repair Source. If the status is Enble Pending, you must boot the image in order to enable the feature entirely.Įnable a specific feature in the image. For example, type: Dism /online /Get-FeatureInfo /FeatureName:TFTP Optional: Get the status of the feature you have enabled. For example, type: Dism /Image:C:\test\offline /Enable-Feature /FeatureName:TFTP /All For example: Dism /online /Enable-Feature /FeatureName:TFTP /All You can use the /All argument to enable all of the parent features in the same command. For example, type: Dism /online /Get-FeatureInfo /FeatureName:TFTPĮnable a specific feature in the image. Use /Get-FeatureInfo to list information about the specific feature you are interested in. Review the list of features to find the feature that you want to enable, disable, remove, or restore. For example, >featurelist.txt will output to a text file called featurelist.txt. You can add a > to the command to redirect the output of the command to a text file. For example, type: Dism /Image:C:\test\offline /Get-Features For example, type: Dism /online /Get-Features List all of the features available in the operating system. To find available Windows features in an image For example, type: Dism /Mount-Image /ImageFile:C:\test\images\install.wim /Index:1 /MountDir:C:\test\offline An index or name value is required for most operations that specify an image file.įor example, at the command prompt type: Dism /Get-ImageInfo /ImageFile:C:\test\images\install.wim Use the /Get-ImageInfo option to retrieve the name or index number for the image that you want to modify. Open a command prompt with administrator privileges. ![]() You can enable or disable Windows features offline on a WIM or VHD file, or online on a running operating system. You can use DISM's Features commands to enable or disable Windows features directly from the command prompt, or by applying an answer file to the image. The Deployment Image Servicing and Management (DISM) tool is a command-line tool that is used to modify Windows images. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |