Skip to content

OSD Task sequence powershell install SNMP for Server 2008 R2

Featured Replies

I'm trying to create a task sequence step that installed the SNMP service for a 2008 R2 server and I cannot get it to work. I have tried several things I have found out on the internet, from create a package with several different command lines to just running a command line task step and none have worked.

 

The last thing I tried was running the following command line in a Program:

 

powershell.exe get-content '.\2008InstallSNMPService.ps1' | powershell.exe -noprofile -

 

The ps1 file contains the following, which works when an OS is booted:

import-module servermanager
add-windowsfeature snmp-service

Can anyone help me get this figured out? TIA

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.