PrepAway - Latest Free Exam Questions & Answers

Which two actions should you perform?

Your network contains an Active Directory domain named contoso.com.
The domain contains a server named Server1 that runs Windows Server 2012 R2.
You need to ensure that a WIM file that is located on a network share is used as the installation
source when installing server roles and features on Server1.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose
two.)

PrepAway - Latest Free Exam Questions & Answers

A.
Run the dism.exe command and specify the /remove-package parameter.

B.
Run the Remove-WindowsFeature cmdlet.

C.
Enable and configure the Specify settings for optional component installation and component
repair policy setting by using a Group Policy object (GPO).

D.
Enable the Enforce upgrade component rules policy setting by using a Group Policy object (GPO).

E.
Run the Remove-WindowsPackage cmdlet.

Explanation:
A: To remove packages from an offline image by using DISM Example:
At a command prompt, specify the package identity to remove it from the image.
You can remove multiple packages on one command line.
DISM /Image:C:\test\offline /Remove-Package
/PackageName:Microsoft.Windows.Calc.Demo~6595b6144ccf1df~x86~en~1.0.0.0
/PackageName:Microsoft-Windows-MediaPlayerPackage~31bf3856ad364e35~x86~~6.1.6801.0
C:
* You can use Group Policy to specify a Windows image repair source to use within your network.
The repair source can be used to restore Windows features or to repair a corrupted Windows
image.
* Set Group Policy
You can use Group Policy to specify when to use Windows Update, or a network location as a repair
source for features on demand and automatic corruption repair. To configure Group Policy for
Feature on Demand
Open the group policy editor. For example, on a computer that is running Windows?8, click Search,
click Settings, type Edit Group Policy, and then select the Edit Group Policy setting. Click Computer
Configuration, click Administrative Templates, click System, and then double-click the Specify
settings for optional component uninstallation and component repair setting. Select the settings
that you want to use for Features on Demand.
Note:
* The Windows Imaging Format (WIM) is a file-based disk image format. It was developed by
Microsoft to help deploy Windows Vista and subsequent versions of Windows operating system
family, as well as Windows Fundamentals for Legacy PCs.

6 Comments on “Which two actions should you perform?

    1. Dave says:

      Search for Microsoft Features on Demand (something that’s actually part of 70-412).
      http://www.vladsitblog.com/windows-2012-r2-features-on-demand/

      Essentially, Windows stores the installation packages of all the roles and features you can install (.NET 3 being the exception) in the WinSxS directory. This not only takes up space, but also requires patches to be deployed on those files, even when you don’t use the packages in question.

      So, you can now remove this installation packages and simply put them on another location, like a DVD or a network location. Then, when adding Roles and Features, you point to that location. If you don’t Windows will try to get the packages from Windows Update.

      If you don’t remove these packages, Windows will search its local store for them. Which goes against the requirements of this question (you need to ENSURE…)

      Usually, one removes the packages with Uninstall-WindowsFeature. Since we don’t have that here (Server 2K8’s Remove-WindowsFeature works but is an alias to the above and as such not the Microsoft canon answer), we use dism instead.

      So, we remove all the packages not currently needed with dism /online /remove-package, then we use the GPO to point to the WIM-image. The result is that Server1 no longer uses its local store or Windows Update.

      The disadvantage is that the patchlevel of the packages in the WIM-file needs to be equal to the patchlevel of Server1, which is why I usually just let my servers use Windows Update.




      1



      0
      1. Rogue says:

        Great explanation, however it doesn’t really match what is being asked in the question. The question states that we need to ensure that the WIM is being used as the source for the installs. So, removing the store from Server1 we do with ‘B.’ Then point to the source via GPO with ‘C.’

        The question isn’t saying that we need to do anything with the WIM, other than direct role and feature installs to it. To that end I would put my $5 on answers B and C.




        0



        0
          1. tilke says:

            but remove-windowsfeature will remove all the files for the role if you use the -remove parameter. I’m going for B&C




            1



            0
  1. Chris says:

    Answer: B & C
    C to specify the install source location.
    B to remove the uninstalled roles/features local install source.

    A can also do the same as B but would require a bit of extra time to reuse the command over and over again, or it could be used in a script that is taking another another file as input source. Either way its a sloppy way to do it.

    B can do it with the following command sequence:
    get-windowsfeature | where-object -FilterScript { $_.InstallState -eq ‘Available’ } | remove-windowsfeature -remove




    2



    0

Leave a Reply