none
Cannot Delete File from All Users Desktop - GPO

    Question

  • Hi, I have a GPO created which creates a file on All Users Desktop and deletes a file (the old file is "ver1.3",
    new file is called "ver1.4"

    The file creates no problem but i cannot delete the old file. Its is set as

    Action - Delete

    Delete file: C:\Users\Public\Desktop\IT Disaster Recovery Plan 1.3.pdf

    Error on GP result Error: Result: Failure (Error Code: 0x80070002)

    Really canty work this one out, any ideas? The file named 1.4 creates no problem

    GP 2008 R2

    Windows 7 SP1

    Friday, October 14, 2016 1:13 PM

Answers

All replies

  • Am 14.10.2016 um 15:13 schrieb YaYaTech123:
    > Delete file: C:\Users\Public\Desktop\IT Disaster Recovery Plan 1.3.pdf
     
    Uncheck "run with user credentials" or define it as a Computer
    configuration.
     
    Mark
    --
    Mark Heitbrink - MVP Group Policy - Cloud and Datacenter Management
     
    Homepage:  http://www.gruppenrichtlinien.de - deutsch
     
    Friday, October 14, 2016 3:09 PM
  • Hi,
    As far as I know, Error Code: 0x80070002 could be translated into “The system cannot find the file specified”, you could also check if the file path is correct and if there is space which might not be noticed. Please check again.

    Best regards,
    Wendy


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Monday, October 17, 2016 6:24 AM
    Moderator
  • > As far as I know, Error Code: 0x80070002 could be translated into “The
    > system cannot find the file specified”
     
    # for hex 0x80070002 / decimal -2147024894 :
      COR_E_FILENOTFOUND
    corerror.h
    # MessageText:
      DIERR_NOTFOUND
    dinput.h
      DIERR_OBJECTNOTFOUND
    dinput.h
      STIERR_OBJECTNOTFOUND
    stierr.h
    # 4 matches found for "0x80070002"
     
     
    Tuesday, October 18, 2016 9:44 AM
  • Hi Martin,
    Appreciate your share and update, it helps me to expand my knowledge.
    Thank you for your explanation again.
    Best regards,
    Wendy

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Wednesday, October 19, 2016 1:36 AM
    Moderator
  • Hi,

    I am checking how the issue going, if you still have any questions, please feel free to contact us.

    Appreciate for your feedback.

    Best regards,

    Wendy


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Friday, October 21, 2016 8:55 AM
    Moderator