re: Empty Device Manager
Friday, April 20, 2007 at 6:10 am Windows XP Annoyances Discussion Forum
Posted by Jose Almeida
(1 messages posted)
You must have everyone full access on "HKLM\System\CurrentControlSet\Enum" key and
all chid subkeys.
Then you must execute the following VBScipt:
"
' Fix Device Manager empty. Developed by J.Almeida
Dim WshShell,objReg,strKeyPath,strComputer,objFSO
Dim result_exist,counter
Dim del()
counter=0
Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set WshShell = WScript.CreateObject("WScript.Shell")
Set objReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer
& "\root\default:StdRegProv")
Set objFSO = CreateObject("Scripting.FileSystemObject")
strKeyPath = "System\CurrentControlSet\Enum" 'Chave para verificar
result_exist_value=existvalue(strKeyPath)
List
Function existvalue(strKeyPath)
On Error Resume next
Dim Key
objReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubKeys
For Each subkey In arrSubKeys
If Right("HKEY_LOCAL_MACHINE\" & strKeyPath & "\" & subkey,1)<>"\" then
existvalue(strKeyPath & "\" & subkey)
End If
counter=counter+1
ReDim Preserve del(counter)
del(counter-1)=strKeyPath
Next
On Error GoTo 0
End Function
Sub List()
On Error Resume next
For Each x In del
If InStr(x,"\$") then
objReg.DeleteKey HKEY_LOCAL_MACHINE, x
End if
Next
On Error GoTo 0
End Sub
"
(quotes not included)
The problem must be solved.
On Friday, March 30, 2007 at 10:33 am, Gary Lee wrote:
>After reading through this list while trying to fix the same problem (no devices
>displayed in device manager) I wanted to post an interesting secondary consequence
>of the problem, in case it happens to anyone else. The problem I ran into was that
>not only did I have no devices displayed, but I could not use an IPSEC vpn connection
>to a Cisco VPN device using the Cisco VPN client. The device at the far end would
>respond, set up the connection, and then immediately drop it. Fixing the no devices
>displayed problem also fixed the VPN problem. Hopefully if anyone else is having
>that VPN problem because of the device manager problem they will now be able to
find
>this thread on a search. And of course, thanks to those who posted advice which
>successfully fixed both of my problems without having to wait while prying a hotfix
>for the DEVMGR problem out of Microsoft support.
>
>
>
- Written in response to:
- re: Empty Device Manager (Gary Lee: Friday, March 30, 2007 at 11:33 am)
There are presently no replies to this message.
|
|
All messages in this thread [show all]
 |  |  |  | re: Empty Device Manager (Jose Almeida: Fri, Apr 20, 2007, 6:10 am) |
 |  |  |  |  | Solution (Ed C: Mon, Feb 25, 2008, 7:04 pm) |
| |
| |
Return to the Windows XP Discussion Forum
|
|