ComatePlus +SWbemLocator (WMI)

Just starting out? Need help? Post your questions and find answers here.
User avatar
jackymb
User
User
Posts: 16
Joined: Wed Aug 11, 2004 7:37 pm
Location: AIX en PROVENCE (France)

ComatePlus +SWbemLocator (WMI)

Post by jackymb »

I try to translate that into PB and ComatePlus, and I worry.
Is it'll have some idea.

Code: Select all

'To connect to the local SMS site's Provider by using SWbemLocator
Set objSWbemLocator = CreateObject("WbemScripting.SWbemLocator")

Set objSWbemServices= objSWbemLocator.ConnectServer("SMS-Srver", "root\sms","Username","Password)")
Set ProviderLoc = objSWbemServices.InstancesOf("SMS_ProviderLocation")

'To find the package ID in the SMS_Packages class and use the RefreshPkgSource Method to initiate update.
Set colPackages = objSWbemServices.ExecQuery ("Select * from SMS_Package where PackageID = '" & PackageID & "'") 
Thanks

Jackymb
Windows 10 x64/86 - PB 5.73LTS (x86 & x64)
_________________________________________
~English is not my native language I'm using a translator~
User avatar
em_uk
Enthusiast
Enthusiast
Posts: 366
Joined: Sun Aug 08, 2010 3:32 pm
Location: Manchester UK

Re: ComatePlus +SWbemLocator (WMI)

Post by em_uk »

Give it a go and see what you come up with.

At least put some effort into it!

:D
----

R Tape loading error, 0:1
Post Reply