SETTING UP A VIRTUAL SCCM TESTLAB – PART 4

This post is a continuation of part 1, part 2 and part 3. I suggest you read all 3 parts first to understand what is happening here in part 4.

In this part 4, we will setup the SCCM discovery methods, boundaries, boundary groups, SCCM roles, and push the SCCM Client to our client machine.

Lets get started

Discovery Methods

SCCM-Discovery-01

It is worth noting, that in a live production environment, proper planning is needed before a discovery method or combination of discovery methods, is selected.

For our test lab environment, we want to discover users and systems. We can keep Forest, Group and Network discovery turned off. Heartbeat discovery is turn on by default.

You will need to decide what you need for your own lab environment, but in a stand alone environment, the options selected above is fine. For further details, you can refer to the following resources:

Let configure the 2 discovery methods we need. First will be the System/Computer discovery

  1. Launch the SCCM Console (recommend you pin the console to the Taskbar)
  2. Click on Administration
  3. Expand Hierachy Configuration
  4. Select Discovery MethodsSCCM-Discovery-01
  5. Double click Active Directory System Discovery
  6. Check “Enable Active Directory System Discovery”SCCM-Discovery-02
  7. Click New
  8. Click Browse and select the Computers container.SCCM-Discovery-03
  9. Click OK
  10. Click OK againSCCM-Discovery-04
  11. Click YesSCCM-Discovery-05

We will then configure the user discovery. This is pretty much the same as System discovery above

  1. Double click Active Directory User Discovery
  2. Check “Enable Active Directory User Discovery”
  3. Click New
  4. Click Browse and select the Users container.SCCM-Discovery-06
  5. Click OK
  6. Click OK again
  7. Click Yes

Boundaries

While the discovery runs, we need to also configure the boundaries and boundary group

  1. In Boundaries, Add a new Boundary.
  2. Choose IP Boundary, and enter the start and end IP address and enter a boundary name.SCCM-Boundry-01
  3. Click OK
  4. In Boundary Groups, click Create Boundary Group
  5. Enter a boundary group name
  6. Click Add and select our earlier BoundarySCCM-Boundry-02
  7. In the Reference tab, select “Use this boundary group for site assignment” and select our SCCM site
  8. Click Add and select our SCCM server.SCCM-Boundry-03
  9. Click OK

Before we proceed any further, we want to check if our discovery methods have worked.

  1. In the console, select Assets and Compliance
  2. Select Users
  3. Check that our user is discoveredSCCM-Discovery-07
  4. Select Devices
  5. Check that our client machine is discovered.SCCM-Discovery-08

Site Configuration

We also want to add a Application Catalog site role to our SCCM infrastructure. This allows users deployments to be visible to end users.

However, there is a problem with the SCCM source files. When installed on Windows Server 2016, that Application Catalog fails to install.

The SCCM install is looking for IIS version 7, which is version 10 on Windows Server 2016.

To fix the problem, we need to copy the MSI files out to our workstation.

  1. Go to the SCCM installation folder at G:\Apps\Microsoft Configuration Manager\bin\X64
  2. Copy to MSI files (awebsvc.msi and portlweb.msi) out to your workstation
  3. Get InstEd
  4. Open the MSI file in InstEd.
  5. Select the InstallExecuteSequence table
  6. Look for the action called “CcmCheckIISVersion”SCCM-SiteRoles-02
  7. This action has a condition to look for IISVERSION < 7
  8. We change this to < 10SCCM-SiteRoles-03
  9. Select File > Save
  10. Copy both files back to the SCCM server into the SCCM directory G:\Apps\Microsoft Configuration Manager\bin\X64, replacing the existing files.

That should fix the source files, and we can now install the Application Catalog role on our server.

  1. Click on Administration
  2. Expand Servers and Site System Roles
  3. Right click on the primary server, and choose Add Site System Roles.SCCM-SiteRoles-01
  4. Click Next twice
  5. Select the first 2 Application Catalog options.SCCM-SiteRoles-04
  6. Click Next through all the other option
  7. You will also need to fill in an Organization Name.
  8. Choose any name, it is more for cosmetics.

In previous releases of SCCM 2012, you could only install application assigned by user from the Application Catalog. Machine or device assigned applications installed from Software Center. But applications selected from the Application Catalog appeared in Software Center to install anyway. This caused much confusion for customers I have worked with before.

Thankfully, SCCM 1511 “fixes” that by offering a new Software center which combines both the Application Catalog and Software Center of before in a new Software Center view which combines both together.

To enable this new Software Center, edit the Default Client Settings properties.

SCCM-Config-01

Select Computer Agent from the left frame, and change the “Use new Software Center” to Yes.

SCCM-Config-02

Before you click OK, there is something else we want to change.

The default client settings also includes items the client agent will collect information (called inventory data) from the client machines and send it back to our SCCM server. This settings however, excludes App-V version 5 details. We want to enable App-V inventory data now.

  1. Select Hardware Inventory
  2. Click Set ClassesSCCM-Config-03
  3. Wait for the list to load.
  4. Select the first 2 App-V classes: AppV Client Application and AppV Client Package.SCCM-Config-04
  5. Click OK
  6. Click OK again to close Default Client Settings.

We are almost done now. We just have 1 final thing to do, which is to create a new application deployment. I’ll be using 7-Zip from 7-Zip.org

