Documente Academic
Documente Profesional
Documente Cultură
5 Deployment Considerations
September 28, 2012
Abstract
This paper describes acquisition and installation scenarios for.NET 3.5 Framewor
k in Windows 8 and Windows Server 2012.
This information applies to the following operating systems:
Windows 8
Windows Server 2012
References and resources discussed here are listed at the end of this paper.
The current version of this paper is maintained on the Web at:
Microsoft .NET Framework 3.5 Deployment Considerations
Disclaimer: This document is provided as-is . Information and views expressed in th
is document, including URL and other Internet website references, may change wit
hout notice. Some information relates to pre-released product which may be subst
antially modified before it s commercially released. Microsoft makes no warranties
, express or implied, with respect to the information provided here. You bear th
e risk of using it.
Some examples depicted herein are provided for illustration only and are fictiti
ous. No real association or connection is intended or should be inferred.
This document does not provide you with any legal rights to any intellectual pro
perty in any Microsoft product. You may copy and use this document for your inte
rnal, reference purposes.
2012 Microsoft. All rights reserved.
Document History
Date
Change
September 28, 2012
Updated to reflect rebranding
June 13, 2012 First publication
Contents
Introduction
3
Configure Features on Demand and Feature Store Repair Group Policy
3
Requirements
4
Servicing updates
5
Multilingual images
5
Modify an image prior to deployment
5
Requirements
5
For an online reference image that can access Windows Update
5
For an offline reference image 6
Multilingual images
6
Use the Deployment Image Servicing and Management (DISM) command line tool
7
Requirements
7
Steps 7
Enable Windows .NET Framework 3.5 using PowerShell
7
Requirements
8
Steps 8
Turn Windows Features on or off from Control Panel (Windows 8 only)
8
Requirements
8
Steps 9
Add feature using the Add Roles and Features Wizard (Windows Server 2012 only)
9
Requirements
9
Steps 9
Upgrading from Windows 7 or Windows Server 2008 R2
10
Windows Server Update Services (WSUS) is not supported as a source for Features
on Demand or feature file store repair 10
Summary 10
Appendix A: Common Errors and Resolution Steps 11
Introduction
This paper provides recommendations and guidance on how to acquire and enable .N
ET Framework 3.5 in Windows 8 or Windows Server 2012. The .NET Framework 4.5 is
an integral Windows component that supports building and running the next genera
tion of applications and web services and is included by default in Windows 8 an
d Windows Server 2012. The .NET Framework 4.5 provides a subset of managed types
that you can use to create Windows Store apps for Windows using C# or Visual Ba
sic, for more information see the .NET Framework Developer Center.
When a user runs a legacy application requiring .NET Framework 3.5, the Windows
8 application compatibility feature detects this condition (via a compatibility
shim) and prompts the user to download and install the necessary .NET Framework
3.5 files from Windows Update using a new feature called Features on Demand (FoD).
This process requires internet access. Only the metadata required to enable the
.NET Framework 3.5 is contained in the default Windows image (\sources\install.
wim) but the actual binaries are not in the image - this feature state is called
disabled with payload removed . The .NET Framework 3.5 payload files can only be a
cquired either from Windows Update or from the installation media in the \source
s\sxs folder. For more information, see the Installing the .NET Framework 3.5 on
Demand topic on Microsoft Developers Network (MSDN). Once the .NET Framework 3.
5 feature is enabled on a PC, the files are serviced just like other operating s
ystem files from Windows Update.
Administrators can either enable .NET Framework 3.5 installation using the FoD g
roup policy or include the .NET Framework 3.5 files in their default image. FoD
allows administrators to create smaller images and speed up initialization times
. For more information see Features on Demand topic of Windows Server Installati
on Options.
By default, Windows 8 automatically fixes conditions that may prevent users from
installing updates by resolving inconsistencies in file data and/or registry. F
or administrators, the FoD group policy also configures feature store repair beh
avior. For more information, see Configure a Windows Repair Source topic of the
Deployment Image Servicing and Management (DISM) Reference.
Configure Features on Demand and Feature Store Repair Group Policy
For environments using Active Directory and group policy this option provides fo
r the most flexibility for installation of .NET Framework 3.5. This policy setti
ng specifies the network locations that will be used for enabling optional featu
res that have had their payload files removed and for file data and registry rep
air operations from failed update installations. If you disable or do not config
ure this policy setting, or if the required files cannot be found at the locatio
ns specified in this policy setting, the files will be downloaded from Windows U
pdate, if it is allowed by the policy settings for the computer. The policy Speci
fy settings for optional component installation and component repair is located u
nder Computer Configuration > Administrative Templates > System node in Group Po
licy Editor.
Requirements
Active Directory Domain infrastructure supporting Windows 8 and Windows Server 2
012
Access rights to configure Group Policy
Target Computers will need network access and rights to use either alternate sou
rces or an Internet connection to use Windows Update
Figure 1: Group Policy Setting for Features on Demand and feature store repair
When this policy is enabled, a network location (for example, a file server) can
be specified for both repair of the feature file store, and enabling features t
hat have their payload removed. The Alternate source file path can point to a \s
ources\sxs folder or a Windows image (WIM) file using the WIM: prefix. The advan
tage of a WIM file is that it can be kept current with updates, and provide a cu
rrent repair source and .NET Framework 3.5 binaries. The repair WIM can be diffe
rent than the initial WIM file used for installation. The user or process that a
ttempts to enable an optional OS feature requires appropriate access rights to f
ile shares and/or WIM files.
If you select Never attempt to download payload from Windows Update, Windows Upd
ate is not contacted during an installation or repair operation.
If you select Contact Windows Update directly to download repair content instead
of Windows Server Update Services (WSUS), attempts to add features (for example
, .NET Framework 3.5) or repair the feature file store use Windows Update to dow
nload files. Target computers require Internet and Windows Update access for thi
s option. Normal servicing operations continue to use WSUS if it has been config
ured as a source.
If an alternate source path will be used to repair images then consider the foll
owing guidelines.
Servicing updates
Keep any repair source current with the latest servicing updates. If you are usi
ng an image from a WIM file for Feature on Demand, you can use the DISM tool to
service the image. For more information, see How to Mount and Modify an Image. I
f you are using an online Windows installation shared on your local network as a
repair image, make sure that the computer has access to Windows Update.
Multilingual images
You must include all relevant language packs with your repair source files for t
he locales that your image supports. If you restore a feature without all locali
zation files that the Windows installation requires for that feature, installati
on fails. You can install additional language packs after a feature is restored.
Modify an image prior to deployment
This option is recommended if a majority of users or systems will run .NET Frame
work 3.5 based legacy applications.
Requirements
Internet Connection
Access to Windows Update. If the PC or server is behind a firewall or uses a pro
xy server, see KB900935 -- How the Windows Update client determines which proxy
server to use to connect to the Windows Update Web site.
Windows 8 , Windows Server 2012, or the Windows Assessment and Deployment Kit (W
indows ADK) tools
Installation media
Administrator user rights. The current user must be a member of the local Admini
strators group to add or remove Windows features.
For an online reference image that can access Windows Update
1.
Open a command prompt with administrator user rights (Run as Administrat
or) in Windows 8 or Windows Server 2012.
2.
To Install .NET Framework 3.5 feature files from Windows Update, use the
following command:
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All
Use /All to enable all parent features of the specified feature
For more information on DISM arguments see How to Enable or Disable Windows Feat
ures.
3.
On Windows 8 PCs, after installation .NET Framework 3.5 is displayed as
enabled in Turn Windows features on or off in Control Panel. For more informatio
n, see http://technet.microsoft.com/en-us/library/hh824822.aspx#BKMK_restore. Fo
r Windows Server 2012 systems, feature installation state can be viewed in Serve
r Manager.
For an offline reference image
1.
For detailed instructions on mounting an image see Mount an offline imag
e for servicing.
2.
Run the following DISM command (image mounted to the c:\test\offline fol
der and the installation media in the D:\drive) to install .NET 3.5:
DISM /Image:C:\test\offline /Enable-Feature /FeatureName:NetFx3 /All /LimitAcces
s /Source:D:\sources\sxs
Use /All to enable all parent features of the specified feature
Use /LimitAccess to prevent DISM from contacting Windows Update/WSUS
Use /Source to specify the location of the files needed to restore the feature
To use DISM from an installation of the Windows Assessment and Deployment Kit (W
indows ADK), locate the Windows ADK servicing folder and navigate to this direct
ory. By default, DISM is installed at C:\Program Files (x86)\Windows Kits\8.0\As
sessment and Deployment Kit\Deployment Tools\. DISM is available in Windows 8, W
indows Server 2012, and Windows Preinstallation Environment (Windows PE) 4.0. You
can install DISM and other deployment and imaging tools, such as Windows System
Image Manager (Windows SIM), on another supported operating system from the Win
dows ADK. For more information, see DISM Supported Platforms.
3.
Run the following command to lookup the status of NetFx3 Feature (offlin
e image mounted to c:\test\offline)
DISM /Image:c:\test\offline /Get-Features /Format:Table
A status of Enable Pending indicates that the image must be brought online to co
mplete installation.
Multilingual images
For images that will support more than one language, you must add .NET Framework
3.5 binaries before adding any language packs. This order ensures that .NET Fra
mework 3.5 language resources are installed correctly within the reference image
and available to users and applications.
Use the Deployment Image Servicing and Management (DISM) command line tool
For an installation of Windows that is not connected to the Internet, to add .NE
T Framework 3.5 use the DISM command-line tool, and provide access to the \sourc
es\SxS folder on the installation media.
Requirements
Windows 8 , Windows Server 2012, or the Windows Assessment and Deployment Kit (W
indows ADK) tools
Installation media
Administrator user rights. The current user must be a member of the local Admini
strators group to add or remove Windows features.
Steps
1.
Open a command prompt with administrator user rights (that is, Run as Ad
ministrator) in Windows 8 or Windows Server 2012.
2.
To install .NET Framework 3.5 from installation media located on the D:\
drive, use the following command
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:d:\so
urces\sxs
Use /All to enable all parent features of the specified feature
Use /LimitAccess to prevent DISM from contacting Windows Update
Use /Source to specify the location of the files needed to restore the feature.
For more information on DISM arguments see How to Enable or Disable Windows Feat
ures.
3.
After installation, .NET Framework 3.5 is displayed as enabled in Turn W
indows features on or off in the Control Panel.
For more information, see http://technet.microsoft.com/en-us/library/hh824822.as
px#BKMK_restore
Enable Windows .NET Framework 3.5 using PowerShell
For a Windows Server 2012 core installation that is not connected to the Interne
t, use PowerShell to add .NET Framework 3.5 and provide access to the \sources\s
Installed