[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3325
  • Last Modified:

GPResult not working with non-administrators

I'm trying to run gpresult /h gpreport.html /f but the account I'm trying it run it on is not an administrator and when I start to run it, it collects the data buts then it says 'ERROR: Access is denied.'  Is there any work around for this?

Windows 7 Professional connected to a domain on a Hyper-V Session
0
cmb991
Asked:
cmb991
  • 2
2 Solutions
 
Dangle79Commented:
it's probably trying to save the report to a restricted disk. run from a command prompt, but right-click on Command Prompt in the start menu and select to run as administrator
0
 
TechnoButtCommented:
Access to root of C:\ is denied for non-elevated accounts.  Supply a path (on a previously created folder), like:
gpresult /h c:\report\gpresult.html /f
0
 
cmb991Author Commented:
I tried gpresult /h c:\report\gpreport.html and it still says ERROR: Access Denied.
0
 
Dangle79Commented:
that's because that same user still can't create a folder on c:
better bet would be to use something like C:\users\%USERNAME%\Desktop
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now