Jump to content


imperial07

OSD Task sequence powershell install SNMP for Server 2008 R2

Recommended Posts

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

Share this post


Link to post
Share on other sites

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...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.