Passing Parameters to ad.asmx/GetOUs

Nov 12, 2012 at 7:25 PM

Hi,

i am having a hard time to get the GetOU function working. No matter what i try, i'm always getting the following errors retuned.

 

No value specified for parameter 'PARENTPATH', web service results could be unpredictable.

No value specified for parameter 'LEVEL', web service results could be unpredictable.

Unexpected response from web service: 500 Internal Server Error
Cannot convert  to System.Int32.
Parameter name: type ---> Input string was not in a correct format.

 

How do you pass the Parameters to this function in a proper way?

 

The GetADSiteNames function is giving me a headache too. If i define the return value as string, i'm only getting a single value in return and all other sites will be ignored because the value is already set. If i define it as ArrayOfString, i get nothing in return.

Calling GetADSiteNames via ZTI_ExecuteWebservice.wsf works flawless though.

 

Unfortunately i did'nt find any documentation for the multi value functions. Maybe someone can help me out here.

 

Thanks in advance

 

Peter

 


Nov 12, 2012 at 8:28 PM

Ok,

 

i figured out that i had to publish the parameters as properties in the settings section. Anyways, the only funtion that returns the results as expected is GetComputerGroups. GetADSiteNames returns only the first string and complains for the rest that the value is already set. GetOUs returns nothing.

What am i doing wrong here?

 

[Settings]
Priority=Init,GetComputerGroups,GetOU,GetADSiteNames
Properties=MyCustomProperty,Ous,Groups,ParentPath,Level,Sites

[Init]
Computername=VM01
ParentPath=DC=mylab,DC=myhome
Level=5


[GetADSiteNames]
WebService=http://dc01/MDTWEBSVC/ad.asmx/GetADSiteNames
Sites=string

[GetOU]
WebService=http://dc01/MDTWEBSVC/ad.asmx/GetOUs
Parameters=ParentPath,Level
Ous=string

[GetComputerGroups]
WebService=http://dc01/MDTWEBSVC/ad.asmx/GetComputerGroups
Parameters=Computername
Groups=string

Nov 13, 2012 at 3:25 PM

All right,

 

i got it working by editing the ZTIGather.xml file. Just added my custom properties as list items, which did the trick.

 

Still got  a question regarding the GetOUs function. Its takes like 15 minutes to fill the property with the return values (round about 500 OUs returned). Is there a way to speed this up? Calling the same function in a web browser takes only 2 seconds to create the XML.