Quantcast
Channel: Group Policy forum
Viewing all articles
Browse latest Browse all 19997

Group Policy - Running batch script with an administrative command line

$
0
0

HI All

I am trying to run a batch script via Group Policy that does the following

  1. net stop wuauserv
  2. rename c:\windows\SoftwareDistribution softwaredistribution.xxx
  3. net start wuauserv

Steps 1 and 3 work fine but on Step 2 I get an Access Denied message when the policy is executed. The same happens when I run the batch file manually.

When I manually run the batch file, with an elevated command line, it works.

Is there a way I could execute an elevated command line through the GPO?

Thanks

Ivan



Viewing all articles
Browse latest Browse all 19997

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>