Monday, March 3, 2014

How to enable .NET Framework 3.5 on Windows 8 in Offline Mode

Download Microsoft .NET Framework 3.5 Offline Installer

 or  follow these instructions

Windows 8 does not include .NET 3.5 (include .NET 2.0 and 3.0) by default. But if the user is upgrading from Windows 7 to Windows 8, .NET Framework 3.5 is fully enabled. The user can make sure this feature is enabled by check in Program and Features.

These is list of steps that the user can do to check it :

Step 1 :
Go to Settings. Choose Control Panel then choose Programs.


Step 2 :
Click Turn Windows features on or off, and the user will see window as image below.


The User can enable this feature by click on .NET Framework 3.5 (include .NET 2.0 and 3.0) select it and click OK. After this step, it will download the entire package from internet and install the .NET Framework 3.5 feature.

But if the user does not have an internet connection, this steps can not be applied.

The user still can enable this feature in offline mode if the user has Windows 8 DVD or ISO image.

How To Do
The following are the steps to enable .NET Framework 3.5 (include .NET 2.0 and 3.0) feature in offline mode:

Step 1:
Insert Windows 8 DVD or mount ISO image. The source of this feature can be found in folder E:\sources\sxs. (In this case E: the user’s drive letter on which the user has loaded Windows 8 Media.)


Step 2:
Open CMD.EXE with Administrative Privileges.

Step 3:
Run the following command Dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:E:\sources\sxs /LimitAccess, and hit Enter.



After completing the installation of .NET Framework 3.5 you can see that the feature is enabled.




                                                   OR
Microsoft Update
(http://www.update.microsoft.com)
If you cannot access this website, check your Internet connection or contact the network administrator to determine whether there is a configuration that blocks access to the website.

This behavior can also be caused by a system administrator who configures the computer to use Windows Server Update Services (WSUS) instead of the Microsoft Windows Update server for servicing. In this case, contact your system administrator and request that they enable the Specify settings for optional component installation and component repair Group Policy setting and configure the Alternate source file path value or select the Contact Windows Update directly to download repair content instead of Windows Server Update Services (WSUS) option.

To configure the Group Policy setting, follow these steps:

1.       Start the Local Group Policy Editor or Group Policy Management Console.
Collapse this imageExpand this image
2.       Expand Computer Configuration, expand Administrative Templates, and then select System.
Collapse this imageExpand this image
3.       Open the Specify settings for optional component installation and component repair Group Policy setting, and then select Enabled.
Collapse this imageExpand this image
4.       If you want to specify an alternative source file, in the Alternate source file path box, specify a fully qualified path of a shared folder that contains the contents of the \sources\sxs folder from the installation media. Or, specify a WIM file. To specify a WIM file as an alternative source file location, add the prefix WIM: to the path, and then add the index of the image that you want to use in the WIM file as a suffix. The following are examples of values that you can specify:
a.       Path of a shared folder: \\server_name\share\Win8sxs
b.       Path of a WIM file, in which 3 represents the index of the image in which the feature files are found: WIM: \\server_name\share\install.wim:3
        If it is applicable to do this, select the Contact Windows Update directly to download repair content instead of Windows Server Update Services (WSUS) check box.
        Tap or click OK.
        At an elevated command prompt, type the following command and then press Enter to apply the policy immediately:
gpupdate /force
Or, you can use the Windows installation media as the file source when you enable the .NET Framework 3.5 feature. To do this, follow these steps:
1.       Insert the Windows 8 or Windows Server 2012 installation media.
2.       At an elevated command prompt, run the following command:
Dism /online /enable-feature /featurename:NetFx3 /All /Source:<drive>:\sources\sxs /LimitAccess
Note In this command, <drive> is a placeholder for the drive letter for the DVD drive or for the Windows 8 installation media. For example, you run the following command:
Dism /online /enable-feature /featurename:NetFx3 /All /Source:D:\sources\sxs /LimitAccess

Steps for Windows Server 2012


In Windows Server 2012, you can also specify an alternative source by using Windows PowerShell cmdlts or by using the Add Roles and Features Wizard.

To use Windows PowerShell, follow these steps:
1.       Insert the Windows Server 2012 installation media.
2.       In an elevated Windows PowerShell command window, run the following command:
Install-WindowsFeature –name NET-Framework-Core –source <drive>:\sources\sxs
Note In this command, <drive> is a placeholder for the drive letter for the DVD drive or for the Windows Server 2012 installation media. For example, you run the following command:
Install-WindowsFeature –name NET-Framework-Core –source D:\sources\sxs
To use the Add Roles and Features Wizard, follow these steps:
1.       Insert the Windows Server 2012 installation media.
2.       Start the Add Roles and Features Wizard.
3.       On the Select features page, select the .Net Framework 3.5 Features check box, and then click Next.
4.       On the Confirm installation selections page, click the Specify an alternate source path link.
Collapse this imageExpand this image
5.       On the Specify Alternate Source Path page, type the path of the SxS folder as a local path or as a network share path.
Collapse this imageExpand this image
6.       Click OK.
7.       Click Install to finish the wizard.
Error code: 0x800F081F
This error code can occur when an alternative installation source is specified and one of the following conditions is true:
·         The location that is specified by the path does not contain the files that are required to install the feature.
·         The user who tries to install the feature does not have at least READ access to the location and to the files.
·         The set of installation files is corrupted, incomplete, or invalid for the version of Windows that you are running.
To resolve this problem, make sure that the full path of the source is correct (x:\sources\sxs) and that you have at least Read access to the location. To do this, try to access the source directly from the affected computer. Verify that the installation source contains a valid and complete set of files. If the problem persists, try to use a different installation source.
Error code: 0x800F0907
This error code occurs if an alternative installation source is not specified or is invalid and if the Specify settings for optional component installation and component repair Group Policy setting is configured to "Never attempt to download payload from Windows Update."

To resolve this problem, review the policy setting to determine whether it is appropriate for your environment. If you do not want to download feature payloads from Windows Update, consider configuring the "Alternate source file path" value in the Group policy setting.

Note You must be a member of the Administrators group to change Group Policy settings on the local computer. If the Group Policy settings for the computer that you want to manage are controlled at the domain level, contact your system administrator.

To do this, follow these steps:
1.       Start Local Group Policy Editor or Group Policy Management Console as applicable in your environment.
2.       Expand Computer Configuration, expand Administrative Templates, and then select System.
3.       Open the Specify settings for optional component installation and component repair Group Policy setting, and then select Enabled.
4.       Determine whether the Never attempt to download payload from Windows Update Group Policy setting is enabled, and then determine the desired setting for your environment.
5.       If you want to specify an alternate source file, in the Alternate source file path box, specify a fully qualified path of a shared folder that contains the contents of the \sources\sxs folder from the installation media. Or, specify a WIM file. To specify a WIM file as an alternative source file location, add the prefix WIM: to the path, and then add the index of the image that you want to use in the WIM file as a suffix. The following are examples of values that you can specify:
o        Path of a shared folder: \\server_name\share\Win8sxs
o        Path of a WIM file, in which 3 represents the index of the image in which the feature files are found: WIM: \\server_name\share\install.wim:3
6.       If you want, select the Contact Windows Update directly to download repair content instead of Windows Server Update Services (WSUS) check box.
7.       Tap or click OK.
8.       At an elevated command prompt, type the following command and then press Enter to apply the policy immediately:
gpupdate /force




4 comments: