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

  • 질문

  • 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

    2012년 2월 13일 월요일 오전 9:57

답변

  • 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

    • 답변으로 표시됨 Lawrence,Lu 2012년 2월 17일 금요일 오전 1:14
    2012년 2월 14일 화요일 오전 2:58

모든 응답

  • 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.

    2012년 2월 13일 월요일 오전 10:11
  • We´re using W2k8 R2 latest updates.
    2012년 2월 13일 월요일 오전 10:20
  • 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

    • 답변으로 표시됨 Lawrence,Lu 2012년 2월 17일 금요일 오전 1:14
    2012년 2월 14일 화요일 오전 2:58
  • 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

    2012년 7월 5일 목요일 오후 12:58
  • 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

    2012년 10월 3일 수요일 오전 4:28
  • 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


    • 편집됨 JamesRMount 2013년 5월 21일 화요일 오후 10:52
    2013년 5월 21일 화요일 오후 10:51
  • 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

    2013년 6월 6일 목요일 오후 2:06
  • 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?

    • 답변으로 제안됨 SWDK 2013년 6월 21일 금요일 오후 4:20
    • 답변으로 제안 취소됨 SWDK 2013년 6월 21일 금요일 오후 4:20
    2013년 6월 21일 금요일 오후 3:57
  • 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.


    • 편집됨 SWDK 2013년 6월 21일 금요일 오후 4:30 error in wording
    • 답변으로 제안됨 systemskelly 2019년 8월 6일 화요일 오후 7:23
    2013년 6월 21일 금요일 오후 4:28
  • 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


    • 편집됨 Andreas Mosal 2015년 1월 30일 금요일 오전 12:45
    • 답변으로 제안됨 Andreas Mosal 2015년 1월 30일 금요일 오전 12:46
    2015년 1월 30일 금요일 오전 12:45
  • i encountered the same issues. "ERROR: Invalid pointer"

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

    2018년 12월 27일 목요일 오전 3:01
  • Same here.  No joy, /x saving works.  suspect this is a recent windows update.
    2019년 1월 22일 화요일 오후 3:26
  • 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

    • 답변으로 제안됨 azure-guy 2019년 7월 24일 수요일 오전 7:11
    2019년 4월 9일 화요일 오후 6:44
  • Thanks! This fixed the issue for me.
    2019년 6월 21일 금요일 오후 3:33
  • Nice. This resolved issues at my environment.
    2019년 7월 30일 화요일 오전 7:26
  • This actually worked. First time through. Thanks

    Sakai T

    2019년 9월 9일 월요일 오후 8:51
  • Almost a year after your post, but it didn't work for me. Still getting invalid pointer.

    Faye Jasman

    2020년 2월 18일 화요일 오후 6:13
  • Running this in sequence resolves the issue on my end

    gpupdate /force
    gpresult /h GPReport.html

    2020년 4월 30일 목요일 오후 12:25