Quantcast
Channel: Ivanti User Community: Message List - OS Deployment and Provisioning
Viewing all articles
Browse latest Browse all 3345

Re: Using Query string as Database Value?

$
0
0

I managed to sort this using the MBSDK. Initially i wanted to grab the Database value and use it as a variable in Provisioning directly but this way I can create the variable within the Powershell code and grab the data that way.

 

 

$LDWebService = (New-WebServiceProxy -Uri http://CORESERVER/MBSDKService/MsgSDK.asmx?WSDL -Credential $Cred)

 

$QueryName = "QUERYNAME"

$Result = $LDWebService.RunQuery($QueryName)

 

foreach ($Row in $Result.Tables[0].Rows)

{

  write-host "value is : $($Row[0]) $($Row[5])"

 

}

 

This gave me the values for Row 1 and Row 5

 

Row 1 was the Device Name and Row 5 was the Managed Software File Path for the file in question.

 

example of Data Returned.

 

value is : COMPUTERNAME C:\ORACLE\ORA11G\NETWORK\ADMIN\LDAP.ORA

 

So i found all machines with the file in question and also the path of that file as it is located in many different places.


Viewing all articles
Browse latest Browse all 3345

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>