Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2020
898
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.04 KB | None | 0 0
  1. SELECT (SELECT Computers.Name FROM Computers WHERE Computers.ComputerId = '~Applications'.ComputerID) as ComputerName,'~Applications'.Name, '~Applications'.Version AS InstalledVersion,(SELECT SystemVariables.Value from SystemVariables WHERE Name = 'AppVerAdobeReaderDC') As CurrentVersion
  2. FROM
  3. '~Applications'
  4. where '~Applications'.ComputerId IN
  5. (
  6. SELECT Computers.ComputerId
  7. FROM Computers
  8. WHERE Computers.ComputerId IN
  9. (SELECT CollectionComputers.ComputerId
  10. FROM CollectionComputers
  11.  
  12. WHERE CollectionComputers.CollectionId IN
  13. (SELECT Collections.CollectionId
  14. FROM Collections
  15. WHERE Collections.Path = 'Collection Library\Applications\PDF Apps\PDF Readers\Adobe Reader\Adobe Reader DC\Adobe Reader DC (Old)'
  16. )
  17. AND CollectionComputers.IsMember = 1
  18. )
  19. )
  20. AND
  21. LOWER('~Applications'.Name) REGEXP (SELECT LOWER(Value) FROM SystemVariables WHERE Name= 'AppNameAdobeReaderDC')
  22.  
  23. UNION ALL
  24.  
  25. SELECT (SELECT Computers.Name FROM Computers WHERE Computers.ComputerId = '~Applications'.ComputerID) as ComputerName,'~Applications'.Name, '~Applications'.Version AS InstalledVersion,(SELECT SystemVariables.Value from SystemVariables WHERE Name = 'AppVerAdobeReaderXI') As CurrentVersion
  26. FROM
  27. '~Applications'
  28. where '~Applications'.ComputerId IN
  29. (
  30. SELECT Computers.ComputerId
  31. FROM Computers
  32. WHERE Computers.ComputerId IN
  33. (SELECT CollectionComputers.ComputerId
  34. FROM CollectionComputers
  35.  
  36. WHERE CollectionComputers.CollectionId IN
  37. (SELECT Collections.CollectionId
  38. FROM Collections
  39. WHERE Collections.Path = 'Collection Library\Applications\PDF Apps\PDF Readers\Adobe Reader\Adobe Reader XI\Adobe Reader XI (Old)'
  40. )
  41. AND CollectionComputers.IsMember = 1
  42. )
  43. )
  44. AND
  45. LOWER('~Applications'.Name) REGEXP (SELECT LOWER(Value) FROM SystemVariables WHERE Name= 'AppNameAdobeReader')
  46.  
  47. UNION ALL
  48.  
  49. SELECT (SELECT Computers.Name FROM Computers WHERE Computers.ComputerId = '~Applications'.ComputerID) as ComputerName,'~Applications'.Name, '~Applications'.Version AS InstalledVersion,(SELECT SystemVariables.Value from SystemVariables WHERE Name = 'AppVerMozillaFirefox') As CurrentVersion
  50. FROM
  51. '~Applications'
  52. where '~Applications'.ComputerId IN
  53. (
  54. SELECT Computers.ComputerId
  55. FROM Computers
  56. WHERE Computers.ComputerId IN
  57. (SELECT CollectionComputers.ComputerId
  58. FROM CollectionComputers
  59.  
  60. WHERE CollectionComputers.CollectionId IN
  61. (SELECT Collections.CollectionId
  62. FROM Collections
  63. WHERE Collections.Path = 'Collection Library\Applications\Internet Browsers\Mozilla Firefox\Mozilla Firefox 64-bit\Mozilla Firefox 64-bit (Old)'
  64. )
  65. AND CollectionComputers.IsMember = 1
  66. )
  67. )
  68. AND
  69. LOWER('~Applications'.Name) REGEXP (SELECT LOWER(Value) FROM SystemVariables WHERE Name= 'AppNameMozillaFirefox')
  70.  
  71. UNION ALL
  72.  
  73. SELECT (SELECT Computers.Name FROM Computers WHERE Computers.ComputerId = '~Applications'.ComputerID) as ComputerName,'~Applications'.Name, '~Applications'.Version AS InstalledVersion,(SELECT SystemVariables.Value from SystemVariables WHERE Name = 'AppVerGoogleChromeEnterprise') As CurrentVersion
  74. FROM
  75. '~Applications'
  76. where '~Applications'.ComputerId IN
  77. (
  78. SELECT Computers.ComputerId
  79. FROM Computers
  80. WHERE Computers.ComputerId IN
  81. (SELECT CollectionComputers.ComputerId
  82. FROM CollectionComputers
  83.  
  84. WHERE CollectionComputers.CollectionId IN
  85. (SELECT Collections.CollectionId
  86. FROM Collections
  87. WHERE Collections.Path = 'Collection Library\Applications\Internet Browsers\Chrome Enterprise\Chrome Enterprise (Old)'
  88. )
  89. AND CollectionComputers.IsMember = 1
  90. )
  91. )
  92. AND
  93. LOWER('~Applications'.Name) REGEXP (SELECT LOWER(Value) FROM SystemVariables WHERE Name= 'AppNameGoogleChrome')
  94.  
  95. UNION ALL
  96.  
  97. SELECT (SELECT Computers.Name FROM Computers WHERE Computers.ComputerId = '~Applications'.ComputerID) as ComputerName,'~Applications'.Name, '~Applications'.Version AS InstalledVersion,(SELECT SystemVariables.Value from SystemVariables WHERE Name = 'AppVer7Zip') As CurrentVersion
  98. FROM
  99. '~Applications'
  100. where '~Applications'.ComputerId IN
  101. (
  102. SELECT Computers.ComputerId
  103. FROM Computers
  104. WHERE Computers.ComputerId IN
  105. (SELECT CollectionComputers.ComputerId
  106. FROM CollectionComputers
  107.  
  108. WHERE CollectionComputers.CollectionId IN
  109. (SELECT Collections.CollectionId
  110. FROM Collections
  111. WHERE Collections.Path = 'Collection Library\Applications\Utilities\Compression Utilities\7-Zip\7-Zip (Old)'
  112. )
  113. AND CollectionComputers.IsMember = 1
  114. )
  115. )
  116. AND
  117. LOWER('~Applications'.Name) REGEXP (SELECT LOWER(Value) FROM SystemVariables WHERE Name= 'AppName7Zip')
  118.  
  119. UNION ALL
  120.  
  121. SELECT (SELECT Computers.Name FROM Computers WHERE Computers.ComputerId = '~Applications'.ComputerID) as ComputerName,'~Applications'.Name, '~Applications'.Version AS InstalledVersion,(SELECT SystemVariables.Value from SystemVariables WHERE Name = 'RTVerJava8') As CurrentVersion
  122. FROM
  123. '~Applications'
  124. where '~Applications'.ComputerId IN
  125. (
  126. SELECT Computers.ComputerId
  127. FROM Computers
  128. WHERE Computers.ComputerId IN
  129. (SELECT CollectionComputers.ComputerId
  130. FROM CollectionComputers
  131.  
  132. WHERE CollectionComputers.CollectionId IN
  133. (SELECT Collections.CollectionId
  134. FROM Collections
  135. WHERE Collections.Path = 'Collection Library\Runtimes\Java (JRE)\Java 8\Java 8 32-bit\Java 8 32-bit (Old)'
  136. )
  137. AND CollectionComputers.IsMember = 1
  138. )
  139. )
  140. AND
  141. LOWER('~Applications'.Name) REGEXP (SELECT LOWER(Value) FROM SystemVariables WHERE Name= 'RTNameJava832RegEx')
  142.  
  143. UNION ALL
  144.  
  145. SELECT (SELECT Computers.Name FROM Computers WHERE Computers.ComputerId = '~Applications'.ComputerID) as ComputerName,'~Applications'.Name, '~Applications'.Version AS InstalledVersion,(SELECT SystemVariables.Value from SystemVariables WHERE Name = 'RTVerJava8') As CurrentVersion
  146. FROM
  147. '~Applications'
  148. where '~Applications'.ComputerId IN
  149. (
  150. SELECT Computers.ComputerId
  151. FROM Computers
  152. WHERE Computers.ComputerId IN
  153. (SELECT CollectionComputers.ComputerId
  154. FROM CollectionComputers
  155.  
  156. WHERE CollectionComputers.CollectionId IN
  157. (SELECT Collections.CollectionId
  158. FROM Collections
  159. WHERE Collections.Path = 'Collection Library\Runtimes\Java (JRE)\Java 8\Java 8 64-bit\Java 8 64-bit (Old)'
  160. )
  161. AND CollectionComputers.IsMember = 1
  162. )
  163. )
  164. AND
  165. LOWER('~Applications'.Name) REGEXP (SELECT LOWER(Value) FROM SystemVariables WHERE Name= 'RTNameJava864RegEx')
  166.  
  167. UNION ALL
  168.  
  169. SELECT (SELECT Computers.Name FROM Computers WHERE Computers.ComputerId = '~Applications'.ComputerID) as ComputerName,'~Applications'.Name, '~Applications'.Version AS InstalledVersion,(SELECT SystemVariables.Value from SystemVariables WHERE Name = 'RTVerJava7') As CurrentVersion
  170. FROM
  171. '~Applications'
  172. where '~Applications'.ComputerId IN
  173. (
  174. SELECT Computers.ComputerId
  175. FROM Computers
  176. WHERE Computers.ComputerId IN
  177. (SELECT CollectionComputers.ComputerId
  178. FROM CollectionComputers
  179.  
  180. WHERE CollectionComputers.CollectionId IN
  181. (SELECT Collections.CollectionId
  182. FROM Collections
  183. WHERE Collections.Path = 'Collection Library\Runtimes\Java (JRE)\Java 7\Java 7 32-bit\Java 7 32-bit (Old)'
  184. )
  185. AND CollectionComputers.IsMember = 1
  186. )
  187. )
  188. AND
  189. LOWER('~Applications'.Name) REGEXP (SELECT LOWER(Value) FROM SystemVariables WHERE Name= 'RTNameJava732RegEx')
  190.  
  191. UNION ALL
  192.  
  193. SELECT (SELECT Computers.Name FROM Computers WHERE Computers.ComputerId = '~Applications'.ComputerID) as ComputerName,'~Applications'.Name, '~Applications'.Version AS InstalledVersion,(SELECT SystemVariables.Value from SystemVariables WHERE Name = 'RTVerJava7') As CurrentVersion
  194. FROM
  195. '~Applications'
  196. where '~Applications'.ComputerId IN
  197. (
  198. SELECT Computers.ComputerId
  199. FROM Computers
  200. WHERE Computers.ComputerId IN
  201. (SELECT CollectionComputers.ComputerId
  202. FROM CollectionComputers
  203.  
  204. WHERE CollectionComputers.CollectionId IN
  205. (SELECT Collections.CollectionId
  206. FROM Collections
  207. WHERE Collections.Path = 'Collection Library\Runtimes\Java (JRE)\Java 7\Java 7 64-bit\Java 7 64-bit (Old)'
  208. )
  209. AND CollectionComputers.IsMember = 1
  210. )
  211. )
  212. AND
  213. LOWER('~Applications'.Name) REGEXP (SELECT LOWER(Value) FROM SystemVariables WHERE Name= 'RTNameJava764RegEx')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement