Share via


Adding RSAT SNMP tools during unattended install.

Question

Thursday, September 13, 2012 12:04 PM

I'm going through the process of creating a base Server 2012 image with MDT and there's one issue I'm running into. We require SNMP in our current environemt so I'm installing SNMP and configuring the communities as part of the install. What I noticed is that by default, you don't get the additional tabs on the SNMP service that you have on previos OS's. What I figure out is that you have to install the SNMP RSAT tools and it will add those tabs. This is easy enough to do after the OS is instealled, but for the life of me, I can't find the option to do this at install time. Using the Windows System Image Manager, I would assume it would be under the "Foundation" packages, but I've been through everything there 10 times and can't find it. I've also been through all of the other Components and can't find it there either.

Does anyone know who to install the RSAT SNMP tools durning an unattended install?

Thanks,
Rich

All replies (16)

Thursday, June 13, 2013 5:09 PM ✅Answered | 1 vote

From within SIM, under the Packages ==> Foundation ==> amd64_Microsoft-Windows-ServerCore-Package_6.2.9200.16384_ package, you must enable the following:

  • MicrosoftWindowsPowerShellRoot -> MicrosoftWindowsPowerShell -> ServerCore-FullServer -> Server-GUI-Mgmt -> Server-RSAT-SNMP
  • NetFx4ServerFeatures -> NetFx4 -> MicrosoftWindowsPowerShell -> ServerCore-FullServer -> Server-GUI-Mgmt -> Server-RSAT-SNMP
  • ServerCore-WOW64 -> ServerCore-FullServer -> Server-GUI-Mgmt -> Server-RSAT-SNMP

I believe that will get you what your looking for.


Monday, September 17, 2012 8:46 AM

Hi,

I noticed that you are using the MDT to add the applications to the task sequences.

During the RSAT SNMP tool installation, I think it should be some configuraitons need to be completed before installing. I think you need to use the scripting to make it possible. The unattend file edit by Windows System Image Manager is for OS Catalog. So the unattend command is not included for the application. You need to run the additional scripting to push to the client to continue the unattned installation.

For any question about the scripting, I think you need to ask the question in the following forum:

Title: The Official Scripting Guys Forum!

URL: http://social.technet.microsoft.com/Forums/en/ITCG/threads

Regards,

James

James Xiong

TechNet Community Support


Monday, September 17, 2012 11:58 AM | 1 vote

Thanks for the response, but that doesn't make sense. All I have to to in order to get the tabs to show up is to do the following:

Add Roles and Features -> Check the box for SNMP Tools and it installs.

Almost all other RSTAT tools have options under Foundation packages to install them as well.


Tuesday, September 18, 2012 1:42 AM

You could edit the Unattend.xml file in Windows System Image Manager in MDT. The Unattend.xml file is based on the OS catalog. The application added in the Workbench is for task sequence.

After installing the RSAT tools, you need to open the Control Panel --> Programs and Features --> Turn Windows Features on or off --> Check SNMP. If you would like to make this installation pop up or unattended. You need to manually to write a script to deal with this action. That's the reason why you need to ask the question in the scripting forum.

I hope this time is clear now.

Regards,

James

James Xiong

TechNet Community Support


Tuesday, September 18, 2012 12:05 PM

I am using Windows System Image Manager. That's my question. How do you make this part of the unattned.xml. There is no option to "Install RSAT Tools" and you don't have to "install RSAT tools" to see the option. It's not a seperate install like Windows 8. It's an OS feature and you can install OS features as part of the unattend.xml with Server 2012. You also don't have to add SNMP after the fact. I'm installing it in the unattend.xml and I'm configuring the SNMP communities as part of the unattend.xml. You just can't see them like you do in Server 2008R2 and earlier OS's without adding this feature.

I also know that it can be scripted after the OS is installed, but that's not what I'm asking. I'm asking how you install it as part of the unattend.xml like you install other OS features and other RSAT tools. You can install Hyper-V Management RSAT tools in the unattend.xml. You can install the Remote Desktop Services RSAT tools in the unattend.xml. You can install the Windows Server update Services RSAT tools in the unattend.xml. I just can't find the option to install the SNMP RSAT tools in the unattend.xml.


Friday, September 21, 2012 5:29 AM

Hi,

I think you don't understand the unattend.xml in Windows System Image Manager. The unattend.xml file focuses on the actions during the OS installation. Towards the processing during the OS installation, there are 7 phases included:

1. WindowsPE;

2. OfflineServicing;

3. Generalize;

4. Specialize;

5. Audit System;

6. Audit User;

7. OOBE System;

SNMP is a feature-based component included in the OS after OS installed NOT during the OS installation. So the unattend.xml file is for OS installation parameters configurations.

If it's domain joined client, you could use logon script via Group policy. Or using the scripting to make sure the features get installed properly.

Regards,

James

James Xiong

TechNet Community Support


Friday, September 21, 2012 2:59 PM

