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

Comments

Please log in to comment

Answers

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

Answered 06/14/2012 by: jverbosk
Red Belt

  • 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.
Please log in to comment
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

Answered 06/14/2012 by: jverbosk
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity