locked
How to install SNMP remotely by GPO

    Question

  • I would like to install the snmp service by gpo. My environment has customers in seven and windows vista. Had some script to perform this installation?
    MCP - diegoapontes@hotmail.com Se for útil classifique e vote como resposta.
    • Edited by Diego_Araujo Tuesday, May 25, 2010 6:21 PM Add information
    Tuesday, May 25, 2010 6:20 PM

Answers

  • Hi Diego.

    You can also try installing windows feature using windows powershell , which you could check as alternate option. You need to import the server manager cmdlet ( check for group policy cmdlets )

    • Marked as answer by Wilson Jia Monday, June 07, 2010 8:02 AM
    Saturday, May 29, 2010 1:11 PM
    Moderator

All replies

  • I haven’t personally tried this but it should work for SNMP also:

    dism /online /Enable-Feature /FeatureName:SNMP

    dism /online /Enable-Feature /FeatureName:WMISnmpProvider

    http://portal.sivarajan.com/2010/05/enable-or-disable-telnet-client.html

    Using ocsetup

    http://portal.sivarajan.com/2010/05/installenable-telnet-client.html


    Santhosh Sivarajan | MCTS, MCSE (W2K3/W2K/NT4), MCSA (W2K3/W2K/MSG), CCNA, Network+ Houston, TX http://blogs.sivarajan.com/ http://publications.sivarajan.com/ This posting is provided "AS IS" with no warranties, and confers no rights.
    Tuesday, May 25, 2010 11:03 PM
  • Hello,

    I managed to build through ocsetup, but it only runs through gpo for user. As this is an installation the user must have administrator permission. I use this.

    echo off

    start / w ocsetup SNMP

    regedit.exe / s \ \ maquina \ registry \ ips.reg
    regedit.exe / s \ \ maquina \ registry \ community.reg

    I wanted a script to install from politics by computer, so it could install on users who are not administrators of the machine.

    Grateful

    MCP - diegoapontes@hotmail.com Se for útil classifique e vote como resposta.
    Wednesday, May 26, 2010 11:34 AM
  • Try to use a startup/shutdown script instead of a user based GPO.  Startup/shutdown script will run under system credentials.


    Santhosh Sivarajan | MCTS, MCSE (W2K3/W2K/NT4), MCSA (W2K3/W2K/MSG), CCNA, Network+ Houston, TX http://blogs.sivarajan.com/ http://publications.sivarajan.com/ This posting is provided "AS IS" with no warranties, and confers no rights.
    Wednesday, May 26, 2010 5:36 PM
  • I already tried but the script does not run. I do not know why.
    MCP - diegoapontes@hotmail.com Se for útil classifique e vote como resposta.
    Wednesday, May 26, 2010 5:49 PM
  • are you getting any error message?
    Santhosh Sivarajan | MCTS, MCSE (W2K3/W2K/NT4), MCSA (W2K3/W2K/MSG), CCNA, Network+ Houston, TX http://blogs.sivarajan.com/ http://publications.sivarajan.com/ This posting is provided "AS IS" with no warranties, and confers no rights.
    Wednesday, May 26, 2010 10:47 PM
  • No, he simply does not run. The policy applies to the machine, but the script does not run.
    MCP - diegoapontes@hotmail.com Se for útil classifique e vote como resposta.
    Thursday, May 27, 2010 10:51 AM
  • Hi Diego,

    Have you checked the script last run time in the rsop.msc result? Does it actually run?

    Regards,

    Wilson Jia


    This posting is provided "AS IS" with no warranties, and confers no rights. Please click "Mark as Answer" when you get the correct reply to your question.
    Friday, May 28, 2010 9:38 AM
  • Hi Wilson,

    When I run or RSPO gpresult it shows that the policy was applied, but only the script does not run. I did a test in a virtual environment and also could not rotate.

    Regards,

     


    MCP - diegoapontes@hotmail.com Se for útil classifique e vote como resposta.
    Friday, May 28, 2010 12:01 PM
  • Hi Diego.

    You can also try installing windows feature using windows powershell , which you could check as alternate option. You need to import the server manager cmdlet ( check for group policy cmdlets )

    • Marked as answer by Wilson Jia Monday, June 07, 2010 8:02 AM
    Saturday, May 29, 2010 1:11 PM
    Moderator