I want to retrieve (remotely) the serial number of a PC in powerbuilder 9.0.

Have someone examples or idea to do that ?

I found this examples in VB :

Retrieving Serial Numbers Remotely (17-01-2002)
--------------------------------------------------------------------------------
System administrators often need to maintain a documentation of computers in a network.
Here is a script that will help you retrieve the serial number from PC's remotely.
Make Pcserial.vbs which will include:

On Error Resume Next
Dim System
if Wscript.Arguments.Count >0 then
sSystem=Wscript.Arguments(0)
end if
ComputerName = InputBox("Enter the name of the computer you wish to query")
winmgmt1 = "winmgmts:{impersonationLevel=impersonate}!//"& ComputerName &""
Set SNSet = GetObject( winmgmt1 ).InstancesOf ("Win32_BIOS")
for each SN in SNSet
MsgBox "The serial number for the specified computer is: " & SN.SerialNumber
Next


How can I translate this in PB 9.0 code

Thank you much