locked
GPRESULT /H GPReport.html =>ERROR: Invalid pointer RRS feed

  • Question

  • When I enter GPRESULT /H GPReport.html I get the following error...ERROR: Invalid pointer

    With the syntax /X it´s possible to get an xml report. Any ideas?

    Thanks in advance

    Martin

    Monday, February 13, 2012 9:57 AM

Answers

  • Hi,

    Thanks for your posting.

    After search I think your issue is caused by unregistered .dll file. Run below command to register all .dll files. After that, restart your OS
    to check whether you can generate an html group policy report.

    for %1 in (%windir%\system32\*.dll) do regsvr32.exe /s %1

    For more information please refer to following articles:

    Explanation of Regsvr32 usage and error messages
    http://support.microsoft.com/kb/249873


    Lawrence

    TechNet Community Support

    • Marked as answer by Lawrence, Friday, February 17, 2012 1:14 AM
    Tuesday, February 14, 2012 2:58 AM

All replies

  • Hello,

    i have no problem running this with the correct output. Which OS do you use on the machine you run the command on?

    http://support.microsoft.com/kb/867462


    Best regards

    Meinolf Weber
    MVP, MCP, MCTS
    Microsoft MVP - Directory Services
    My Blog: http://msmvps.com/blogs/mweber/

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    Monday, February 13, 2012 10:11 AM
  • We´re using W2k8 R2 latest updates.
    Monday, February 13, 2012 10:20 AM
  • Hi,

    Thanks for your posting.

    After search I think your issue is caused by unregistered .dll file. Run below command to register all .dll files. After that, restart your OS
    to check whether you can generate an html group policy report.

    for %1 in (%windir%\system32\*.dll) do regsvr32.exe /s %1

    For more information please refer to following articles:

    Explanation of Regsvr32 usage and error messages
    http://support.microsoft.com/kb/249873


    Lawrence

    TechNet Community Support

    • Marked as answer by Lawrence, Friday, February 17, 2012 1:14 AM
    Tuesday, February 14, 2012 2:58 AM
  • Hi Martin,

    have the same problem and i'm already searching for this several hours! Arrrghhhh. Have you found a solution? Registering the dll files, what Lawrence suggested does'nt wok for me.

    Regards, Markus

    Thursday, July 5, 2012 12:58 PM
  • Getting the same issue here and like Voggi1805, the DLL registration did not resolve.

    Users can run RSOP (have delegated the right for this at domain level) but this invalid pointer error makes no sense.

    Has anyone found a solution?


    Ian

    Wednesday, October 3, 2012 4:28 AM
  • To anyone else getting this problem; do not provide the file extension. After the report is generated, then give the file an extension, then open in browser. 

    GPRESULT /H GPReport


    Tuesday, May 21, 2013 10:51 PM
  • Also, having the same problem.

    Same original issue, not able to run GPResult /h

    Tried to Run GPRESULT /H GPReport without file extension, still receiving Error: Invalid Pointer

    Able to run GPResult /X <file>.xml

    Able to run GPResult /R >> <file>.txt

    Able to run GPResult /V >> <file>.txt

    Able to run GPResult /Z >> <file>.txt

    Thursday, June 6, 2013 2:06 PM
  • I created a new GPO to replace one that is not able to be backed up but is working and am having the same problem with the invalid pointer.  I can run GPResult /X and it doesn't error out but the file is not easy to read.  It doesn't seem to be computer related because I can apply the old GPO and am able to run GPResult /H and obtain a HTML file.  Same problem on several different systems.  Has anybody had luck in resolving this issue?

    • Proposed as answer by SWDK Friday, June 21, 2013 4:20 PM
    • Unproposed as answer by SWDK Friday, June 21, 2013 4:20 PM
    Friday, June 21, 2013 3:57 PM
  • I have found that if you (DON'T) run CMD as Administrator it brings you to your login user folder and you are able to run the gpresult /h filename.html without the "Invalid Pointer" error.


    • Edited by SWDK Friday, June 21, 2013 4:30 PM error in wording
    • Proposed as answer by systemskelly Tuesday, August 6, 2019 7:23 PM
    Friday, June 21, 2013 4:28 PM
  • I got same error and finally got the solution.

    Please try using domain admin user, or other user that located in different active directory OU. It can be some settings in the OU that prevent it or access issue.

    Andreas Mosal

    IT Specialist


    Blessings, Andreas - Be thankful to The Lord always


    Friday, January 30, 2015 12:45 AM
  • i encountered the same issues. "ERROR: Invalid pointer"

    I'm using local admin,(workgroup) and haven't join domain controller.

    Thursday, December 27, 2018 3:01 AM
  • Same here.  No joy, /x saving works.  suspect this is a recent windows update.
    Tuesday, January 22, 2019 3:26 PM
  • i understand this is 7 years later but I wanted to contribute an answer for anyone else who stumble on this thread.

    re-registering the libraries in \windows\system32 did not resolve, however, running gpupdate/force then running gpresult /h c:\temp\pol.html /f resolved the issue. i hope this helps.

    remember to "run as admin" on cmd prompt even if logged in as admin

    • Proposed as answer by azure-guy Wednesday, July 24, 2019 7:11 AM
    Tuesday, April 9, 2019 6:44 PM
  • Thanks! This fixed the issue for me.
    Friday, June 21, 2019 3:33 PM
  • Nice. This resolved issues at my environment.
    Tuesday, July 30, 2019 7:26 AM
  • This actually worked. First time through. Thanks

    Sakai T

    Monday, September 9, 2019 8:51 PM
  • Almost a year after your post, but it didn't work for me. Still getting invalid pointer.

    Faye Jasman

    Tuesday, February 18, 2020 6:13 PM
  • Running this in sequence resolves the issue on my end

    gpupdate /force
    gpresult /h GPReport.html

    Thursday, April 30, 2020 12:25 PM