/build/static/layout/Breadcrumb_cap_w.png

I need to run a script to add SNMP features on 2008 r2 servers.

I have tried to run a script using DISM /online /enable-feature /featurename:SNMP but it needs elavated rates. does anyone know how I can get this to run with KACE?


0 Comments   [ + ] Show comments

Answers (2)

Posted by: jverbosk 12 years ago
Red Belt
2

The Run As section allows you to specify the account to use when deploying - Local System, the currently logged in user or a specified user.  Have you run into issues despite what is set here? 

I've also had different luck with scripts by switching between Online KScript and Offline KScript.

If it's still having problems, this may be a possible solution (or at least get you on the right track):

http://www.insidethe.com/blog/2009/12/how-to-launch-a-wsh-vbscript-as-administrator-in-windows-7-and-vista/

Hope that helps!

John


Comments:
  • Thanks jverbosk, i did try using the run as section. It will not run with elevated rights. The vbs work but it still requires user interaction. I need to run the script on 100+ severs and i dont want to connect to all of them. - awilliams@roll.com 12 years ago
Posted by: jverbosk 12 years ago
Red Belt
2

And another possibility here:

http://superuser.com/questions/417493/how-do-i-run-a-command-with-elevated-permissions-within-a-powershell-cmd-exe-ses

John

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