Author Topic: WMI repair : Path names too long  (Read 7018 times)

0 Members and 1 Guest are viewing this topic.

Offline pitpat

  • Newbie
  • *
  • Join Date: Nov 2015
  • Posts: 9
  • Karma: 0
    • View Profile
WMI repair : Path names too long
« on: February 27, 2020, 01:18:49 pm »
hi,
when I perform a WMI repair, the DOS window displays tons of information like "the directory name c:\xxxxxx is too long".
I know that cmd.exe will only support paths up to 256 chars.
Also, can you tell me if it's just a display issue or if the repair is not done on these long paths?
Thanks.

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: WMI repair : Path names too long
« Reply #1 on: February 27, 2020, 02:52:24 pm »
I don't know the cause of that but open a Command Prompt (Admin) and enter these cmds -

winmgmt /standalonehost

winmgmt /resetrepository

regsvr32 wmisvc.dll

winmgmt /resyncperf

exit

You could try running the repair program again in Safe Mode with Networking to see if you get the same error.

Let me know what happens should I need to pass this onto Shane.

Which version of Windows are you using and are you using the latest version of the repair program (4.7.1).

Offline pitpat

  • Newbie
  • *
  • Join Date: Nov 2015
  • Posts: 9
  • Karma: 0
    • View Profile
Re: WMI repair : Path names too long
« Reply #2 on: February 27, 2020, 03:21:15 pm »
Thank you,
There's a bigger problem now, my computer is very very slow and I can't even open the system restore in normal mode.
I was able to run it in safe mode, but I've only been on the window "System Restore is currently initializing"  for two hours.
I hope that tomorrow it will be done and in the same state as before using tweaking. :cry:

Edit:initializing is finished ..... just now : registry restore .....wait and see

W7 x64 premium home  TWR 4.7.1
« Last Edit: February 27, 2020, 03:26:31 pm by pitpat »

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: WMI repair : Path names too long
« Reply #3 on: February 28, 2020, 12:22:37 am »
Hopefully the restore will report as successful when done, but they can take some time to run in certain circumstances.

Prior to running WR, did you perform any of the pre-steps such as a chkdsk /r or a sfc /scannow as advised ?


Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: WMI repair : Path names too long
« Reply #4 on: February 28, 2020, 03:42:30 am »
I'm not sure if this article applies to Win 7 but I don't think WR caused that error but simply found a directory with too long a path.

https://www.howtogeek.com/283877/how-to-delete-files-windows-claims-are-too-long/