![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | RSOP Planning mode - Provider load failure. I am having trouble performing RSOP Planning mode in a VB script. When I try to perform it, I get the error "Provider Load Failure" I am using a domain admin account to run it on an XP client (domain member). However, when I run the GPMC RSOP Planning on the same machine, and using the same information, no error. I can also run the script on a DC with no error. Here is the code - any suggestions??? strComputer = "cn=xp1,ou=Desktops,dc=testdom" Set objLocator = CreateObject("WbemScripting.SWbemLocator") Set objCon = objLocator.ConnectServer(".", "root\rsop", null, null, null, null, 0, null) Set objProvider = objCon.Get("RsopPlanningModeProvider") objProvider.RsopCreateSession 0, strComputer, Null, Null, Null, Null, Null, Null, Null, Null, ns, hr, ei Error occurs on the last line. Any advice appreciated. |
My System Specs![]() |
| | #2 (permalink) |
| | Re: RSOP Planning mode - Provider load failure. D'oh - fixed my own problem. The first parameter in the ConnectServer method is the computer which will conduct the RSOP planning function. Of course, this needs to be a Domain Controller. That's why the script worked when executing on the DC. "Wake-Up-Jeff" <artvandal8@xxxxxx> wrote in message news:%23iA3VmBtJHA.248@xxxxxx Quote: >I am having trouble performing RSOP Planning mode in a VB script. > When I try to perform it, I get the error "Provider Load Failure" > I am using a domain admin account to run it on an XP client (domain > member). > However, when I run the GPMC RSOP Planning on the same machine, and using > the same information, no error. > I can also run the script on a DC with no error. > > Here is the code - any suggestions??? > > strComputer = "cn=xp1,ou=Desktops,dc=testdom" > Set objLocator = CreateObject("WbemScripting.SWbemLocator") > Set objCon = objLocator.ConnectServer(".", "root\rsop", null, null, null, > null, 0, null) > Set objProvider = objCon.Get("RsopPlanningModeProvider") > objProvider.RsopCreateSession 0, strComputer, Null, Null, Null, Null, > Null, Null, Null, Null, ns, hr, ei > > Error occurs on the last line. > Any advice appreciated. > > |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Package Load Failure | .NET General | |||
| RSOP Planning Security problem | VB Script | |||
| 0x80041013 Provider Load Failure on restore point script | Vista performance & maintenance | |||
| Power failure during set-up - Vista won't load | Vista installation & setup | |||
| Stationary Load Failure | Vista mail | |||