Link to home
Start Free TrialLog in
Avatar of exeterdeafacademy
exeterdeafacademy

asked on

Is there a way to run the Dism command in group policy>

Basically I'm trying to update around 250 pc's with the .net 3.5 framework.  I know that in windows 8.1 this is broken so the the only way to use the following.

DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:\\servername\sources\sxs

Easy, but I want to automate this task so that it doesn't need an elevated command prompt to run it.  I tried to create a scheduled task using the run as administrator but it still doesn't work, it errors with 0x80070005 when I check the gpresult /h.

Is it possible to run the dism command as an elevated user or some other method to get this to work. I thought powershell may work but that also needs elevated privileges.

At this rate I will have to install manually on every PC!!
SOLUTION
Avatar of McKnife
McKnife
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of exeterdeafacademy
exeterdeafacademy

ASKER

But how do I run it with elevated privileges where is the option  to runas someone else? Bearing in mind I want this automated?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial