Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - RSOP Planning mode - Provider load failure.

Reply
 
Old 04-03-2009   #1 (permalink)
Wake-Up-Jeff


 
 

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 SpecsSystem Spec
Old 04-03-2009   #2 (permalink)
Wake-Up-Jeff


 
 

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 SpecsSystem Spec
Reply

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


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46