JasonBeckett
Programmer
Hello,
I have rolled out an application which runs via logon script. On 2 PCs so far (out of 1000) the following error occurs
Runtime Error 2147217406 Automation Error.
The application is falling over on this line of code which is part of a module designed to read and write values to the registry.
Set objreg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & sComputername & "\root\default:StdRegProv")
I can see that the parameter the GetObject procedure requires is a path, so I would assume that a file is missing from the PCs getting the error.
Please can anyone tell me what is missing.
Thanks for reading this thread.
I have rolled out an application which runs via logon script. On 2 PCs so far (out of 1000) the following error occurs
Runtime Error 2147217406 Automation Error.
The application is falling over on this line of code which is part of a module designed to read and write values to the registry.
Set objreg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & sComputername & "\root\default:StdRegProv")
I can see that the parameter the GetObject procedure requires is a path, so I would assume that a file is missing from the PCs getting the error.
Please can anyone tell me what is missing.
Thanks for reading this thread.