What's up with gpresult.txt?
I'm having a heck of a time getting this thing to do anything. According to MS: 1. Click Start, Run, and enter cmd to open a command window. 2. Type gpresult and redirect the output to a text file as shown in Figure 1 below: All I get is a list of options, redirected or not. Also, as a Domain and Local Admin, why do I have to run this in an elevated command prompt? I'm the Administrator for the domain and the local machine. Why do I need elevated privs to do anything? Thanks!
September 1st, 2010 9:01pm

When you're in the command prompt, use the following to pipe the output to a text file located on your %systemroot% c:\ drive gpresult >> c:\gpresult.txt "as a Domain and Local Admin, why do I have to run this in an elevated command prompt?" You shouldn't have to be a Local Admin to run gpresult from a command prompt, where in MS articles does it say this? In a domain the default settings for UAC require elevation, even for a Local Admin, this is just how its setup by default to be more secure though really UAC isn't really a security boundary. These settings can be changed either locally or at the domain level via Group Policy Settings so that GPO's which apply to the machine in question do not prompt & there are many UAC settings so you can look those over and determine which is the best for your situation. http://technet.microsoft.com/en-us/library/dd835564(WS.10).aspx
Free Windows Admin Tool Kit Click here and download it now
September 2nd, 2010 6:19pm

"You shouldn't have to be a Local Admin to run gpresult from a command prompt, where in MS articles does it say this?" Right here on my command prompt when I try to run it: C:\Users\twilson>gpresult > c:\test.txt Access is denied. When I elevate a command prompt and run it this is what I get, using the above command: GPRESULT [/S system [/U username [/P [password]]]] [/SCOPE scope] [/USER targetusername] [/R | /V | /Z] [(/X | /H) <filename> [/F]] Description: This command line tool displays the Resultant Set of Policy (RSoP) information for a target user and computer...... I keep being told to run gpresult.exe > sometextfile.txt yet every time I run this, redirect or not, all I get is the comand's help text. My user account has administrative access so I still have the same questions: - Why do I need elevated privs to run gpresult.exe when I'm a local and domain admin on this machine? - Why doesn't "gpresult > sometextfile.txt" output anything but the help text? I appreciate your response, thanks!
September 2nd, 2010 6:46pm

"C:\Users\twilson>gpresult > c:\test.txt Access is denied." Ah, yes, that's different & it's not b/c gpresult requires elevation but rather that's is b/c your account isn't a local admin or at least you don't have write access to this directory location (c:\) (thus the elevation being required). Try instead piping the outupt to a location under your user profile (c:\users\trwilson\documents) for instance.
Free Windows Admin Tool Kit Click here and download it now
September 2nd, 2010 7:16pm

As far as the issue with gpresult not working, take a look at this. It sounds like the policies aren't being applied, or perhaps arent' being applied for your user account. http://msinfluentials.com/blogs/jesper/archive/2006/11/25/group-policy-fails-for-one-user.aspx http://technet2.microsoft.com/WindowsServer/en/library/11ff9236-b2a2-497f-8a0f-74f66fb452a81033.mspx?mfr=true
September 2nd, 2010 7:30pm

Hi, Do not export the *.txt file to root drive of C drive. You do not have permission to do that. Just create a folder under C and export to that folder.Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
September 3rd, 2010 9:15am

First, would the moderators PLEASE STOP MARKING MY QUESTIONS AS ANSWERED! This has not been answered by 2 different question postings. Ok, you're correct, Access Denied is a result of permissions on the root directory. I still have this problem where gpresult returns nothing but command line options. If I do this: C:\Users\twilson> gpresult > text.txt Guess what the text file contains? The help text from the gpresult command. gpresult with no command line options does nothing but print the help text, redirect or not. I've been told it's supposed to do somthing by numerous resources and people, including here and each time all I get is help text. How do I get gpresult to do what it's supposed to? Thanks.
September 3rd, 2010 7:21pm

What does gpresult /z give you?
Free Windows Admin Tool Kit Click here and download it now
September 5th, 2010 4:37pm

What does gpresult /z give you? Yes I agree with this. You missed Parameters. You may refer the following article for more information regarding gpresult. Gpresult Or you can simply enter "gpresult /?" to get helps. Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
September 6th, 2010 11:48am

"Yes I agree with this. You missed Parameters." I didn't miss parameters. Microsoft documented their utility incorrectly. Its own support articles instruct a person to run gpresult with no parameters, which doesn't work, redirected to a folder without default permissions and look at what it took in the MS forums to get an answer. Thanks all for your input and pardon my frustration.
Free Windows Admin Tool Kit Click here and download it now
September 9th, 2010 7:26pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics