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!!
Active DirectoryWindows 8IT AdministrationWindows BatchInstallation

Avatar of undefined
Last Comment
McKnife

8/22/2022 - Mon
SOLUTION
McKnife

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
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
McKnife

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck