This infor can be read from the registry  Os type (NT, 2000, etc...):  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductName  OS version:  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentVersion  Build #:  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentBuildNumber  Service pack #:  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CSDVersion  In a JAL you can use something like  Dim( ServicePackName, string )  Dim( ServicePackNo, Number )  RegistryGetKey( "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", &  "CSDVersion", "STRING", ServicePackName )  Mid( ServicePackName, 14, 2, ServicePackNo)  Similarly you can read other version numbers.  To return this information back to calling machine  Copy results to a global variable or file which you can transfer back to the caller or save on a network shared drive.  : hello  : Is there a quick way using JAL or VBscript to get  : the windows version running on a remote agent ?  : I'm trying to install a security patch but it depends  : on the windows version installed which one I have  : to install ..  : thank you   
   |