With all due respect, I think it's you who doesn't understand the unattend.xml. I'm installing SNMP AND configuring SNMP communities in the Unattend.xml. I've done this with Server 2008. I've done it with Server 2008R2 and the options are still there for Server 2012. What you're referring to is just what's under the "Components" section. There's also a "Packages" section where you install features in the unattend.xml. Here is a picture of exactly where you configure features in the unattend.xml

This is the section where SNMP is installed in the Unattend.xml:

    <servicing>
        <package action="configure">
            <assemblyIdentity name="Microsoft-Windows-ServerCore-Package" version="6.2.9200.16384" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="" />
            <selection name="AdminUI" state="true" />
            <selection name="BITS" state="true" />
            <selection name="File-Services" state="true" />
            <selection name="CoreFileServer" state="true" />
            <selection name="Dedup-Core" state="true" />
            <selection name="FSRM-Infrastructure" state="true" />
            <selection name="NetFx3" state="true" />
            <selection name="Printing-AdminTools-Collection" state="true" />
            <selection name="WMISnmpProvider" state="true" />
            <selection name="TelnetClient" state="true" />
            <selection name="Xps-Foundation-Xps-Viewer" state="true" />
            <selection name="Remote-Desktop-Services" state="true" />
            <selection name="SNMP" state="true" />
        </package>
    </servicing>

This is the section where the SNMP communities are configured.

        <component name="Microsoft-Windows-SNMP-Agent-Service" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <ValidCommunities>
                <ValidCommunity wcm:action="add" wcm:keyValue="REMOVED">8</ValidCommunity>
                <ValidCommunity wcm:action="add" wcm:keyValue="REMOVED">4</ValidCommunity>
            </ValidCommunities>    </component>

This works. SNMP is installed and the traps are configured. Please don't tell me this doesn't get done in the unattend.xml because the options are there. I've done it with the 2 previous OS's and I've done it with Server 2012. You do not have to install it after the OS is installed. What is different with Server 2008/2008R2 and 2012 is that the additional tabs on the SNMP service properties don't show up unless you install the SNMP RSAT feature and that is missing from the Image catalog, even though other RSAT tools are available to install from the unattend.txt. Since you can install just about every other feature from the unattend.xml, including other RSAT tools, it doesn't make sense that the SNMP RSAT tools are missing.


Friday, September 28, 2012 2:48 AM

Glad to know it works fine in the end.

Gernally speaking, I only use the Unattend file during the OS setup. In other words, I mainly focus on the component-based installation.

Towards the roles/features setup, I prefer a scripting to push to the client to setup and return the result. Or I open up the network installation resouce so that users could install it based on their needs.

Just like you mentioned, it could work with Unattend.xml:

Regards,

James

James Xiong

TechNet Community Support


Friday, September 28, 2012 11:54 AM

The question isn't about installing SNMP. It's about the SNMP management tools that enable the additional tabs on the SNMP service properties.


Thursday, December 6, 2012 4:25 PM

Hello, I think that you have to use in your answer file

 <selection name="Server-RSAT-SNMP" state="true" />

Here a reference doc  http://technet.microsoft.com/en-us/library/hh825322.aspx


Thursday, June 13, 2013 6:35 PM

Thanks for the response. When I get a little time to look into this, I'll check it out. If it works, I'll mark it as the answer.

Thanks again,
Rich


Tuesday, June 18, 2013 3:34 PM

Worked perfect. Took a little fiddling with the unattend because of dependancies for those options but once I got that sorted out, everything works as expected. Thanks!


Wednesday, November 20, 2013 5:40 PM

Hello Rich,

I'm currently working on the same issues here, and was wondering if you remember what the dependencies were?

Thanks


Wednesday, November 20, 2013 5:55 PM

You have to enable all of the parent features. I just went through this again with 2012 R2 and the issue was that it says that the feature is enabled by default, but it still failed. You have to explicitly check each parent folder box.


Thursday, July 24, 2014 7:30 AM | 2 votes

To those of you, who like scripting instead, you could accomplish the same with this command:

Dism /online /enable-feature /featurename:Server-RSAT-SNMP /ALL

To enable SNMP use:

Dism /online /enable-feature /featurename:SNMP /ALL

Configuration can be accomplished with a simple .reg file:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SNMP]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SNMP\Parameters]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SNMP\Parameters\PermittedManagers]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SNMP\Parameters\RFC1156Agent]
"sysContact"="Your Contact"
"sysLocation"="Your Location"
"sysServices"=dword:0000004c

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SNMP\Parameters\TrapConfiguration]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SNMP\Parameters\TrapConfiguration\yourtrap]
"1"="yourtrap"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SNMP\Parameters\ValidCommunities]
"yourcommunity"=dword:00000004

This way, you won't have SNMP enabled on all Windows 2012 servers, only the ones where you run these commands.

Best regards

Bent Buhl, JN Data

Best regards Bent Buhl, JN DATA


Wednesday, May 18, 2016 10:33 AM

Thanks Bent, you saved me a lot of searching :-)

Best regards

Rick