Application Deployments

We need to first create a share of the file location. This optional, since in our lab, we will be doing this locally from the server. But if you ever need to deploy application remotely (SCCM console running on another machine or server), it is best to have a file share.
We will create a new file share of or repository folder G:\REPO\Software called \\lab-dc\repo$.

As this is an optional steps, i wont be showing how to create the share.But if you wanted, you could do it from the command line using:

net share repo$="G:\REPO\Software" /grant:Users,READ

We want to copy our application installer to our repository location.
G:\REPO\Software\Default Apps – Published\7-Zip 16.02

SCCM-Application-02

  1. In the SCCM console, select Software Library
  2. Expand Application Management.
  3. Right click Application, select Folder > Create FolderSCCM-Application-01
  4. Create a new folder for application available for everyone.
  5. I’ll be using a folder called “Default Apps – Published”, same as the folder name on the repository location
  6. Click OK
  7. In the new folder, click Create Application from the toolbar (or ribbon as it is correctly known).SCCM-Application-03
  8. Select Type: Windows Installer
  9. Location: Path to 7-Zip installer MSI (\\lab-dc\repo$\Default Apps – Published\7-Zip 16.02\7z1602-x64.msi)SCCM-Application-04
  10. Click Next
  11. You may get a “publisher cannot be verified” message, which is fine for our lab. Click OK if appears.
  12. Click Next
  13. Change the installation settings as necessary
  14. We change:
    1. Shorten name to 7-Zip 16.02
    2. Added Supplier: 7-Zip
    3. Added Version: 16.02
    4. Change install command line, removing /q, replacing with: ALLUSERS=1 /qb!
    5. Change Install Behaviour: Install for systemSCCM-Application-06
  15. Click Next
  16. Click Next in the Summary screen, let the publishing complete.
  17. Click Close once done.

We will want to edit the application, to add some other useful details.

Select the application in the console, and click Properties from the toolbar/ribbon (or right click and select Properties).

In the Application Catalog tab, edit the settings as required.

Here, I’ve added a few items.

  • User Categories, i added “Utilities” category. You can add more by clicking Edit
  • User documentation
  • Link text. This will appear in Software Center. Clicking this will take you to the user documentation.
  • Localized description
  • Icon. This turned our a little more tricky to get. I ended up having to get 7zG.exe from another machine, and use this file on the server to select the icon.

SCCM-Application-07

In the Deployment Types tab, click Edit.

SCCM-Application-08

In the User Experience tab change

  • Logon Requirement: Only when a user is logged on
  • Install program visibility: Normal
  • Tick Allow users to view and interact with this program installation.SCCM-Application-09

Click OK to close Deployment Types properties

Click OK to close Application properties

We now need to deploy our application.

  1. Select the application and choose Deploy from the toolbar/ribbon (or right click and choose Deploy)SCCM-Application-10
  2. Select All Systems collection. Click NextSCCM-Application-11
  3. For the content, choose Add and add the LAB-DC distribution pointSCCM-Application-12
  4. You can click next through all the other prompt until the end.

You should now have new deployment in the Deployments tab.

SCCM-Application-13

Just give it a few minutes to run, and the Deployment should be complete.

Push Client Installation

Right now, we have all we need to get our client machine configured. Start up the client machine and wait for it to reach the logon screen.

  1. Back on the server, in the SCCM console, go to the Assets and Compliance, and click on Devices.SCCM-ClientDeploy-01
  2. Right click on our client machine, and choose Install Client.SCCM-ClientDeploy-02
  3. Click next through all the steps.
  4. At the final screen, click Close.SCCM-ClientDeploy-03

It will take several minutes for the SCCM client to install on the client machine. But in our current situation, the push installation will fail. If we check our SCCM log on the server (G:\Apps\Microsoft Configuration Manager\Logs\ccm.log), we see the following error:

ERROR: Failed to connect to the \\LAB-Desktop-001.lab.local\admin$ share using account 'Machine Account'

But wait, all is not lost! This error was intentional, to simulate some troubleshooting steps 🙂

Things not working out the first time will be the norm, so it is necessary to have some “simulated” error, to help the troubleshooting process.

The error message basically means, our server account does not have rights to connect to the client machine. Our server account (machine) is not an administrator on the client machine. So we need to change the Client push installation account.

  1. In the SCCM Console, select Administration > Site Configuration > Sites
  2. Right click on the site and select Client Installation Settings > Client Push InstallationSCCM-ClientDeploy-04
  3. In the Accounts table, click New and select New account
  4. Select Administrator account and click OKSCCM-ClientDeploy-05

Click OK again.

If you tried the push the client installation again, it would still fail. We need to add another firewall rule. We need to add a new predefine rule to allow WMI connections through. Refer to part 3 for the steps, and add a WMI filter rule.

Once done, restart the client machine.

Retry to push the SCCM client again. It should work this time.
Give it a few minutes. Once the client installation is done, the status will be reflected back in the SCCM console on the server.

That is all for part 4. In part 5, we will look at some of the settings on the client, test out our application install (7-Zip), and also deploy more applications. Part 5 should be the last part of the series in setting up your own SCCM test lab environment.

Refer to other parts

5 Comments

Add a Comment

Your email address will not be published. Required fields are marked *