Sunteți pe pagina 1din 7

Microsoft .NET Framework 3.

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

xs folder on the installation media. The \sources\sxs folder can be copied to ne


twork share i.e. \\network\share\sxs to make it easily accessible to multiple co
mputers. Also, make sure that target computer account, DOMAIN\SERVERNAME$ has at
least read access to the network share.
Requirements
Windows Server 2012
Installation media
Administrator user rights. The current user must be a member of the local Admini
strators group to add or remove Windows features.
Target Computers might need network access and rights to use either alternate so
urces or an Internet connection to use Windows Update
Steps
1.
Start PowerShell in the Administrator Command Prompt by typing
powershell
2.
To install .NET 3.5 from installation media located on a network share
(\\network\share\sxs), use the following command
Install-WindowsFeature Net-Framework-Core -source \\network\share\sxs
For more information on the Install-WindowsFeature cmdlet, see http://technet.mi
crosoft.com/en-us/library/hh918370.aspx
3.
To verify installation, run the following command:
Get-WindowsFeature
The Install State column should show
ET 2.0 and 3.0) feature.

Installed

for .NET Framework 3.5 (includes .N

Turn Windows Features on or off from Control Panel (Windows 8 only)


For an Internet connected installation of Windows 8 the easiest way to add .NET
Framework 3.5 is to download required files from Windows Update.
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.
Administrator rights. The current user must be a member of the local Administrat
ors group to add or remove Windows features.
Steps
1.
On the Start Screen type turn on windows features , select Settings in the
search pane and click on Turn Windows features on or off.
2.
Under Turn Windows features on or off, click .Net Framework 3.5 (include
s .NET 2.0 and 3.0)
3.
The wizard will search for required files and then prompt you to downloa
d files Windows Update.
4.
Select Download files from Windows Update.
5.
After the wizard completes, click Finish.
Add feature using the Add Roles and Features Wizard (Windows Server 2012 only)
Server Manager can be used to enable .NET Framework 3.5 for a local or remote in
stallation Windows Server 2012.
Requirements
Windows Server 2012
Installation media
Administrator user rights. The current user must be a member of the local Admini
strators group to add or remove Windows features.
Target Computers might need network access and rights to use either alternate so
urces or an Internet connection to use Windows Update
Steps
1.
In Server Manager, click Manage, then select Add Roles and Features to l

aunch the Add Roles and Features Wizard.


2.
Click Next at the Before you begin screen.
3.
At the Select installation type screen, select Role-based or feature-bas
ed installation and click Next.
4.
On the Select destination server screen, select the target server and cl
ick Next.
5.
On the Select server roles screen, click Next.
6.
On the Select features screen, check the box next to .Net Framework 3.5
Features and click Next.
7.
On the Confirm installation selections screen, a warning will be display
ed asking "Do you need to specify an alternate source path?...". If the target m
achine does not have access to Windows Update, click the Specify an alternate so
urce path link to specify the path to the \sources\sxs folder on the installatio
n media and click OK. After you have specified the alternate source, or if the t
arget machine has access to Windows Update, click the X next to the warning, and
then click Install.
If you are using Server Manager in Windows Server 2012 to add a role or feature
to a remote server, then the remote server s computer account (i.e. DOMAIN\Compute
rName$) requires access to the alternate source file path, because the deploymen
t operation runs in the SYSTEM context on the target server.
Upgrading from Windows 7 or Windows Server 2008 R2
When a PC running Windows 7 (which includes .NET Framework 3.5.1 by default) is
upgraded to Windows 8 or a server running Windows Server 2008 R2 (which has .NET
Framework 3.5.1 feature installed) is upgraded to Windows Server 2012, .NET Fra
mework 3.5 is enabled automatically using the files in the \sources\sxs folder.
Windows Server Update Services (WSUS) is not supported as a source for Features
on Demand or feature file store repair
For Windows 8 and Windows Server 2012, WSUS is not supported as a source for fea
ture installation (for example, adding .NET Framework 3.5 feature files) or feat
ure file store repair operations. WSUS core scenarios include centralized update
management and patch management automation, which enables administrators to man
age the distribution of updates that are released through Microsoft Update to co
mputers in their network. Feature on Demand and feature file store repair rely o
n download of individual files to perform update or repair operations. For examp
le, if a single file becomes corrupted, then only that file (which could be as s
mall as a few kilobytes) is downloaded from the repair source. WSUS can use eith
er full or express files to perform servicing update operations; however, these
files are not compatible with Feature on Demand or feature file store repair.
Summary
Windows 8 and Windows Server 2012 include .NET Framework 4.5 which is required t
o create Windows Store apps with Visual C# or Visual Basic. .NET Framework 3.5 i
s not included by default, but for legacy application compatibility purposes can
be downloaded from Windows Update using Features on Demand. For environments wh
ere Windows Update cannot be used as a source, IT Professionals have several con
figuration options for installation of .NET Framework 3.5:
1.
Configure Features on Demand and Feature Store Repair Group Policy
2.
Modify an image prior to deployment
3.
Use the Deployment Image Servicing and Management (DISM) command line to
ol
4.
Enable Windows .NET Framework 3.5 using PowerShell
5.
Turn Windows features on or off from Control Panel (Windows 8 only)
6.
Add feature using the Add Roles and Features Wizard (Windows Server 2012
only)
To ensure the best possible end user experience, it s recommended to test and vali
date installation and functionality of legacy applications (especially those dep
ending on .NET Framework) on your Windows 8 images. If you have feedback about t
his topic, please visit the appropriate Microsoft TechNet or MSDN forum:
Windows 8 IT Pro
Windows Server 8

Windows Store apps


Appendix A: Common Errors and Resolution Steps
Table 1: Features on Demand Error Codes
Error Code
Name
Description
Resolution Steps
0x800F081F
CBS_E_SOURCE_MISSING
The source files could not be found.
Use the "source" option to specify the location of the files that are required t
o restore the feature. For more information on specifying a source location, see
http://go.microsoft.com/fwlink/?LinkId=243077.
Verify that the source specified has the necessary files. The source argument sh
ould point to the \sources\sxs folder on the installation media or the Windows f
older for a mounted image (i.e. c:\mount\windows) for an image mounted to c:\mou
nt.
0x800F0906
CBS_E_DOWNLOAD_FAILURE The source files could not be downloaded
.
Use the "source" option to specify the location of the files that are required t
o restore the feature. For more information on specifying a source location, see
http://go.microsoft.com/fwlink/?LinkId=243077.
Windows couldn t connect to the Internet to download necessary files. Make sure yo
u are connected to the Internet, and press Retry to try again.
Verify that the
computer or server has connectivity to Windows Update, and that you are able to
browse to http://update.microsoft.com
If WSUS is used to manage updates for this computer, verify that the Group Polic
y setting Contact Windows Update directly to download repair content instead of
Windows Server Update Services (WSUS) is enabled.
0x800F0907
CBS_E_GROUPPOLICY_DISALLOWED
DISM failed. No operation was pe
rformed. For more information, review the log file. The DISM log file can be fou
nd at
%WINDIR%\logs\DISM\dism.log.
Due to network policy settings, Windows couldn't connect to the Internet to down
load files required to complete the requested changes. Please contact your netwo
rk administrator for more information. Contact your network administrator for a
ssistance with the Specify settings for optional component installation and comp
onent repair group policy.

S-ar putea să vă placă și