locked
[solved] Cannot import to registry.. "Not all data was successfully written to the registry. some keys are open by the system or other process, or you have insufficient privileges to perform this operation" RRS feed

All replies

  •  As the error message indicates this is due to lack of permission or the registry value is in used.. Sometimes even running in safemode/ run as administrator won't fix this... 

    using sysinternals pstools we can successfully solve this..

    http://www.windowstechinfo.com/2013/07/solved-cannot-import-to-registry-not.html

    Sunday, September 22, 2013 5:14 AM
  • Thanks for sharing.

    Niki Han
    TechNet Community Support

    Wednesday, September 25, 2013 4:55 AM
  • Delete service with Service manager (http://tools.sysprogs.org/srvman/) cannot delete manually - insufficient permission, not allow to change !!!

    As example here is key for HomeGroup_Listener

    For other refer to: http://www.sevenforums.com/tutorials/236709-services-restore-default-services-windows-7-a.html

    Install new make it HomeGroup_Listener.reg

    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\HomeGroupListener]
    "DisplayName"="@%SystemRoot%\\System32\\ListSvc.dll,-100"
    "ErrorControl"=dword:00000001
    "ImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
      74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,\
      00,76,00,63,00,68,00,6f,00,73,00,74,00,2e,00,65,00,78,00,65,00,20,00,2d,00,\
      6b,00,20,00,4c,00,6f,00,63,00,61,00,6c,00,53,00,79,00,73,00,74,00,65,00,6d,\
      00,4e,00,65,00,74,00,77,00,6f,00,72,00,6b,00,52,00,65,00,73,00,74,00,72,00,\
      69,00,63,00,74,00,65,00,64,00,00,00
    "Start"=dword:00000003
    "Type"=dword:00000020
    "Description"="@%SystemRoot%\\System32\\ListSvc.dll,-101"
    "DependOnService"=hex(7):4c,00,61,00,6e,00,6d,00,61,00,6e,00,53,00,65,00,72,00,\
      76,00,65,00,72,00,00,00,00,00
    "ObjectName"="LocalSystem"
    "ServiceSidType"=dword:00000001
    "RequiredPrivileges"=hex(7):53,00,65,00,43,00,68,00,61,00,6e,00,67,00,65,00,4e,\
      00,6f,00,74,00,69,00,66,00,79,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,\
      67,00,65,00,00,00,53,00,65,00,49,00,6d,00,70,00,65,00,72,00,73,00,6f,00,6e,\
      00,61,00,74,00,65,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,67,00,65,00,\
      00,00,53,00,65,00,54,00,63,00,62,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,\
      00,67,00,65,00,00,00,00,00
    "FailureActions"=hex:80,51,01,00,00,00,00,00,00,00,00,00,03,00,00,00,14,00,00,\
      00,01,00,00,00,60,ea,00,00,01,00,00,00,60,ea,00,00,00,00,00,00,00,00,00,00

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\HomeGroupListener\Approved Listeners]
    "Alpha Hosted Listener"="{8ADD018C-5C5F-43C5-BE1E-07BAE85593B7}"
    "Sharing Hosted Listener"="{EB6B4457-F013-4E5A-9B05-1D44E4D6FAEB}"
    "Identity Hosted Listener"="{DE9C1288-0F09-40ff-BA84-7F19279FA74B}"
    "Security Hosted Listener"="{517F6AA6-D6FA-46D0-8094-17FF17E4CCF4}"
    "Printer Hosted Listener"="{5255EFED-103A-4444-B124-F88F99E4EF8D}"

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\HomeGroupListener\Parameters]
    "ServiceDllUnloadOnStop"=dword:00000001
    "ServiceMain"="ListenerServiceMain"
    "ServiceDll"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,\
      00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,\
      4c,00,69,00,73,00,74,00,53,00,76,00,63,00,2e,00,64,00,6c,00,6c,00,00,00

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\HomeGroupListener\Security]
    "Security"=hex:01,00,14,80,a0,00,00,00,ac,00,00,00,14,00,00,00,30,00,00,00,02,\
      00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\
      00,00,02,00,70,00,05,00,00,00,00,00,14,00,fd,01,02,00,01,01,00,00,00,00,00,\
      05,12,00,00,00,00,00,14,00,dd,01,02,00,01,01,00,00,00,00,00,05,13,00,00,00,\
      00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,05,20,00,00,00,20,02,00,00,00,\
      00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,06,00,00,00,00,00,14,00,00,01,\
      00,00,01,01,00,00,00,00,00,05,0b,00,00,00,01,01,00,00,00,00,00,05,12,00,00,\
      00,01,01,00,00,00,00,00,05,12,00,00,00

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\HomeGroupListener\ServiceData]
    "Encrypt"=hex:01,00,00,00,d0,8c,9d,df,01,15,d1,11,8c,7a,00,c0,4f,c2,97,eb,01,\
      00,00,00,54,dd,23,46,e8,88,a6,4c,80,e3,bd,a2,c6,23,37,a6,00,00,00,00,02,00,\
      00,00,00,00,10,66,00,00,00,01,00,00,20,00,00,00,dc,37,6d,fb,9c,db,33,39,ad,\
      fb,52,f9,07,ec,19,d4,4f,20,74,83,52,1e,ce,bd,60,41,5f,d5,9a,23,ec,f5,00,00,\
      00,00,0e,80,00,00,00,02,00,00,20,00,00,00,19,d4,6d,5b,48,e0,ba,9c,3b,d0,87,\
      29,a7,01,ab,fa,d5,00,6d,f7,6a,18,d6,c6,f7,76,df,81,a4,58,28,67,30,00,00,00,\
      e8,ab,cb,a4,ba,4a,04,a3,f8,30,2b,e3,34,17,78,81,4f,0b,ac,dc,c6,6e,4b,45,87,\
      9e,c3,5a,18,06,4c,12,07,25,61,64,23,17,3c,dc,9c,5c,dc,46,8b,83,1b,8b,40,00,\
      00,00,47,ec,ee,d7,f9,d5,68,06,bf,e3,97,ba,38,32,ac,9b,12,87,38,d7,38,80,42,\
      2a,26,7c,fd,46,8a,ec,7f,e2,0d,b6,c8,be,71,22,04,e4,80,61,00,ae,fd,9c,8c,40,\
      1b,db,85,78,d6,f4,f6,4d,04,56,0e,0f,90,00,0b,12
    "Info"=hex:01,00,00,00,d0,8c,9d,df,01,15,d1,11,8c,7a,00,c0,4f,c2,97,eb,01,00,\
      00,00,54,dd,23,46,e8,88,a6,4c,80,e3,bd,a2,c6,23,37,a6,00,00,00,00,02,00,00,\
      00,00,00,10,66,00,00,00,01,00,00,20,00,00,00,fe,4f,98,29,2c,12,c8,5c,88,34,\
      1c,84,ba,ab,03,70,a8,34,b9,9d,98,10,69,73,3d,be,9b,ca,76,d0,dd,20,00,00,00,\
      00,0e,80,00,00,00,02,00,00,20,00,00,00,da,1e,00,3f,28,08,df,a7,a8,06,00,05,\
      5f,c4,bf,c9,cb,9e,23,f2,d1,ff,33,c8,74,0d,a4,b4,f1,cf,b7,20,60,00,00,00,de,\
      0d,0d,3a,72,da,48,04,6b,ae,aa,4a,f3,0e,5e,9c,fc,68,02,34,8e,65,ec,f2,ec,19,\
      02,cb,70,f0,d9,6b,31,5b,70,da,2f,4b,8b,1d,7b,06,29,94,ac,b5,e9,2c,60,25,db,\
      88,b7,14,ec,eb,b9,f1,a1,36,a9,35,f6,38,2d,2c,a3,d1,c5,fe,4b,d8,fd,11,19,91,\
      e7,10,71,25,11,7d,c9,e7,98,e0,30,35,95,27,89,da,cf,c5,0a,ec,40,00,00,00,05,\
      e1,41,47,7a,dc,91,f0,63,db,d2,51,69,ed,58,c7,0e,fc,db,ba,eb,9e,9f,52,d3,01,\
      ee,ff,81,d5,09,ff,24,88,2f,56,12,db,94,d5,af,8a,2d,98,28,be,82,c4,5c,16,63,\
      62,11,a1,92,30,b5,5c,5d,47,99,62,21,5a

    ================

    Restart !!!

    That is first solution, If you cannot delete service (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services)

    Use same other tools and take own !!! (As Registrar Registry Manager or similar !)

    Monday, July 18, 2016 7:01 AM
  • I have same problem with user that joined to domain because they need to take insufficient privileges to perform can any tell how they o give them privileges ASAP
    Thursday, March 12, 2020 5:31 PM