/sccmclictr.automation/SoftwareDistribution.cs

# · C# · 9103 lines · 1776 code · 291 blank · 7036 comment · 64 complexity · 4f42546d0149aeb8b48f34dfdb8b6e61 MD5 · raw file

  1. //SCCM Client Center Automation Library (SCCMCliCtr.automation)
  2. //Copyright (c) 2011 by Roger Zander
  3. //This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or any later version.
  4. //This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
  5. //GNU General Public License: http://www.gnu.org/licenses/lgpl.html
  6. #define CM2012
  7. #define CM2007
  8. using System;
  9. using System.Collections.Generic;
  10. using System.Linq;
  11. using System.Text;
  12. using sccmclictr.automation;
  13. using System.Management;
  14. using System.Management.Automation;
  15. using System.Management.Automation.Runspaces;
  16. using System.Diagnostics;
  17. using System.Web;
  18. using System.Drawing;
  19. using System.Xml;
  20. namespace sccmclictr.automation.functions
  21. {
  22. #if CM2012
  23. /// <summary>
  24. /// Template for an empty Class
  25. /// </summary>
  26. public class softwaredistribution : baseInit
  27. {
  28. internal Runspace remoteRunspace;
  29. internal TraceSource pSCode;
  30. internal ccm baseClient;
  31. //Constructor
  32. /// <summary>
  33. /// Initializes a new instance of the <see cref="softwaredistribution"/> class.
  34. /// </summary>
  35. /// <param name="RemoteRunspace">The remote runspace.</param>
  36. /// <param name="PSCode">The PowerShell code.</param>
  37. /// <param name="oClient">A CCM Client object.</param>
  38. public softwaredistribution(Runspace RemoteRunspace, TraceSource PSCode, ccm oClient)
  39. : base(RemoteRunspace, PSCode)
  40. {
  41. remoteRunspace = RemoteRunspace;
  42. pSCode = PSCode;
  43. baseClient = oClient;
  44. }
  45. /// <summary>
  46. /// Get a list of Applications (SELECT * FROM CCM_Application)
  47. /// </summary>
  48. public List<CCM_Application> Applications
  49. {
  50. get
  51. {
  52. return Applications_(false);
  53. }
  54. }
  55. /// <summary>
  56. /// Get a list of Applications (SELECT * FROM CCM_Application)
  57. /// </summary>
  58. /// <param name="bReload">enforce reload</param>
  59. /// <returns>List of CCM_Application</returns>
  60. public List<CCM_Application> Applications_(Boolean bReload)
  61. {
  62. return Applications_(bReload, new TimeSpan(0, 3, 0));
  63. }
  64. /// <summary>
  65. /// Get a list of Applications (SELECT * FROM CCM_Application)
  66. /// </summary>
  67. /// <param name="bReload">enforce reload</param>
  68. /// <param name="CacheTime">TTL for Cached items</param>
  69. /// <returns></returns>
  70. public List<CCM_Application> Applications_(Boolean bReload, TimeSpan CacheTime)
  71. {
  72. List<CCM_Application> lApps = new List<CCM_Application>();
  73. List<PSObject> oObj = new List<PSObject>();
  74. oObj = GetObjects(@"ROOT\ccm\ClientSDK", "SELECT * FROM CCM_Application", bReload, CacheTime);
  75. foreach (PSObject PSObj in oObj)
  76. {
  77. //Get AppDTs sub Objects
  78. CCM_Application oApp = new CCM_Application(PSObj, remoteRunspace, pSCode);
  79. oApp.remoteRunspace = remoteRunspace;
  80. oApp.pSCode = pSCode;
  81. lApps.Add(oApp);
  82. }
  83. return lApps;
  84. }
  85. /// <summary>
  86. /// Get a list of Programs
  87. /// </summary>
  88. public List<CCM_Program> Programs
  89. {
  90. get
  91. {
  92. List<CCM_Program> lApps = new List<CCM_Program>();
  93. List<PSObject> oObj = GetObjects(@"ROOT\ccm\ClientSDK", "SELECT * FROM CCM_Program");
  94. foreach (PSObject PSObj in oObj)
  95. {
  96. //Get AppDTs sub Objects
  97. CCM_Program oApp = new CCM_Program(PSObj, remoteRunspace, pSCode);
  98. oApp.remoteRunspace = remoteRunspace;
  99. oApp.pSCode = pSCode;
  100. lApps.Add(oApp);
  101. }
  102. return lApps;
  103. }
  104. }
  105. /// <summary>
  106. /// List of the System Execution History (only Machine based !)
  107. /// </summary>
  108. public List<REG_ExecutionHistory> ExecutionHistory
  109. {
  110. get { return ExecutionHistory_(false); }
  111. }
  112. /// <summary>
  113. /// List of the System Execution History (only Machine based !)
  114. /// </summary>
  115. public List<REG_ExecutionHistory> ExecutionHistory_(Boolean bReload)
  116. {
  117. List<REG_ExecutionHistory> lExec = new List<REG_ExecutionHistory>();
  118. List<PSObject> oObj = new List<PSObject>();
  119. Boolean bisSCCM2012 = baseClient.AgentProperties.isSCCM2012;
  120. Boolean bisx64OS = true;
  121. //Only Get Architecture if SCCM < 2012
  122. if (!bisSCCM2012)
  123. bisx64OS = baseClient.Inventory.isx64OS;
  124. if (bisSCCM2012)
  125. oObj = GetObjectsFromPS("Get-ChildItem -path \"HKLM:\\SOFTWARE\\Microsoft\\SMS\\Mobile Client\\Software Distribution\\Execution History\" -Recurse | % { get-itemproperty -path $_.PsPath }", bReload, new TimeSpan(0, 0, 10));
  126. if (!bisSCCM2012 & bisx64OS)
  127. oObj = GetObjectsFromPS("Get-ChildItem -path \"HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\SMS\\Mobile Client\\Software Distribution\\Execution History\" -Recurse | % { get-itemproperty -path $_.PsPath }", bReload, new TimeSpan(0, 0, 10));
  128. if (!bisSCCM2012 & !bisx64OS)
  129. oObj = GetObjectsFromPS("Get-ChildItem -path \"HKLM:\\SOFTWARE\\Microsoft\\SMS\\Mobile Client\\Software Distribution\\Execution History\" -Recurse | % { get-itemproperty -path $_.PsPath }", bReload, new TimeSpan(0, 0, 10));
  130. foreach (PSObject PSObj in oObj)
  131. {
  132. //Get AppDTs sub Objects
  133. REG_ExecutionHistory oReg = new REG_ExecutionHistory(PSObj, remoteRunspace, pSCode);
  134. oReg.remoteRunspace = remoteRunspace;
  135. oReg.pSCode = pSCode;
  136. lExec.Add(oReg);
  137. }
  138. return lExec;
  139. }
  140. /// <summary>
  141. /// List of Package-Deployments (old Package-Model)
  142. /// </summary>
  143. public List<CCM_SoftwareDistribution> Advertisements
  144. {
  145. get
  146. {
  147. return Advertisements_(false);
  148. }
  149. }
  150. /// <summary>
  151. /// List of Package-Deployments (old Package-Model)
  152. /// </summary>
  153. public List<CCM_SoftwareDistribution> Advertisements_(Boolean bReload)
  154. {
  155. List<CCM_SoftwareDistribution> lApps = new List<CCM_SoftwareDistribution>();
  156. List<PSObject> oObj = GetObjects(@"root\ccm\policy\machine\actualconfig", "SELECT * FROM CCM_SoftwareDistribution", bReload);
  157. foreach (PSObject PSObj in oObj)
  158. {
  159. //Get AppDTs sub Objects
  160. CCM_SoftwareDistribution oApp = new CCM_SoftwareDistribution(PSObj, remoteRunspace, pSCode);
  161. oApp.remoteRunspace = remoteRunspace;
  162. oApp.pSCode = pSCode;
  163. lApps.Add(oApp);
  164. }
  165. return lApps;
  166. }
  167. /// <summary>
  168. /// List of Applications, Updates and Acvertisements
  169. /// </summary>
  170. public List<SoftwareStatus> SoftwareSummary
  171. {
  172. get
  173. {
  174. return SoftwareSummary_(false);
  175. }
  176. }
  177. /// <summary>
  178. /// List of Applications, Updates and Acvertisements
  179. /// </summary>
  180. /// <param name="bReload">enforce a reload, otherwise it will use the data from cache</param>
  181. /// <returns></returns>
  182. public List<SoftwareStatus> SoftwareSummary_(Boolean bReload)
  183. {
  184. List<SoftwareStatus> lSW = new List<SoftwareStatus>();
  185. List<PSObject> oObj = new List<PSObject>();
  186. oObj = GetObjects(@"ROOT\ccm\ClientSDK", "SELECT * FROM CCM_SoftwareBase", bReload);
  187. foreach (PSObject PSObj in oObj)
  188. {
  189. try
  190. {
  191. //Get AppDTs sub Objects
  192. SoftwareStatus oApp = new SoftwareStatus(PSObj, remoteRunspace, pSCode);
  193. if (!string.IsNullOrEmpty(oApp.Type))
  194. {
  195. oApp.remoteRunspace = remoteRunspace;
  196. oApp.pSCode = pSCode;
  197. lSW.Add(oApp);
  198. }
  199. }
  200. catch { }
  201. }
  202. return lSW;
  203. }
  204. /// <summary>
  205. /// ROOT\ccm\ClientSDK:CCM_SoftwareBase
  206. /// </summary>
  207. public class CCM_SoftwareBase
  208. {
  209. #region Properties
  210. internal string __CLASS { get; set; }
  211. internal string __NAMESPACE { get; set; }
  212. internal bool __INSTANCE { get; set; }
  213. internal string __RELPATH { get; set; }
  214. internal PSObject WMIObject { get; set; }
  215. internal Runspace remoteRunspace;
  216. internal TraceSource pSCode;
  217. #pragma warning disable 1591 // Disable warnings about missing XML comments
  218. public UInt32? ContentSize { get; set; }
  219. public DateTime? Deadline { get; set; }
  220. public String Description { get; set; }
  221. public UInt32? ErrorCode { get; set; }
  222. public UInt32? EstimatedInstallTime { get; set; }
  223. public UInt32? EvaluationState { get; set; }
  224. public String FullName { get; set; }
  225. public String Name { get; set; }
  226. public DateTime? NextUserScheduledTime { get; set; }
  227. public UInt32? PercentComplete { get; set; }
  228. public String Publisher { get; set; }
  229. public UInt32? Type { get; set; }
  230. #pragma warning restore 1591 // Enable warnings about missing XML comments
  231. #endregion
  232. #region Methods
  233. #endregion
  234. /// <summary>
  235. /// Initializes a new instance of the <see cref="CCM_SoftwareBase"/> class.
  236. /// </summary>
  237. /// <param name="WMIObject">The WMI object.</param>
  238. public CCM_SoftwareBase(PSObject WMIObject)
  239. {
  240. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  241. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  242. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  243. this.__INSTANCE = true;
  244. this.ContentSize = WMIObject.Properties["ContentSize"].Value as uint?;
  245. string sDeadline = WMIObject.Properties["Deadline"].Value as string;
  246. if (string.IsNullOrEmpty(sDeadline))
  247. this.Deadline = null;
  248. else
  249. this.Deadline = ManagementDateTimeConverter.ToDateTime(sDeadline) as DateTime?;
  250. this.Description = WMIObject.Properties["Description"].Value as string;
  251. this.ErrorCode = WMIObject.Properties["ErrorCode"].Value as uint?;
  252. this.EstimatedInstallTime = WMIObject.Properties["EstimatedInstallTime"].Value as uint?;
  253. this.EvaluationState = WMIObject.Properties["EvaluationState"].Value as uint?;
  254. this.FullName = WMIObject.Properties["FullName"].Value as string;
  255. this.Name = WMIObject.Properties["Name"].Value as string;
  256. string sNextUserScheduledTime = WMIObject.Properties["NextUserScheduledTime"].Value as string;
  257. if (string.IsNullOrEmpty(sNextUserScheduledTime))
  258. this.NextUserScheduledTime = null;
  259. else
  260. this.NextUserScheduledTime = ManagementDateTimeConverter.ToDateTime(sNextUserScheduledTime) as DateTime?;
  261. this.PercentComplete = WMIObject.Properties["PercentComplete"].Value as uint?;
  262. this.Publisher = WMIObject.Properties["Publisher"].Value as string;
  263. this.Type = WMIObject.Properties["Type"].Value as uint?;
  264. }
  265. }
  266. /// <summary>
  267. /// Class CCM_AppDeploymentType.
  268. /// </summary>
  269. public class CCM_AppDeploymentType : CCM_SoftwareBase
  270. {
  271. #region Properties
  272. /// <summary>
  273. /// Gets or sets the allowed actions.
  274. /// </summary>
  275. /// <value>The allowed actions.</value>
  276. public String[] AllowedActions { get; set; }
  277. /// <summary>
  278. /// Gets or sets the state of the applicability.
  279. /// </summary>
  280. /// <value>The state of the applicability.</value>
  281. public String ApplicabilityState { get; set; }
  282. /// <summary>
  283. /// Gets or sets the dependencies.
  284. /// </summary>
  285. /// <value>The dependencies.</value>
  286. public CCM_AppDeploymentType[] Dependencies { get; set; }
  287. /*{
  288. get
  289. {
  290. //Get Dependencies sub Objects
  291. List<CCM_AppDeploymentType> lTypes = new List<CCM_AppDeploymentType>();
  292. baseInit oNewBase = new baseInit(remoteRunspace, pSCode);
  293. List<PSObject> lPSAppDts = oNewBase.GetProperties(@"ROOT\ccm\clientsdk:" + this.__RELPATH, "Dependencies");
  294. List<CCM_AppDeploymentType> lAppDTs = new List<CCM_AppDeploymentType>();
  295. foreach (PSObject pAppDT in lPSAppDts)
  296. {
  297. lAppDTs.Add(new CCM_AppDeploymentType(pAppDT));
  298. }
  299. return lAppDTs.ToArray();
  300. }
  301. set
  302. {
  303. Dependencies = value;
  304. }
  305. } */
  306. /// <summary>
  307. /// Gets or sets the deployment report.
  308. /// </summary>
  309. /// <value>The deployment report.</value>
  310. public String DeploymentReport { get; set; }
  311. /// <summary>
  312. /// Gets or sets the identifier.
  313. /// </summary>
  314. /// <value>The identifier.</value>
  315. public String Id { get; set; }
  316. /// <summary>
  317. /// Gets or sets the state of the install.
  318. /// </summary>
  319. /// <value>The state of the install.</value>
  320. public String InstallState { get; set; }
  321. /// <summary>
  322. /// Gets or sets the last eval time.
  323. /// </summary>
  324. /// <value>The last eval time.</value>
  325. public DateTime? LastEvalTime { get; set; }
  326. /// <summary>
  327. /// Gets or sets the post install action.
  328. /// </summary>
  329. /// <value>The post install action.</value>
  330. public String PostInstallAction { get; set; }
  331. /// <summary>
  332. /// Gets or sets the resolved state.
  333. /// </summary>
  334. /// <value>The resolved state.</value>
  335. public String ResolvedState { get; set; }
  336. /// <summary>
  337. /// Gets or sets the number of retries remaining.
  338. /// </summary>
  339. /// <value>The number of retries remaining.</value>
  340. public UInt32? RetriesRemaining { get; set; }
  341. /// <summary>
  342. /// Gets or sets the revision.
  343. /// </summary>
  344. /// <value>The revision.</value>
  345. public String Revision { get; set; }
  346. /// <summary>
  347. /// Gets or sets the supersession state.
  348. /// </summary>
  349. /// <value>The supersession state.</value>
  350. public String SupersessionState { get; set; }
  351. #endregion
  352. #region Methods
  353. /*
  354. public UInt32 GetProperty(UInt32 LanguageId, String PropertyName, out String PropertyValue)
  355. {
  356. PropertyValue = "";
  357. return 0;
  358. }*/
  359. #endregion
  360. /// <summary>
  361. /// Initializes a new instance of the <see cref="CCM_SoftwareBase" /> class.
  362. /// </summary>
  363. /// <param name="WMIObject">The WMI object.</param>
  364. public CCM_AppDeploymentType(PSObject WMIObject)
  365. : base(WMIObject)
  366. {
  367. this.WMIObject = WMIObject;
  368. this.AllowedActions = WMIObject.Properties["AllowedActions"].Value as string[];
  369. this.ApplicabilityState = WMIObject.Properties["ApplicabilityState"].Value as string;
  370. //Get Dependencies Objects
  371. try
  372. {
  373. //baseInit oNewBase = new baseInit(remoteRunspace, pSCode);
  374. if (WMIObject.Properties["Dependencies"].Value == null)
  375. {
  376. this.Dependencies = null;
  377. }
  378. else
  379. {
  380. List<CCM_AppDeploymentType> lAppDTs = new List<CCM_AppDeploymentType>();
  381. foreach (PSObject pAppDT in WMIObject.Properties["Dependencies"].Value as PSObject[])
  382. {
  383. lAppDTs.Add(new CCM_AppDeploymentType(pAppDT));
  384. }
  385. this.Dependencies = lAppDTs.ToArray();
  386. }
  387. }
  388. catch (Exception ex)
  389. {
  390. ex.Message.ToString();
  391. }
  392. this.DeploymentReport = WMIObject.Properties["DeploymentReport"].Value as string;
  393. this.Id = WMIObject.Properties["Id"].Value as string;
  394. this.InstallState = WMIObject.Properties["InstallState"].Value as String;
  395. string sLastEvalTime = WMIObject.Properties["LastEvalTime"].Value as string;
  396. if (string.IsNullOrEmpty(sLastEvalTime))
  397. this.LastEvalTime = null;
  398. else
  399. this.LastEvalTime = ManagementDateTimeConverter.ToDateTime(sLastEvalTime) as DateTime?;
  400. this.PostInstallAction = WMIObject.Properties["PostInstallAction"].Value as string;
  401. this.ResolvedState = WMIObject.Properties["ResolvedState"].Value as string;
  402. this.RetriesRemaining = WMIObject.Properties["RetriesRemaining"].Value as uint?;
  403. this.Revision = WMIObject.Properties["Revision"].Value as string;
  404. this.SupersessionState = WMIObject.Properties["SupersessionState"].Value as String;
  405. }
  406. }
  407. /// <summary>
  408. /// CCM_Application from ROOT\ccm\ClientSDK
  409. /// </summary>
  410. public class CCM_Application : CCM_SoftwareBase
  411. {
  412. internal baseInit oNewBase;
  413. #region Properties
  414. #pragma warning disable 1591 // Disable warnings about missing XML comments
  415. public String[] AllowedActions { get; set; }
  416. public CCM_AppDeploymentType[] AppDTs { get; set; }
  417. public String ApplicabilityState { get; set; }
  418. public String DeploymentReport { get; set; }
  419. public UInt32? EnforcePreference { get; set; }
  420. public String FileTypes { get; set; }
  421. public String Icon { get; set; }
  422. public String Id { get; set; }
  423. public String InformativeUrl { get; set; }
  424. public String[] InProgressActions { get; set; }
  425. public String InstallState { get; set; }
  426. public Boolean? IsMachineTarget { get; set; }
  427. public Boolean? IsPreflightOnly { get; set; }
  428. public DateTime? LastEvalTime { get; set; }
  429. public DateTime? LastInstallTime { get; set; }
  430. public Boolean? NotifyUser { get; set; }
  431. public DateTime? ReleaseDate { get; set; }
  432. public String ResolvedState { get; set; }
  433. public String Revision { get; set; }
  434. public String SoftwareVersion { get; set; }
  435. public DateTime? StartTime { get; set; }
  436. public String SupersessionState { get; set; }
  437. public Boolean? UserUIExperience { get; set; }
  438. #pragma warning restore 1591 // Enable warnings about missing XML comments
  439. /// <summary>
  440. /// Transalated EvaluationState into text from MSDN (http://msdn.microsoft.com/en-us/library/jj874280.aspx)
  441. /// </summary>
  442. public string EvaluationStateText
  443. {
  444. get
  445. {
  446. switch (EvaluationState)
  447. {
  448. case 0:
  449. return "No state information is available.";
  450. case 1:
  451. return "Application is enforced to desired/resolved state.";
  452. case 2:
  453. return "Application is not required on the client.";
  454. case 3:
  455. return "Application is available for enforcement (install or uninstall based on resolved state). Content may/may not have been downloaded.";
  456. case 4:
  457. return "Application last failed to enforce (install/uninstall).";
  458. case 5:
  459. return "Application is currently waiting for content download to complete.";
  460. case 6:
  461. return "Application is currently waiting for content download to complete.";
  462. case 7:
  463. return "Application is currently waiting for its dependencies to download.";
  464. case 8:
  465. return "Application is currently waiting for a service (maintenance) window.";
  466. case 9:
  467. return "Application is currently waiting for a previously pending reboot.";
  468. case 10:
  469. return "Application is currently waiting for serialized enforcement.";
  470. case 11:
  471. return "Application is currently enforcing dependencies.";
  472. case 12:
  473. return "Application is currently enforcing.";
  474. case 13:
  475. return "Application install/uninstall enforced and soft reboot is pending.";
  476. case 14:
  477. return "Application installed/uninstalled and hard reboot is pending.";
  478. case 15:
  479. return "Update is available but pending installation.";
  480. case 16:
  481. return "Application failed to evaluate.";
  482. case 17:
  483. return "Application is currently waiting for an active user session to enforce.";
  484. case 18:
  485. return "Application is currently waiting for all users to logoff.";
  486. case 19:
  487. return "Application is currently waiting for a user logon.";
  488. case 20:
  489. return "Application in progress, waiting for retry.";
  490. case 21:
  491. return "Application is waiting for presentation mode to be switched off.";
  492. case 22:
  493. return "Application is pre-downloading content (downloading outside of install job).";
  494. case 23:
  495. return "Application is pre-downloading dependent content (downloading outside of install job).";
  496. case 24:
  497. return "Application download failed (downloading during install job).";
  498. case 25:
  499. return "Application pre-downloading failed (downloading outside of install job).";
  500. case 26:
  501. return "Download success (downloading during install job).";
  502. case 27:
  503. return "Post-enforce evaluation.";
  504. case 28:
  505. return "Waiting for network connectivity.";
  506. default:
  507. return "Unknown state information.";
  508. }
  509. }
  510. }
  511. /*
  512. public CCM_AppDeploymentType[] AppDTs
  513. {
  514. get
  515. {
  516. //Get AppDTs sub Objects
  517. List<CCM_AppDeploymentType> lAppDTs = new List<CCM_AppDeploymentType>();
  518. if (remoteRunspace != null)
  519. {
  520. List<PSObject> lPSAppDts = oNewBase.GetProperties(@"ROOT\ccm\clientsdk:" + this.__RELPATH, "AppDTs");
  521. foreach (PSObject pAppDT in lPSAppDts)
  522. {
  523. lAppDTs.Add(new CCM_AppDeploymentType(pAppDT));
  524. }
  525. }
  526. return lAppDTs.ToArray();
  527. }
  528. set
  529. {
  530. }
  531. }
  532. * */
  533. #endregion
  534. /*
  535. #region Properties
  536. public String[] AllowedActions { get; set; }
  537. public String ApplicabilityState { get; set; }
  538. public String CurrentState { get; set; }
  539. public String DeploymentReport { get; set; }
  540. public UInt32? EnforcePreference { get; set; }
  541. public String FileTypes { get; set; }
  542. public String Icon { get; set; }
  543. public String Id { get; set; }
  544. public String InformativeUrl { get; set; }
  545. public Boolean? IsMachineTarget { get; set; }
  546. public DateTime? LastEvalTime { get; set; }
  547. public DateTime? LastInstallTime { get; set; }
  548. public Boolean? NotifyUser { get; set; }
  549. public String ProgressState { get; set; }
  550. public DateTime? ReleaseDate { get; set; }
  551. public String ResolvedState { get; set; }
  552. public String Revision { get; set; }
  553. public String SoftwareVersion { get; set; }
  554. public Boolean? UserUIExperience { get; set; }
  555. public CCM_AppDeploymentType[] AppDTs
  556. {
  557. get
  558. {
  559. //Get AppDTs sub Objects
  560. List<CCM_AppDeploymentType> lAppDTs = new List<CCM_AppDeploymentType>();
  561. if (remoteRunspace != null)
  562. {
  563. List<PSObject> lPSAppDts = oNewBase.GetProperties(@"ROOT\ccm\clientsdk:" + this.__RELPATH, "AppDTs");
  564. foreach (PSObject pAppDT in lPSAppDts)
  565. {
  566. lAppDTs.Add(new CCM_AppDeploymentType(pAppDT));
  567. }
  568. }
  569. return lAppDTs.ToArray();
  570. }
  571. set
  572. {
  573. AppDTs = value;
  574. }
  575. }
  576. #endregion
  577. * */
  578. #region Methods
  579. /*
  580. public UInt32 GetProperty(UInt32 LanguageId, String PropertyName, out String PropertyValue)
  581. {
  582. return 0;
  583. }
  584. public UInt32 DownloadContents(String Id, Boolean IsMachineTarget, String Priority, String Revision, out String JobId)
  585. {
  586. return 0;
  587. }
  588. public UInt32 Install(UInt32 EnforcePreference, String Id, Boolean IsMachineTarget, Boolean IsRebootIfNeeded, String Priority, String Revision, out String JobId)
  589. {
  590. return 0;
  591. }
  592. public UInt32 Cancel(String Id, Boolean IsMachineTarget, String Revision)
  593. {
  594. return 0;
  595. }
  596. public UInt32 Uninstall(UInt32 EnforcePreference, String Id, Boolean IsMachineTarget, Boolean IsRebootIfNeeded, String Priority, String Revision, out String JobId)
  597. {
  598. return 0;
  599. }
  600. public UInt32 GetPendingComponentList(String AppDeliveryTypeId, UInt32 Revision, out String PendingComponentList)
  601. {
  602. return 0;
  603. } */
  604. /// <summary>
  605. /// Install an Application
  606. /// </summary>
  607. /// <returns></returns>
  608. public string Install()
  609. {
  610. return Install(AppPriority.Normal, false);
  611. }
  612. /// <summary>
  613. /// Install an Application
  614. /// </summary>
  615. /// <param name="AppPriority">Foreground, High, Normal , Low</param>
  616. /// <param name="isRebootIfNeeded"></param>
  617. /// <returns></returns>
  618. public string Install(string AppPriority, bool isRebootIfNeeded)
  619. {
  620. if (string.IsNullOrEmpty(AppPriority))
  621. AppPriority = "Normal";
  622. string sJobID = "";
  623. PSObject oResult = oNewBase.CallClassMethod("ROOT\\ccm\\ClientSdk:CCM_Application", "Install", "'" + Id + "', " + Revision + ", $" + IsMachineTarget.ToString() + ", " + AppEnforcePreference.Immediate + ", " + "'" + AppPriority + "'" + ", $" + isRebootIfNeeded.ToString());
  624. //sJobID = oResult.Properties["JobID"].Value.ToString();
  625. return sJobID;
  626. }
  627. /// <summary>
  628. /// Uninstall an Application
  629. /// </summary>
  630. /// <returns></returns>
  631. public string Uninstall()
  632. {
  633. return Uninstall(AppPriority.Normal, false);
  634. }
  635. /// <summary>
  636. /// Uninstall an Application
  637. /// </summary>
  638. /// <param name="AppPriority">Foreground, High, Normal , Low</param>
  639. /// <param name="isRebootIfNeeded"></param>
  640. /// <returns></returns>
  641. public string Uninstall(string AppPriority, bool isRebootIfNeeded)
  642. {
  643. if (string.IsNullOrEmpty(AppPriority))
  644. AppPriority = "Normal";
  645. string sJobID = "";
  646. PSObject oResult = oNewBase.CallClassMethod("ROOT\\ccm\\ClientSdk:CCM_Application", "Uninstall", "'" + Id + "', " + Revision + ", $" + IsMachineTarget.ToString() + ", " + AppEnforcePreference.Immediate + ", " + "'" + AppPriority + "'" + ", $" + isRebootIfNeeded.ToString());
  647. return sJobID;
  648. }
  649. /// <summary>
  650. /// Cancel a Job -> Does not work !
  651. /// </summary>
  652. /// <returns></returns>
  653. public string Cancel()
  654. {
  655. PSObject oResult = oNewBase.CallClassMethod("ROOT\\ccm\\ClientSdk:CCM_Application", "Cancel", "'" + Id + "', " + Revision + ", $" + IsMachineTarget.ToString());
  656. return oResult.Properties["ReturnValue"].ToString();
  657. }
  658. /// <summary>
  659. /// Download Content
  660. /// </summary>
  661. /// <returns></returns>
  662. public string DownloadContents()
  663. {
  664. PSObject oResult = oNewBase.CallClassMethod("ROOT\\ccm\\ClientSdk:CCM_Application", "DownloadContents", "'" + Id + "', " + Revision + ", $" + IsMachineTarget.ToString() + ", 'Low'");
  665. return oResult.Properties["ReturnValue"].ToString();
  666. }
  667. #endregion
  668. /// <summary>
  669. /// Initializes a new instance of the <see cref="CCM_Application"/> class.
  670. /// </summary>
  671. /// <param name="WMIObject">The WMI object.</param>
  672. /// <param name="RemoteRunspace">The remote runspace.</param>
  673. /// <param name="PSCode">The PowerShell code.</param>
  674. public CCM_Application(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  675. : base(WMIObject)
  676. {
  677. remoteRunspace = RemoteRunspace;
  678. pSCode = PSCode;
  679. oNewBase = new baseInit(remoteRunspace, pSCode);
  680. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  681. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  682. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  683. this.__INSTANCE = true;
  684. this.WMIObject = WMIObject;
  685. List<string> lActions = new List<string>();
  686. //foreach (string sAction in WMIObject.Properties["AllowedActions"].Value as string[])
  687. foreach (string sAction in ((WMIObject.Properties["AllowedActions"].Value as PSObject).BaseObject as System.Collections.ArrayList))
  688. {
  689. lActions.Add(sAction);
  690. }
  691. this.AllowedActions = lActions.ToArray();
  692. //Get AppDTs
  693. try
  694. {
  695. //Get AppDTs sub Objects
  696. List<CCM_AppDeploymentType> lAppDTs = new List<CCM_AppDeploymentType>();
  697. if (remoteRunspace != null)
  698. {
  699. List<PSObject> lPSAppDts = oNewBase.GetProperties(@"ROOT\ccm\clientsdk:" + this.__RELPATH, "AppDTs");
  700. foreach (PSObject pAppDT in lPSAppDts)
  701. {
  702. lAppDTs.Add(new CCM_AppDeploymentType(pAppDT));
  703. }
  704. }
  705. this.AppDTs = lAppDTs.ToArray();
  706. }
  707. catch { }
  708. this.ApplicabilityState = WMIObject.Properties["ApplicabilityState"].Value as String;
  709. this.DeploymentReport = WMIObject.Properties["DeploymentReport"].Value as String;
  710. this.EnforcePreference = WMIObject.Properties["EnforcePreference"].Value as UInt32?;
  711. this.FileTypes = WMIObject.Properties["FileTypes"].Value as String;
  712. this.Icon = WMIObject.Properties["Icon"].Value as String;
  713. this.Id = WMIObject.Properties["Id"].Value as String;
  714. this.InformativeUrl = WMIObject.Properties["InformativeUrl"].Value as String;
  715. this.InProgressActions = WMIObject.Properties["InProgressActions"].Value as String[];
  716. this.InstallState = WMIObject.Properties["InstallState"].Value as String;
  717. this.IsMachineTarget = WMIObject.Properties["IsMachineTarget"].Value as Boolean?;
  718. this.IsPreflightOnly = WMIObject.Properties["IsPreflightOnly"].Value as Boolean?;
  719. string sLastEvalTime = WMIObject.Properties["LastEvalTime"].Value as string;
  720. if (string.IsNullOrEmpty(sLastEvalTime))
  721. this.LastEvalTime = null;
  722. else
  723. {
  724. try { this.LastEvalTime = ManagementDateTimeConverter.ToDateTime(sLastEvalTime) as DateTime?; }
  725. catch { }
  726. }
  727. string sLastInstallTime = WMIObject.Properties["LastInstallTime"].Value as string;
  728. if (string.IsNullOrEmpty(sLastInstallTime))
  729. this.LastInstallTime = null;
  730. else
  731. {
  732. try { this.LastInstallTime = ManagementDateTimeConverter.ToDateTime(sLastInstallTime) as DateTime?; }
  733. catch { }
  734. }
  735. this.NotifyUser = WMIObject.Properties["NotifyUser"].Value as Boolean?;
  736. string sReleaseDate = WMIObject.Properties["ReleaseDate"].Value as string;
  737. if (string.IsNullOrEmpty(sReleaseDate))
  738. this.ReleaseDate = null;
  739. else
  740. {
  741. try { this.ReleaseDate = ManagementDateTimeConverter.ToDateTime(sReleaseDate) as DateTime?; }
  742. catch { };
  743. }
  744. this.ResolvedState = WMIObject.Properties["ResolvedState"].Value as String;
  745. this.Revision = WMIObject.Properties["Revision"].Value as String;
  746. this.SoftwareVersion = WMIObject.Properties["SoftwareVersion"].Value as String;
  747. string sStartTime = WMIObject.Properties["StartTime"].Value as string;
  748. if (string.IsNullOrEmpty(sStartTime))
  749. this.StartTime = null;
  750. else
  751. {
  752. try { this.StartTime = ManagementDateTimeConverter.ToDateTime(sStartTime) as DateTime?; }
  753. catch { }
  754. }
  755. this.SupersessionState = WMIObject.Properties["SupersessionState"].Value as String;
  756. this.UserUIExperience = WMIObject.Properties["UserUIExperience"].Value as Boolean?;
  757. }
  758. }
  759. /// <summary>
  760. /// Source:ROOT\ccm\Policy\Machine\ActualConfig
  761. /// </summary>
  762. public class CCM_Policy
  763. {
  764. //Constructor
  765. /// <summary>
  766. /// Initializes a new instance of the <see cref="CCM_Policy"/> class.
  767. /// </summary>
  768. /// <param name="WMIObject">The WMI object.</param>
  769. public CCM_Policy(PSObject WMIObject)
  770. {
  771. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  772. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  773. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  774. this.__INSTANCE = true;
  775. this.WMIObject = WMIObject;
  776. }
  777. #region Properties
  778. internal string __CLASS { get; set; }
  779. internal string __NAMESPACE { get; set; }
  780. internal bool __INSTANCE { get; set; }
  781. internal string __RELPATH { get; set; }
  782. internal PSObject WMIObject { get; set; }
  783. internal Runspace remoteRunspace;
  784. internal TraceSource pSCode;
  785. #endregion
  786. }
  787. /// <summary>
  788. /// Source:ROOT\ccm\Policy\Machine\ActualConfig
  789. /// </summary>
  790. public class CCM_SoftwareDistribution : CCM_Policy
  791. {
  792. internal baseInit oNewBase;
  793. //Constructor
  794. /// <summary>
  795. /// Initializes a new instance of the <see cref="CCM_SoftwareDistribution"/> class.
  796. /// </summary>
  797. /// <param name="WMIObject">The WMI object.</param>
  798. /// <param name="RemoteRunspace">The remote runspace.</param>
  799. /// <param name="PSCode">The PowerShell code.</param>
  800. public CCM_SoftwareDistribution(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  801. : base(WMIObject)
  802. {
  803. remoteRunspace = RemoteRunspace;
  804. pSCode = PSCode;
  805. oNewBase = new baseInit(remoteRunspace, pSCode);
  806. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  807. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  808. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  809. this.__INSTANCE = true;
  810. this.WMIObject = WMIObject;
  811. string sADV_ActiveTime = WMIObject.Properties["ADV_ActiveTime"].Value as string;
  812. if (string.IsNullOrEmpty(sADV_ActiveTime))
  813. this.ADV_ActiveTime = null;
  814. else
  815. this.ADV_ActiveTime = ManagementDateTimeConverter.ToDateTime(sADV_ActiveTime) as DateTime?;
  816. this.ADV_ActiveTimeIsGMT = WMIObject.Properties["ADV_ActiveTimeIsGMT"].Value as Boolean?;
  817. this.ADV_ADF_Published = WMIObject.Properties["ADV_ADF_Published"].Value as Boolean?;
  818. this.ADV_ADF_RunNotification = WMIObject.Properties["ADV_ADF_RunNotification"].Value as Boolean?;
  819. this.ADV_AdvertisementID = WMIObject.Properties["ADV_AdvertisementID"].Value as String;
  820. string sADV_ExpirationTime = WMIObject.Properties["ADV_ExpirationTime"].Value as string;
  821. if (string.IsNullOrEmpty(sADV_ExpirationTime))
  822. this.ADV_ExpirationTime = null;
  823. else
  824. this.ADV_ExpirationTime = ManagementDateTimeConverter.ToDateTime(sADV_ExpirationTime) as DateTime?;
  825. this.ADV_ExpirationTimeIsGMT = WMIObject.Properties["ADV_ExpirationTimeIsGMT"].Value as Boolean?;
  826. this.ADV_FirstRunBehavior = WMIObject.Properties["ADV_FirstRunBehavior"].Value as String;
  827. this.ADV_MandatoryAssignments = WMIObject.Properties["ADV_MandatoryAssignments"].Value as Boolean?;
  828. this.ADV_ProgramWindowIsGMT = WMIObject.Properties["ADV_ProgramWindowIsGMT"].Value as Boolean?;
  829. string sADV_ProgramWindowStartTime = WMIObject.Properties["ADV_ProgramWindowStartTime"].Value as string;
  830. if (string.IsNullOrEmpty(sADV_ProgramWindowStartTime))
  831. this.ADV_ProgramWindowStartTime = null;
  832. else
  833. this.ADV_ProgramWindowStartTime = ManagementDateTimeConverter.ToDateTime(sADV_ProgramWindowStartTime) as DateTime?;
  834. string sADV_ProgramWindowStopTime = WMIObject.Properties["ADV_ProgramWindowStopTime"].Value as string;
  835. if (string.IsNullOrEmpty(sADV_ProgramWindowStopTime))
  836. this.ADV_ProgramWindowStopTime = null;
  837. else
  838. this.ADV_ProgramWindowStopTime = ManagementDateTimeConverter.ToDateTime(sADV_ProgramWindowStopTime) as DateTime?;
  839. this.ADV_RCF_InstallFromCDOptions = WMIObject.Properties["ADV_RCF_InstallFromCDOptions"].Value as String;
  840. this.ADV_RCF_InstallFromLocalDPOptions = WMIObject.Properties["ADV_RCF_InstallFromLocalDPOptions"].Value as String;
  841. this.ADV_RCF_InstallFromRemoteDPOptions = WMIObject.Properties["ADV_RCF_InstallFromRemoteDPOptions"].Value as String;
  842. this.ADV_RCF_PostponeToAC = WMIObject.Properties["ADV_RCF_PostponeToAC"].Value as Boolean?;
  843. this.ADV_RebootLogoffNotification = WMIObject.Properties["ADV_RebootLogoffNotification"].Value as Boolean?;
  844. this.ADV_RebootLogoffNotificationCountdownDuration = WMIObject.Properties["ADV_RebootLogoffNotificationCountdownDuration"].Value as UInt32?;
  845. this.ADV_RebootLogoffNotificationFinalWindow = WMIObject.Properties["ADV_RebootLogoffNotificationFinalWindow"].Value as UInt32?;
  846. this.ADV_RepeatRunBehavior = WMIObject.Properties["ADV_RepeatRunBehavior"].Value as String;
  847. this.ADV_RetryCount = WMIObject.Properties["ADV_RetryCount"].Value as UInt32?;
  848. this.ADV_RetryInterval = WMIObject.Properties["ADV_RetryInterval"].Value as UInt32?;
  849. this.ADV_RunNotificationCountdownDuration = WMIObject.Properties["ADV_RunNotificationCountdownDuration"].Value as UInt32?;
  850. this.PKG_ContentSize = WMIObject.Properties["PKG_ContentSize"].Value as UInt32?;
  851. this.PKG_Language = WMIObject.Properties["PKG_Language"].Value as String;
  852. this.PKG_Manufacturer = WMIObject.Properties["PKG_Manufacturer"].Value as String;
  853. this.PKG_MIFChecking = WMIObject.Properties["PKG_MIFChecking"].Value as Boolean?;
  854. this.PKG_MifFileName = WMIObject.Properties["PKG_MifFileName"].Value as String;
  855. this.PKG_MIFName = WMIObject.Properties["PKG_MIFName"].Value as String;
  856. this.PKG_MIFPublisher = WMIObject.Properties["PKG_MIFPublisher"].Value as String;
  857. this.PKG_MIFVersion = WMIObject.Properties["PKG_MIFVersion"].Value as String;
  858. this.PKG_Name = WMIObject.Properties["PKG_Name"].Value as String;
  859. this.PKG_PackageID = WMIObject.Properties["PKG_PackageID"].Value as String;
  860. this.PKG_PSF_ContainsSourceFiles = WMIObject.Properties["PKG_PSF_ContainsSourceFiles"].Value as Boolean?;
  861. this.PKG_SourceHash = WMIObject.Properties["PKG_SourceHash"].Value as String;
  862. this.PKG_SourceVersion = WMIObject.Properties["PKG_SourceVersion"].Value as String;
  863. this.PKG_version = WMIObject.Properties["PKG_version"].Value as String;
  864. this.PRG_Category = WMIObject.Properties["PRG_Category"].Value as String[];
  865. this.PRG_CommandLine = WMIObject.Properties["PRG_CommandLine"].Value as String;
  866. this.PRG_Comment = WMIObject.Properties["PRG_Comment"].Value as String;
  867. this.PRG_CustomLogoffReturnCodes = WMIObject.Properties["PRG_CustomLogoffReturnCodes"].Value as UInt32?[];
  868. this.PRG_CustomRebootReturnCodes = WMIObject.Properties["PRG_CustomRebootReturnCodes"].Value as UInt32?[];
  869. this.PRG_CustomSuccessReturnCodes = WMIObject.Properties["PRG_CustomSuccessReturnCodes"].Value as UInt32?[];
  870. this.PRG_DependentPolicy = WMIObject.Properties["PRG_DependentPolicy"].Value as Boolean?;
  871. this.PRG_DependentProgramPackageID = WMIObject.Properties["PRG_DependentProgramPackageID"].Value as String;
  872. this.PRG_DependentProgramProgramID = WMIObject.Properties["PRG_DependentProgramProgramID"].Value as String;
  873. this.PRG_DiskSpaceReq = WMIObject.Properties["PRG_DiskSpaceReq"].Value as String;
  874. this.PRG_DriveLetter = WMIObject.Properties["PRG_DriveLetter"].Value as String;
  875. this.PRG_ForceDependencyRun = WMIObject.Properties["PRG_ForceDependencyRun"].Value as Boolean?;
  876. this.PRG_HistoryLocation = WMIObject.Properties["PRG_HistoryLocation"].Value as String;
  877. this.PRG_MaxDuration = WMIObject.Properties["PRG_MaxDuration"].Value as UInt32?;
  878. this.PRG_PRF_AfterRunning = WMIObject.Properties["PRG_PRF_AfterRunning"].Value as String;
  879. this.PRG_PRF_Disabled = WMIObject.Properties["PRG_PRF_Disabled"].Value as Boolean?;
  880. this.PRG_PRF_InstallsApplication = WMIObject.Properties["PRG_PRF_InstallsApplication"].Value as Boolean?;
  881. this.PRG_PRF_MappedDriveRequired = WMIObject.Properties["PRG_PRF_MappedDriveRequired"].Value as Boolean?;
  882. this.PRG_PRF_PersistMappedDrive = WMIObject.Properties["PRG_PRF_PersistMappedDrive"].Value as Boolean?;
  883. this.PRG_PRF_RunNotification = WMIObject.Properties["PRG_PRF_RunNotification"].Value as Boolean?;
  884. this.PRG_PRF_RunWithAdminRights = WMIObject.Properties["PRG_PRF_RunWithAdminRights"].Value as Boolean?;
  885. this.PRG_PRF_ShowWindow = WMIObject.Properties["PRG_PRF_ShowWindow"].Value as String;
  886. this.PRG_PRF_UserInputRequired = WMIObject.Properties["PRG_PRF_UserInputRequired"].Value as Boolean?;
  887. this.PRG_PRF_UserLogonRequirement = WMIObject.Properties["PRG_PRF_UserLogonRequirement"].Value as String;
  888. this.PRG_ProgramID = WMIObject.Properties["PRG_ProgramID"].Value as String;
  889. this.PRG_ProgramName = WMIObject.Properties["PRG_ProgramName"].Value as String;
  890. this.PRG_Requirements = WMIObject.Properties["PRG_Requirements"].Value as String;
  891. this.PRG_ReturnCodesSource = WMIObject.Properties["PRG_ReturnCodesSource"].Value as String;
  892. this.PRG_WorkingDirectory = WMIObject.Properties["PRG_WorkingDirectory"].Value as String;
  893. this._RawObject = WMIObject;
  894. }
  895. #region Properties
  896. #pragma warning disable 1591 // Disable warnings about missing XML comments
  897. public DateTime? ADV_ActiveTime { get; set; }
  898. public Boolean? ADV_ActiveTimeIsGMT { get; set; }
  899. public Boolean? ADV_ADF_Published { get; set; }
  900. public Boolean? ADV_ADF_RunNotification { get; set; }
  901. public String ADV_AdvertisementID { get; set; }
  902. public DateTime? ADV_ExpirationTime { get; set; }
  903. public Boolean? ADV_ExpirationTimeIsGMT { get; set; }
  904. public String ADV_FirstRunBehavior { get; set; }
  905. public Boolean? ADV_MandatoryAssignments { get; set; }
  906. public Boolean? ADV_ProgramWindowIsGMT { get; set; }
  907. public DateTime? ADV_ProgramWindowStartTime { get; set; }
  908. public DateTime? ADV_ProgramWindowStopTime { get; set; }
  909. public String ADV_RCF_InstallFromCDOptions { get; set; }
  910. public String ADV_RCF_InstallFromLocalDPOptions { get; set; }
  911. public String ADV_RCF_InstallFromRemoteDPOptions { get; set; }
  912. public Boolean? ADV_RCF_PostponeToAC { get; set; }
  913. public Boolean? ADV_RebootLogoffNotification { get; set; }
  914. public UInt32? ADV_RebootLogoffNotificationCountdownDuration { get; set; }
  915. public UInt32? ADV_RebootLogoffNotificationFinalWindow { get; set; }
  916. public String ADV_RepeatRunBehavior { get; set; }
  917. public UInt32? ADV_RetryCount { get; set; }
  918. public UInt32? ADV_RetryInterval { get; set; }
  919. public UInt32? ADV_RunNotificationCountdownDuration { get; set; }
  920. public UInt32? PKG_ContentSize { get; set; }
  921. public String PKG_Language { get; set; }
  922. public String PKG_Manufacturer { get; set; }
  923. public Boolean? PKG_MIFChecking { get; set; }
  924. public String PKG_MifFileName { get; set; }
  925. public String PKG_MIFName { get; set; }
  926. public String PKG_MIFPublisher { get; set; }
  927. public String PKG_MIFVersion { get; set; }
  928. public String PKG_Name { get; set; }
  929. public String PKG_PackageID { get; set; }
  930. public Boolean? PKG_PSF_ContainsSourceFiles { get; set; }
  931. public String PKG_SourceHash { get; set; }
  932. public String PKG_SourceVersion { get; set; }
  933. public String PKG_version { get; set; }
  934. public String[] PRG_Category { get; set; }
  935. public String PRG_CommandLine { get; set; }
  936. public String PRG_Comment { get; set; }
  937. public UInt32?[] PRG_CustomLogoffReturnCodes { get; set; }
  938. public UInt32?[] PRG_CustomRebootReturnCodes { get; set; }
  939. public UInt32?[] PRG_CustomSuccessReturnCodes { get; set; }
  940. public Boolean? PRG_DependentPolicy { get; set; }
  941. public String PRG_DependentProgramPackageID { get; set; }
  942. public String PRG_DependentProgramProgramID { get; set; }
  943. public String PRG_DiskSpaceReq { get; set; }
  944. public String PRG_DriveLetter { get; set; }
  945. public Boolean? PRG_ForceDependencyRun { get; set; }
  946. public String PRG_HistoryLocation { get; set; }
  947. public UInt32? PRG_MaxDuration { get; set; }
  948. public String PRG_PRF_AfterRunning { get; set; }
  949. public Boolean? PRG_PRF_Disabled { get; set; }
  950. public Boolean? PRG_PRF_InstallsApplication { get; set; }
  951. public Boolean? PRG_PRF_MappedDriveRequired { get; set; }
  952. public Boolean? PRG_PRF_PersistMappedDrive { get; set; }
  953. public Boolean? PRG_PRF_RunNotification { get; set; }
  954. public Boolean? PRG_PRF_RunWithAdminRights { get; set; }
  955. public String PRG_PRF_ShowWindow { get; set; }
  956. public Boolean? PRG_PRF_UserInputRequired { get; set; }
  957. public String PRG_PRF_UserLogonRequirement { get; set; }
  958. public String PRG_ProgramID { get; set; }
  959. public String PRG_ProgramName { get; set; }
  960. public String PRG_Requirements { get; set; }
  961. public String PRG_ReturnCodesSource { get; set; }
  962. public String PRG_WorkingDirectory { get; set; }
  963. public PSObject _RawObject { get; set; }
  964. #pragma warning restore 1591 // Enable warnings about missing XML comments
  965. #endregion
  966. #region Methods
  967. /// <summary>
  968. /// CCM_Scheduler_ScheduledMessage object
  969. /// </summary>
  970. /// <returns></returns>
  971. public CCM_Scheduler_ScheduledMessage _ScheduledMessage()
  972. {
  973. try
  974. {
  975. XmlDocument xDoc = new XmlDocument();
  976. xDoc.LoadXml(PRG_Requirements);
  977. string sSchedID = xDoc.SelectSingleNode("/SWDReserved/ScheduledMessageID").InnerText.ToString();
  978. foreach (PSObject oObj in oNewBase.GetObjects(WMIObject.Properties["__NAMESPACE"].Value.ToString(), "SELECT * FROM CCM_Scheduler_ScheduledMessage WHERE ScheduledMessageID='" + sSchedID + "'"))
  979. {
  980. try
  981. {
  982. CCM_Scheduler_ScheduledMessage oMsg = new CCM_Scheduler_ScheduledMessage(oObj, remoteRunspace, pSCode);
  983. oMsg.remoteRunspace = remoteRunspace;
  984. oMsg.pSCode = pSCode;
  985. return oMsg;
  986. }
  987. catch { }
  988. }
  989. }
  990. catch(Exception ex)
  991. {
  992. Trace.TraceError(ex.Message);
  993. }
  994. return null;
  995. }
  996. /// <summary>
  997. /// Run (trigger) an advertisement
  998. /// </summary>
  999. public void TriggerSchedule(Boolean enforce)
  1000. {
  1001. try
  1002. {
  1003. string sSchedule = _ScheduledMessage().ScheduledMessageID;
  1004. if (enforce)
  1005. {
  1006. string sPrgReq = PRG_Requirements;
  1007. sPrgReq = sPrgReq.Replace("<OverrideServiceWindows>FALSE</OverrideServiceWindows>", "<OverrideServiceWindows>TRUE</OverrideServiceWindows>");
  1008. string sPreReq2 = sPrgReq;
  1009. sPrgReq = sPrgReq.Replace("\r", "");
  1010. sPrgReq = sPrgReq.Replace("\n", "");
  1011. sPrgReq = sPrgReq.Replace("\t", "");
  1012. //sPrgReq = sPrgReq.Replace("\"", "\"\"");
  1013. sPrgReq = sPrgReq.Replace("\'", "\'\'");
  1014. try
  1015. {
  1016. oNewBase.SetProperty(this.__NAMESPACE + ":" + this.__RELPATH.Replace("\"", "'"), "ADV_RepeatRunBehavior", "'RerunAlways'");
  1017. }
  1018. catch { }
  1019. try
  1020. {
  1021. oNewBase.SetProperty(this.__NAMESPACE + ":" + this.__RELPATH.Replace("\"", "'"), "ADV_MandatoryAssignments", "$True");
  1022. }
  1023. catch { }
  1024. try
  1025. {
  1026. oNewBase.SetProperty(this.__NAMESPACE + ":" + this.__RELPATH.Replace("\"", "'"), "PRG_Requirements", "'" + sPrgReq + "'");
  1027. }
  1028. catch (Exception ex)
  1029. {
  1030. Trace.TraceError(ex.Message);
  1031. }
  1032. this.ADV_RepeatRunBehavior = "RerunAlways";
  1033. this.ADV_MandatoryAssignments = true;
  1034. this.PRG_Requirements = sPreReq2;
  1035. //Evaluate machine policy...
  1036. //oNewBase.CallClassMethod(@"ROOT\ccm:SMS_Client", "TriggerSchedule", "'{00000000-0000-0000-0000-000000000022}'", true);
  1037. //Wait 0.5s and hope that to policy is updated...
  1038. System.Threading.Thread.Sleep(500);
  1039. }
  1040. //this.oNewBase.CallClassMethod(@"root\ccm\ClientSDK:CCM_ProgramsManager", "ExecuteProgram", "'" + PRG_ProgramID + "', '" + PKG_PackageID + "'");
  1041. this.oNewBase.CallClassMethod(@"ROOT\ccm:SMS_Client", "TriggerSchedule", "'" + sSchedule + "'");
  1042. }
  1043. catch (Exception ex)
  1044. {
  1045. Trace.TraceError(ex.Message);
  1046. }
  1047. }
  1048. #endregion
  1049. }
  1050. /// <summary>
  1051. /// Source:ROOT\ccm\Policy\Machine\ActualConfig
  1052. /// </summary>
  1053. public class CCM_TaskSequence : CCM_SoftwareDistribution
  1054. {
  1055. //Constructor
  1056. /// <summary>
  1057. /// Initializes a new instance of the <see cref="CCM_SoftwareDistribution" /> class.
  1058. /// </summary>
  1059. /// <param name="WMIObject">The WMI object.</param>
  1060. /// <param name="RemoteRunspace">The remote runspace.</param>
  1061. /// <param name="PSCode">The PowerShell code.</param>
  1062. public CCM_TaskSequence(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  1063. : base(WMIObject, RemoteRunspace, PSCode)
  1064. {
  1065. remoteRunspace = RemoteRunspace;
  1066. pSCode = PSCode;
  1067. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  1068. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  1069. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  1070. this.__INSTANCE = true;
  1071. this.WMIObject = WMIObject;
  1072. this.Reserved = WMIObject.Properties["Reserved"].Value as String;
  1073. this.TS_BootImageID = WMIObject.Properties["TS_BootImageID"].Value as String;
  1074. string sTS_Deadline = WMIObject.Properties["TS_Deadline"].Value as string;
  1075. if (string.IsNullOrEmpty(sTS_Deadline))
  1076. this.TS_Deadline = null;
  1077. else
  1078. this.TS_Deadline = ManagementDateTimeConverter.ToDateTime(sTS_Deadline) as DateTime?;
  1079. this.TS_MandatoryCountdown = WMIObject.Properties["TS_MandatoryCountdown"].Value as UInt32?;
  1080. this.TS_PopupReminderInterval = WMIObject.Properties["TS_PopupReminderInterval"].Value as UInt32?;
  1081. this.TS_References = WMIObject.Properties["TS_References"].Value as String[];
  1082. this.TS_Sequence = WMIObject.Properties["TS_Sequence"].Value as String;
  1083. this.TS_Type = WMIObject.Properties["TS_Type"].Value as UInt32?;
  1084. this.TS_UserNotificationFlags = WMIObject.Properties["TS_UserNotificationFlags"].Value as UInt32?;
  1085. }
  1086. #region Properties
  1087. #pragma warning disable 1591 // Disable warnings about missing XML comments
  1088. public String Reserved { get; set; }
  1089. public String TS_BootImageID { get; set; }
  1090. public DateTime? TS_Deadline { get; set; }
  1091. public UInt32? TS_MandatoryCountdown { get; set; }
  1092. public UInt32? TS_PopupReminderInterval { get; set; }
  1093. public String[] TS_References { get; set; }
  1094. public String TS_Sequence { get; set; }
  1095. public UInt32? TS_Type { get; set; }
  1096. public UInt32? TS_UserNotificationFlags { get; set; }
  1097. #pragma warning restore 1591 // Enable warnings about missing XML comments
  1098. #endregion
  1099. }
  1100. /// <summary>
  1101. /// Source:ROOT\ccm\ClientSDK
  1102. /// </summary>
  1103. public class CCM_Program : CCM_SoftwareBase
  1104. {
  1105. /// <summary>
  1106. /// Constructor
  1107. /// </summary>
  1108. /// <param name="WMIObject"></param>
  1109. /// <param name="RemoteRunspace"></param>
  1110. /// <param name="PSCode"></param>
  1111. public CCM_Program(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  1112. : base(WMIObject)
  1113. {
  1114. remoteRunspace = RemoteRunspace;
  1115. pSCode = PSCode;
  1116. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  1117. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  1118. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  1119. this.__INSTANCE = true;
  1120. this.WMIObject = WMIObject;
  1121. string sActivationTime = WMIObject.Properties["ActivationTime"].Value as string;
  1122. if (string.IsNullOrEmpty(sActivationTime))
  1123. this.ActivationTime = null;
  1124. else
  1125. this.ActivationTime = ManagementDateTimeConverter.ToDateTime(sActivationTime) as DateTime?;
  1126. this.AdvertisedDirectly = WMIObject.Properties["AdvertisedDirectly"].Value as Boolean?;
  1127. this.Categories = WMIObject.Properties["Categories"].Value as String[];
  1128. this.CompletionAction = WMIObject.Properties["CompletionAction"].Value as UInt32?;
  1129. this.Dependencies = WMIObject.Properties["Dependencies"].Value as CCM_Program[];
  1130. this.DependentPackageID = WMIObject.Properties["DependentPackageID"].Value as String;
  1131. this.DependentProgramID = WMIObject.Properties["DependentProgramID"].Value as String;
  1132. this.DiskSpaceRequired = WMIObject.Properties["DiskSpaceRequired"].Value as String;
  1133. this.Duration = WMIObject.Properties["Duration"].Value as UInt32?;
  1134. string sExpirationTime = WMIObject.Properties["ExpirationTime"].Value as string;
  1135. if (string.IsNullOrEmpty(sExpirationTime))
  1136. this.ExpirationTime = null;
  1137. else
  1138. this.ExpirationTime = ManagementDateTimeConverter.ToDateTime(sExpirationTime) as DateTime?;
  1139. this.ForceDependencyToRun = WMIObject.Properties["ForceDependencyToRun"].Value as Boolean?;
  1140. this.HighImpact = WMIObject.Properties["HighImpact"].Value as Boolean?;
  1141. this.LastExitCode = WMIObject.Properties["LastExitCode"].Value as UInt32?;
  1142. this.LastRunStatus = WMIObject.Properties["LastRunStatus"].Value as String;
  1143. string sLastRunTime = WMIObject.Properties["LastRunTime"].Value as string;
  1144. if (string.IsNullOrEmpty(sLastRunTime))
  1145. this.LastRunTime = null;
  1146. else
  1147. this.LastRunTime = ManagementDateTimeConverter.ToDateTime(sLastRunTime) as DateTime?;
  1148. this.Level = WMIObject.Properties["Level"].Value as UInt32?;
  1149. this.NotifyUser = WMIObject.Properties["NotifyUser"].Value as Boolean?;
  1150. this.PackageID = WMIObject.Properties["PackageID"].Value as String;
  1151. this.PackageLanguage = WMIObject.Properties["PackageLanguage"].Value as String;
  1152. this.PackageName = WMIObject.Properties["PackageName"].Value as String;
  1153. this.ProgramID = WMIObject.Properties["ProgramID"].Value as String;
  1154. this.Published = WMIObject.Properties["Published"].Value as Boolean?;
  1155. this.RepeatRunBehavior = WMIObject.Properties["RepeatRunBehavior"].Value as String;
  1156. this.RequiresUserInput = WMIObject.Properties["RequiresUserInput"].Value as Boolean?;
  1157. this.RunAtLogoff = WMIObject.Properties["RunAtLogoff"].Value as Boolean?;
  1158. this.RunAtLogon = WMIObject.Properties["RunAtLogon"].Value as Boolean?;
  1159. this.RunDependent = WMIObject.Properties["RunDependent"].Value as Boolean?;
  1160. this.TaskSequence = WMIObject.Properties["TaskSequence"].Value as Boolean?;
  1161. this.Version = WMIObject.Properties["Version"].Value as String;
  1162. }
  1163. #region Properties
  1164. #pragma warning disable 1591 // Disable warnings about missing XML comments
  1165. internal string __CLASS { get; set; }
  1166. internal string __NAMESPACE { get; set; }
  1167. internal bool __INSTANCE { get; set; }
  1168. internal string __RELPATH { get; set; }
  1169. internal PSObject WMIObject { get; set; }
  1170. internal Runspace remoteRunspace;
  1171. internal TraceSource pSCode;
  1172. public DateTime? ActivationTime { get; set; }
  1173. public Boolean? AdvertisedDirectly { get; set; }
  1174. public String[] Categories { get; set; }
  1175. public UInt32? CompletionAction { get; set; }
  1176. public CCM_Program[] Dependencies { get; set; }
  1177. public String DependentPackageID { get; set; }
  1178. public String DependentProgramID { get; set; }
  1179. public String DiskSpaceRequired { get; set; }
  1180. public UInt32? Duration { get; set; }
  1181. public DateTime? ExpirationTime { get; set; }
  1182. public Boolean? ForceDependencyToRun { get; set; }
  1183. public Boolean? HighImpact { get; set; }
  1184. public UInt32? LastExitCode { get; set; }
  1185. public String LastRunStatus { get; set; }
  1186. public DateTime? LastRunTime { get; set; }
  1187. public UInt32? Level { get; set; }
  1188. public Boolean? NotifyUser { get; set; }
  1189. public String PackageID { get; set; }
  1190. public String PackageLanguage { get; set; }
  1191. public String PackageName { get; set; }
  1192. public String ProgramID { get; set; }
  1193. public Boolean? Published { get; set; }
  1194. public String RepeatRunBehavior { get; set; }
  1195. public Boolean? RequiresUserInput { get; set; }
  1196. public Boolean? RunAtLogoff { get; set; }
  1197. public Boolean? RunAtLogon { get; set; }
  1198. public Boolean? RunDependent { get; set; }
  1199. public Boolean? TaskSequence { get; set; }
  1200. public String Version { get; set; }
  1201. #pragma warning restore 1591 // Enable warnings about missing XML comments
  1202. /// <summary>
  1203. /// Transalated EvaluationState into text from MSDN (http://msdn.microsoft.com/en-us/library/jj874280.aspx)
  1204. /// </summary>
  1205. public string EvaluationStateText
  1206. {
  1207. get
  1208. {
  1209. return "Unknown state information.";
  1210. }
  1211. }
  1212. #endregion
  1213. }
  1214. /// <summary>
  1215. /// Source:ROOT\ccm\Policy\Machine\ActualConfig
  1216. /// </summary>
  1217. public class CCM_Scheduler_ScheduledMessage : CCM_Policy
  1218. {
  1219. //Constructor
  1220. /// <summary>
  1221. /// Initializes a new instance of the <see cref="CCM_Scheduler_ScheduledMessage"/> class.
  1222. /// </summary>
  1223. /// <param name="WMIObject">The WMI object.</param>
  1224. /// <param name="RemoteRunspace">The remote runspace.</param>
  1225. /// <param name="PSCode">The PowerShell code.</param>
  1226. public CCM_Scheduler_ScheduledMessage(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  1227. : base(WMIObject)
  1228. {
  1229. remoteRunspace = RemoteRunspace;
  1230. pSCode = PSCode;
  1231. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  1232. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  1233. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  1234. this.__INSTANCE = true;
  1235. this.WMIObject = WMIObject;
  1236. this.ActiveMessage = WMIObject.Properties["ActiveMessage"].Value as String;
  1237. string sActiveTime = WMIObject.Properties["ActiveTime"].Value as string;
  1238. if (string.IsNullOrEmpty(sActiveTime))
  1239. this.ActiveTime = null;
  1240. else
  1241. this.ActiveTime = ManagementDateTimeConverter.ToDateTime(sActiveTime) as DateTime?;
  1242. this.ActiveTimeIsGMT = WMIObject.Properties["ActiveTimeIsGMT"].Value as Boolean?;
  1243. this.DeliverMode = WMIObject.Properties["DeliverMode"].Value as String;
  1244. this.ExpireMessage = WMIObject.Properties["ExpireMessage"].Value as String;
  1245. string sExpireTime = WMIObject.Properties["ExpireTime"].Value as string;
  1246. if (string.IsNullOrEmpty(sExpireTime))
  1247. this.ExpireTime = null;
  1248. else
  1249. this.ExpireTime = ManagementDateTimeConverter.ToDateTime(sExpireTime) as DateTime?;
  1250. this.ExpireTimeIsGMT = WMIObject.Properties["ExpireTimeIsGMT"].Value as Boolean?;
  1251. this.MessageName = WMIObject.Properties["MessageName"].Value as String;
  1252. this.MessageTimeout = WMIObject.Properties["MessageTimeout"].Value as String;
  1253. this.ReplyToEndpoint = WMIObject.Properties["ReplyToEndpoint"].Value as String;
  1254. this.ScheduledMessageID = WMIObject.Properties["ScheduledMessageID"].Value as String;
  1255. this.TargetEndpoint = WMIObject.Properties["TargetEndpoint"].Value as String;
  1256. this.TriggerMessage = WMIObject.Properties["TriggerMessage"].Value as String;
  1257. this.Triggers = WMIObject.Properties["Triggers"].Value as String[];
  1258. this._RawObject = WMIObject;
  1259. }
  1260. #region Properties
  1261. #pragma warning disable 1591 // Disable warnings about missing XML comments
  1262. public String ActiveMessage { get; set; }
  1263. public DateTime? ActiveTime { get; set; }
  1264. public Boolean? ActiveTimeIsGMT { get; set; }
  1265. public String DeliverMode { get; set; }
  1266. public String ExpireMessage { get; set; }
  1267. public DateTime? ExpireTime { get; set; }
  1268. public Boolean? ExpireTimeIsGMT { get; set; }
  1269. public String MessageName { get; set; }
  1270. public String MessageTimeout { get; set; }
  1271. public String ReplyToEndpoint { get; set; }
  1272. public String ScheduledMessageID { get; set; }
  1273. public String TargetEndpoint { get; set; }
  1274. public String TriggerMessage { get; set; }
  1275. public String[] Triggers { get; set; }
  1276. public PSObject _RawObject { get; set; }
  1277. #pragma warning restore 1591 // Enable warnings about missing XML comments
  1278. #endregion
  1279. }
  1280. /// <summary>
  1281. /// Source:ROOT\ccm\Scheduler
  1282. /// </summary>
  1283. public class CCM_Scheduler_History
  1284. {
  1285. //Constructor
  1286. /// <summary>
  1287. /// Initializes a new instance of the <see cref="CCM_Scheduler_History"/> class.
  1288. /// </summary>
  1289. /// <param name="WMIObject">The WMI object.</param>
  1290. /// <param name="RemoteRunspace">The remote runspace.</param>
  1291. /// <param name="PSCode">The PowerShell code.</param>
  1292. public CCM_Scheduler_History(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  1293. {
  1294. remoteRunspace = RemoteRunspace;
  1295. pSCode = PSCode;
  1296. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  1297. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  1298. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  1299. this.__INSTANCE = true;
  1300. this.WMIObject = WMIObject;
  1301. string sActivationMessageSent = WMIObject.Properties["ActivationMessageSent"].Value as string;
  1302. if (string.IsNullOrEmpty(sActivationMessageSent))
  1303. this.ActivationMessageSent = null;
  1304. else
  1305. this.ActivationMessageSent = ManagementDateTimeConverter.ToDateTime(sActivationMessageSent) as DateTime?;
  1306. this.ActivationMessageSentIsGMT = WMIObject.Properties["ActivationMessageSentIsGMT"].Value as Boolean?;
  1307. string sExpirationMessageSent = WMIObject.Properties["ExpirationMessageSent"].Value as string;
  1308. if (string.IsNullOrEmpty(sExpirationMessageSent))
  1309. this.ExpirationMessageSent = null;
  1310. else
  1311. this.ExpirationMessageSent = ManagementDateTimeConverter.ToDateTime(sExpirationMessageSent) as DateTime?;
  1312. this.ExpirationMessageSentIsGMT = WMIObject.Properties["ExpirationMessageSentIsGMT"].Value as Boolean?;
  1313. string sFirstEvalTime = WMIObject.Properties["FirstEvalTime"].Value as string;
  1314. if (string.IsNullOrEmpty(sFirstEvalTime))
  1315. this.FirstEvalTime = null;
  1316. else
  1317. this.FirstEvalTime = ManagementDateTimeConverter.ToDateTime(sFirstEvalTime) as DateTime?;
  1318. string sLastTriggerTime = WMIObject.Properties["LastTriggerTime"].Value as string;
  1319. if (string.IsNullOrEmpty(sLastTriggerTime))
  1320. this.LastTriggerTime = null;
  1321. else
  1322. this.LastTriggerTime = ManagementDateTimeConverter.ToDateTime(sLastTriggerTime) as DateTime?;
  1323. this.ScheduleID = WMIObject.Properties["ScheduleID"].Value as String;
  1324. this.TriggerState = WMIObject.Properties["TriggerState"].Value as String;
  1325. this.UserSID = WMIObject.Properties["UserSID"].Value as String;
  1326. }
  1327. #region Properties
  1328. internal string __CLASS { get; set; }
  1329. internal string __NAMESPACE { get; set; }
  1330. internal bool __INSTANCE { get; set; }
  1331. internal string __RELPATH { get; set; }
  1332. internal PSObject WMIObject { get; set; }
  1333. internal Runspace remoteRunspace;
  1334. internal TraceSource pSCode;
  1335. #pragma warning disable 1591 // Disable warnings about missing XML comments
  1336. public DateTime? ActivationMessageSent { get; set; }
  1337. public Boolean? ActivationMessageSentIsGMT { get; set; }
  1338. public DateTime? ExpirationMessageSent { get; set; }
  1339. public Boolean? ExpirationMessageSentIsGMT { get; set; }
  1340. public DateTime? FirstEvalTime { get; set; }
  1341. public DateTime? LastTriggerTime { get; set; }
  1342. public String ScheduleID { get; set; }
  1343. public String TriggerState { get; set; }
  1344. public String UserSID { get; set; }
  1345. #pragma warning restore 1591 // Enable warnings about missing XML comments
  1346. #endregion
  1347. }
  1348. /// <summary>
  1349. /// Source:ROOT\ccm\ClientSDK
  1350. /// </summary>
  1351. public class CCM_SoftwareUpdate : CCM_SoftwareBase
  1352. {
  1353. //Constructor
  1354. /// <summary>
  1355. /// Initializes a new instance of the <see cref="CCM_SoftwareUpdate"/> class.
  1356. /// </summary>
  1357. /// <param name="WMIObject">The WMI object.</param>
  1358. /// <param name="RemoteRunspace">The remote runspace.</param>
  1359. /// <param name="PSCode">The PowerShell code.</param>
  1360. public CCM_SoftwareUpdate(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  1361. : base(WMIObject)
  1362. {
  1363. remoteRunspace = RemoteRunspace;
  1364. pSCode = PSCode;
  1365. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  1366. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  1367. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  1368. this.__INSTANCE = true;
  1369. this.WMIObject = WMIObject;
  1370. this.ArticleID = WMIObject.Properties["ArticleID"].Value as String;
  1371. this.BulletinID = WMIObject.Properties["BulletinID"].Value as String;
  1372. this.ComplianceState = WMIObject.Properties["ComplianceState"].Value as UInt32?;
  1373. this.ExclusiveUpdate = WMIObject.Properties["ExclusiveUpdate"].Value as Boolean?;
  1374. this.MaxExecutionTime = WMIObject.Properties["MaxExecutionTime"].Value as UInt32?;
  1375. this.NotifyUser = WMIObject.Properties["NotifyUser"].Value as Boolean?;
  1376. this.OverrideServiceWindows = WMIObject.Properties["OverrideServiceWindows"].Value as Boolean?;
  1377. this.RebootOutsideServiceWindows = WMIObject.Properties["RebootOutsideServiceWindows"].Value as Boolean?;
  1378. string sRestartDeadline = WMIObject.Properties["RestartDeadline"].Value as string;
  1379. if (string.IsNullOrEmpty(sRestartDeadline))
  1380. this.RestartDeadline = null;
  1381. else
  1382. this.RestartDeadline = ManagementDateTimeConverter.ToDateTime(sRestartDeadline) as DateTime?;
  1383. string sStartTime = WMIObject.Properties["StartTime"].Value as string;
  1384. if (string.IsNullOrEmpty(sStartTime))
  1385. this.StartTime = null;
  1386. else
  1387. this.StartTime = ManagementDateTimeConverter.ToDateTime(sStartTime) as DateTime?;
  1388. this.UpdateID = WMIObject.Properties["UpdateID"].Value as String;
  1389. this.URL = WMIObject.Properties["URL"].Value as String;
  1390. this.UserUIExperience = WMIObject.Properties["UserUIExperience"].Value as Boolean?;
  1391. }
  1392. #region Properties
  1393. internal string __CLASS { get; set; }
  1394. internal string __NAMESPACE { get; set; }
  1395. internal bool __INSTANCE { get; set; }
  1396. internal string __RELPATH { get; set; }
  1397. internal PSObject WMIObject { get; set; }
  1398. internal Runspace remoteRunspace;
  1399. internal TraceSource pSCode;
  1400. #pragma warning disable 1591 // Disable warnings about missing XML comments
  1401. public String ArticleID { get; set; }
  1402. public String BulletinID { get; set; }
  1403. public UInt32? ComplianceState { get; set; }
  1404. public Boolean? ExclusiveUpdate { get; set; }
  1405. public UInt32? MaxExecutionTime { get; set; }
  1406. public Boolean? NotifyUser { get; set; }
  1407. public Boolean? OverrideServiceWindows { get; set; }
  1408. public Boolean? RebootOutsideServiceWindows { get; set; }
  1409. public DateTime? RestartDeadline { get; set; }
  1410. public DateTime? StartTime { get; set; }
  1411. public String UpdateID { get; set; }
  1412. public String URL { get; set; }
  1413. public Boolean? UserUIExperience { get; set; }
  1414. #pragma warning restore 1591 // Enable warnings about missing XML comments
  1415. /// <summary>
  1416. /// Transalated EvaluationState into text from MSDN (http://msdn.microsoft.com/en-us/library/jj874280.aspx)
  1417. /// </summary>
  1418. public string EvaluationStateText
  1419. {
  1420. get
  1421. {
  1422. switch (EvaluationState)
  1423. {
  1424. case 0: return "ciJobStateNone";
  1425. case 1: return "ciJobStateAvailable";
  1426. case 2: return "ciJobStateSubmitted";
  1427. case 3: return "ciJobStateDetecting";
  1428. case 4: return "ciJobStatePreDownload";
  1429. case 5: return "ciJobStateDownloading";
  1430. case 6: return "ciJobStateWaitInstall";
  1431. case 7: return "ciJobStateInstalling";
  1432. case 8: return "ciJobStatePendingSoftReboot";
  1433. case 9: return "ciJobStatePendingHardReboot";
  1434. case 10: return "ciJobStateWaitReboot";
  1435. case 11: return "ciJobStateVerifying";
  1436. case 12: return "ciJobStateInstallComplete";
  1437. case 13: return "ciJobStateError";
  1438. case 14: return "ciJobStateWaitServiceWindow";
  1439. case 15: return "ciJobStateWaitUserLogon";
  1440. case 16: return "ciJobStateWaitUserLogoff";
  1441. case 17: return "ciJobStateWaitJobUserLogon";
  1442. case 18: return "ciJobStateWaitUserReconnect";
  1443. case 19: return "ciJobStatePendingUserLogoff";
  1444. case 20: return "ciJobStatePendingUpdate";
  1445. case 21: return "ciJobStateWaitingRetry";
  1446. case 22: return "ciJobStateWaitPresModeOff";
  1447. case 23: return "ciJobStateWaitForOrchestration";
  1448. default:
  1449. return "Unknown state information.";
  1450. }
  1451. }
  1452. }
  1453. #endregion
  1454. }
  1455. /// <summary>
  1456. /// Application Priorities
  1457. /// </summary>
  1458. public static class AppPriority
  1459. {
  1460. /// <summary>
  1461. /// Gets the low AppPriority.
  1462. /// </summary>
  1463. /// <value>The low AppPriority.</value>
  1464. public static string Low
  1465. {
  1466. get { return "Low"; }
  1467. }
  1468. /// <summary>
  1469. /// Gets the normal AppPriority.
  1470. /// </summary>
  1471. /// <value>The normal AppPriority.</value>
  1472. public static string Normal
  1473. {
  1474. get { return "Normal"; }
  1475. }
  1476. /// <summary>
  1477. /// Gets the high AppPriority.
  1478. /// </summary>
  1479. /// <value>The high AppPriority.</value>
  1480. public static string High
  1481. {
  1482. get { return "High"; }
  1483. }
  1484. /// <summary>
  1485. /// Gets the foreground AppPriority.
  1486. /// </summary>
  1487. /// <value>The foreground AppPriority.</value>
  1488. public static string Foreground
  1489. {
  1490. get { return "Foreground"; }
  1491. }
  1492. }
  1493. /// <summary>
  1494. /// AppEnforcePreference
  1495. /// </summary>
  1496. public static class AppEnforcePreference
  1497. {
  1498. /// <summary>
  1499. /// Gets the immediate AppEnforcePreference.
  1500. /// </summary>
  1501. /// <value>The immediate AppEnforcePreference.</value>
  1502. public static UInt32 Immediate
  1503. {
  1504. get { return 0; }
  1505. }
  1506. /// <summary>
  1507. /// Gets the non business hours AppEnforcePreference.
  1508. /// </summary>
  1509. /// <value>The non business hours AppEnforcePreference.</value>
  1510. public static UInt32 NonBusinessHours
  1511. {
  1512. get { return 1; }
  1513. }
  1514. /// <summary>
  1515. /// Gets the admin schedule AppEnforcePreference.
  1516. /// </summary>
  1517. /// <value>The admin schedule AppEnforcePreference.</value>
  1518. public static UInt32 AdminSchedule
  1519. {
  1520. get { return 2; }
  1521. }
  1522. }
  1523. /// <summary>
  1524. /// Execution History
  1525. /// </summary>
  1526. public class REG_ExecutionHistory
  1527. {
  1528. internal baseInit oNewBase;
  1529. internal string __RegPATH { get; set; }
  1530. internal PSObject RegObject { get; set; }
  1531. internal Runspace remoteRunspace;
  1532. internal TraceSource pSCode;
  1533. #pragma warning disable 1591 // Disable warnings about missing XML comments
  1534. public String _ProgramID { get; set; }
  1535. public String _State { get; set; }
  1536. public DateTime? _RunStartTime { get; set; }
  1537. public int? SuccessOrFailureCode { get; set; }
  1538. public string SuccessOrFailureReason { get; set; }
  1539. public string UserID { get; set; }
  1540. public string PackageID { get; set; }
  1541. #pragma warning restore 1591 // Enable warnings about missing XML comments
  1542. /// <summary>
  1543. /// Initializes a new instance of the <see cref="REG_ExecutionHistory"/> class.
  1544. /// </summary>
  1545. /// <param name="RegObject">The reg object.</param>
  1546. /// <param name="RemoteRunspace">The remote runspace.</param>
  1547. /// <param name="PSCode">The PowerShell code.</param>
  1548. public REG_ExecutionHistory(PSObject RegObject, Runspace RemoteRunspace, TraceSource PSCode)
  1549. {
  1550. remoteRunspace = RemoteRunspace;
  1551. pSCode = PSCode;
  1552. oNewBase = new baseInit(remoteRunspace, pSCode);
  1553. this.__RegPATH = (RegObject.Properties["PSPath"].Value as string).Replace("Microsoft.PowerShell.Core\\Registry::", "");
  1554. this._ProgramID = RegObject.Properties["_ProgramID"].Value as string;
  1555. this._State = RegObject.Properties["_State"].Value as string;
  1556. this._RunStartTime = DateTime.Parse(RegObject.Properties["_RunStartTime"].Value as string);
  1557. string sSuccessOrFailureCode = RegObject.Properties["SuccessOrFailureCode"].Value as string;
  1558. if (!string.IsNullOrEmpty(sSuccessOrFailureCode))
  1559. {
  1560. this.SuccessOrFailureCode = int.Parse(RegObject.Properties["SuccessOrFailureCode"].Value as string);
  1561. }
  1562. string sSuccessOrFailureReason = RegObject.Properties["SuccessOrFailureReason"].Value as string;
  1563. if (!string.IsNullOrEmpty(sSuccessOrFailureReason))
  1564. {
  1565. this.SuccessOrFailureReason = RegObject.Properties["SuccessOrFailureReason"].Value as string;
  1566. }
  1567. this.UserID = __RegPATH.Substring(__RegPATH.IndexOf("Execution History", StringComparison.CurrentCultureIgnoreCase)).Split('\\')[1];
  1568. this.PackageID = __RegPATH.Substring(__RegPATH.IndexOf(UserID, StringComparison.CurrentCultureIgnoreCase)).Split('\\')[1];
  1569. }
  1570. /// <summary>
  1571. /// Delete the Execution-History Item
  1572. /// </summary>
  1573. public void Delete()
  1574. {
  1575. try
  1576. {
  1577. string sReg = __RegPATH.Replace(@"HKEY_LOCAL_MACHINE\", @"HKLM:\");
  1578. oNewBase.GetObjectsFromPS("Remove-Item \"" + sReg + "\" -Recurse", true, new TimeSpan(0, 0, 1));
  1579. }
  1580. catch { }
  1581. }
  1582. /// <summary>
  1583. /// Translate the SID to a readable Username
  1584. /// </summary>
  1585. public void GetUserFromSID()
  1586. {
  1587. if (this.UserID.StartsWith("S-1-5-21-"))
  1588. {
  1589. string sUser = oNewBase.GetStringFromPS(string.Format("((New-Object System.Security.Principal.SecurityIdentifier(\"{0}\")).Translate([System.Security.Principal.NTAccount])).value", this.UserID), false);
  1590. this.UserID = sUser;
  1591. }
  1592. }
  1593. }
  1594. /// <summary>
  1595. /// Class SoftwareStatus.
  1596. /// </summary>
  1597. public class SoftwareStatus
  1598. {
  1599. /// <summary>
  1600. /// Gets or sets the SoftwareStatus icon.
  1601. /// </summary>
  1602. /// <value>The SoftwareStatus icon.</value>
  1603. public string Icon { get; set; }
  1604. /// <summary>
  1605. /// Gets or sets the SoftwareStatus name.
  1606. /// </summary>
  1607. /// <value>The SoftwareStatus name.</value>
  1608. public string Name { get; set; }
  1609. /// <summary>
  1610. /// Gets or sets the SoftwareStatus type.
  1611. /// </summary>
  1612. /// <value>The SoftwareStatus type.</value>
  1613. public string Type { get; set; }
  1614. /// <summary>
  1615. /// Gets or sets the SoftwareStatus publisher.
  1616. /// </summary>
  1617. /// <value>The SoftwareStatus publisher.</value>
  1618. public string Publisher { get; set; }
  1619. /// <summary>
  1620. /// Gets or sets the SoftwareStatus availability.
  1621. /// </summary>
  1622. /// <value>The SoftwareStatus availability.</value>
  1623. public DateTime? AvailableAfter { get; set; }
  1624. /// <summary>
  1625. /// Gets or sets the SoftwareStatus status.
  1626. /// </summary>
  1627. /// <value>The SoftwareStatus status.</value>
  1628. public string Status { get; set; }
  1629. /// <summary>
  1630. /// Gets or sets the SoftwareStatus percent complete.
  1631. /// </summary>
  1632. /// <value>The SoftwareStatus percent complete.</value>
  1633. public UInt32 PercentComplete { get; set; }
  1634. /// <summary>
  1635. /// Gets or sets the SoftwareStatus error code.
  1636. /// </summary>
  1637. /// <value>The SoftwareStatus error code.</value>
  1638. public UInt32 ErrorCode { get; set; }
  1639. private CCM_SoftwareBase _rawObject { get; set; }
  1640. internal Runspace remoteRunspace;
  1641. internal TraceSource pSCode;
  1642. internal baseInit oNewBase;
  1643. /// <summary>
  1644. /// Initializes a new instance of the <see cref="SoftwareStatus"/> class.
  1645. /// </summary>
  1646. /// <param name="SWObject">The sw object.</param>
  1647. /// <param name="RemoteRunspace">The remote runspace.</param>
  1648. /// <param name="PSCode">The PowerShell code.</param>
  1649. public SoftwareStatus(PSObject SWObject, Runspace RemoteRunspace, TraceSource PSCode)
  1650. {
  1651. try
  1652. {
  1653. remoteRunspace = RemoteRunspace;
  1654. pSCode = PSCode;
  1655. oNewBase = new baseInit(remoteRunspace, pSCode);
  1656. int iType = 0;
  1657. try
  1658. {
  1659. if (SWObject.Properties["Type"].Value == null)
  1660. Type = "";
  1661. string sType = SWObject.Properties["Type"].Value.ToString();
  1662. if (string.IsNullOrEmpty(sType))
  1663. sType = "99";
  1664. iType = int.Parse(sType);
  1665. switch (iType)
  1666. {
  1667. case 0:
  1668. Type = "Program";
  1669. _rawObject = new CCM_Program(SWObject, RemoteRunspace, PSCode);
  1670. Icon = "";
  1671. AvailableAfter = ((CCM_Program)_rawObject).ActivationTime;
  1672. Status = ((CCM_Program)_rawObject).LastRunStatus;
  1673. Name = ((CCM_Program)_rawObject).PackageName + ";" + ((CCM_Program)_rawObject).ProgramID;
  1674. if (Status == "Succeeded")
  1675. Status = "Installed";
  1676. if (((CCM_Program)_rawObject).RepeatRunBehavior == "RerunAlways")
  1677. {
  1678. if (((CCM_Program)_rawObject).Deadline != null)
  1679. {
  1680. if (((CCM_Program)_rawObject).Deadline > DateTime.Now)
  1681. {
  1682. Status = Status + "; waiting to install again at " + ((CCM_Program)_rawObject).Deadline.ToString();
  1683. }
  1684. }
  1685. }
  1686. break;
  1687. case 1:
  1688. Type = "Application";
  1689. _rawObject = new CCM_Application(SWObject, RemoteRunspace, PSCode);
  1690. Icon = SWObject.Properties["Icon"].Value as string;
  1691. AvailableAfter = ((CCM_Application)_rawObject).StartTime;
  1692. Name = SWObject.Properties["Name"].Value as string;
  1693. int EvaluationState = int.Parse(SWObject.Properties["EvaluationState"].Value.ToString());
  1694. switch (EvaluationState)
  1695. {
  1696. case 0:
  1697. Status = "Not Installed";
  1698. break;
  1699. case 1:
  1700. Status = "Installed";
  1701. break;
  1702. case 2:
  1703. Status = "Not required";
  1704. break;
  1705. case 3:
  1706. Status = "Ready";
  1707. break;
  1708. case 4:
  1709. Status = "Failed";
  1710. break;
  1711. case 5:
  1712. Status = "Downloading content";
  1713. break;
  1714. case 6:
  1715. Status = "Downloading content";
  1716. break;
  1717. case 7:
  1718. Status = "Waiting";
  1719. break;
  1720. case 8:
  1721. Status = "Waiting";
  1722. break;
  1723. case 9:
  1724. Status = "Waiting";
  1725. break;
  1726. case 10:
  1727. Status = "Waiting";
  1728. break;
  1729. case 11:
  1730. Status = "Waiting";
  1731. break;
  1732. case 12:
  1733. Status = "Installing";
  1734. break;
  1735. case 13:
  1736. Status = "Reboot pending";
  1737. break;
  1738. case 14:
  1739. Status = "Reboot pending";
  1740. break;
  1741. case 15:
  1742. Status = "Waiting";
  1743. break;
  1744. case 16:
  1745. Status = "Failed";
  1746. break;
  1747. case 17:
  1748. Status = "Waiting";
  1749. break;
  1750. case 18:
  1751. Status = "Waiting";
  1752. break;
  1753. case 19:
  1754. Status = "Waiting";
  1755. break;
  1756. case 20:
  1757. Status = "Waiting";
  1758. break;
  1759. case 21:
  1760. Status = "Waiting";
  1761. break;
  1762. case 22:
  1763. Status = "Downloading content";
  1764. break;
  1765. case 23:
  1766. Status = "Downloading content";
  1767. break;
  1768. case 24:
  1769. Status = "Failed";
  1770. break;
  1771. case 25:
  1772. Status = "Failed";
  1773. break;
  1774. case 26:
  1775. Status = "Waiting"; ;
  1776. break;
  1777. case 27:
  1778. Status = "Waiting";
  1779. break;
  1780. case 28:
  1781. Status = "Waiting";
  1782. break;
  1783. default:
  1784. Status = "Unknown state information.";
  1785. break;
  1786. }
  1787. break;
  1788. case 2:
  1789. Type = "Software Update";
  1790. _rawObject = new CCM_SoftwareUpdate(SWObject, RemoteRunspace, PSCode);
  1791. Icon = "Updates";
  1792. AvailableAfter = ((CCM_SoftwareUpdate)_rawObject).StartTime;
  1793. Name = SWObject.Properties["Name"].Value as string;
  1794. int EvaluationState2 = int.Parse(SWObject.Properties["EvaluationState"].Value.ToString());
  1795. switch (EvaluationState2)
  1796. {
  1797. case 0:
  1798. Status = "No State";
  1799. try
  1800. {
  1801. if (SWObject.Properties["ComplianceState"].Value.ToString() == "0")
  1802. {
  1803. Status = "Missing";
  1804. }
  1805. }
  1806. catch { }
  1807. break;
  1808. case 1:
  1809. Status = "Missing";
  1810. break;
  1811. case 2:
  1812. Status = "Ready";
  1813. break;
  1814. case 3:
  1815. Status = "Detecting";
  1816. break;
  1817. case 4:
  1818. Status = "Downloading content";
  1819. break;
  1820. case 5:
  1821. Status = "Downloading content";
  1822. break;
  1823. case 6:
  1824. Status = "Waiting";
  1825. break;
  1826. case 7:
  1827. Status = "Installing";
  1828. break;
  1829. case 8:
  1830. Status = "Reboot pending";
  1831. break;
  1832. case 9:
  1833. Status = "Reboot pending";
  1834. break;
  1835. case 10:
  1836. Status = "Reboot pending";
  1837. break;
  1838. case 11:
  1839. Status = "Verifying";
  1840. break;
  1841. case 12:
  1842. Status = "Installed";
  1843. break;
  1844. case 13:
  1845. Status = "Failed";
  1846. break;
  1847. case 14:
  1848. Status = "Waiting";
  1849. break;
  1850. case 15:
  1851. Status = "Waiting";
  1852. break;
  1853. case 16:
  1854. Status = "Waiting";
  1855. break;
  1856. case 17:
  1857. Status = "Waiting";
  1858. break;
  1859. case 18:
  1860. Status = "Waiting";
  1861. break;
  1862. case 19:
  1863. Status = "Waiting";
  1864. break;
  1865. case 20:
  1866. Status = "Pending";
  1867. break;
  1868. case 21:
  1869. Status = "Waiting";
  1870. break;
  1871. case 22:
  1872. Status = "Waiting";
  1873. break;
  1874. case 23:
  1875. Status = "Waiting";
  1876. break;
  1877. default:
  1878. Status = "Unknown state information.";
  1879. break;
  1880. }
  1881. break;
  1882. case 3:
  1883. Type = "Program";
  1884. _rawObject = new CCM_Program(SWObject, RemoteRunspace, PSCode);
  1885. Icon = "";
  1886. if (((CCM_Program)_rawObject).TaskSequence == true)
  1887. {
  1888. Type = "Operating System";
  1889. }
  1890. Status = ((CCM_Program)_rawObject).LastRunStatus;
  1891. AvailableAfter = ((CCM_Program)_rawObject).ActivationTime;
  1892. Name = SWObject.Properties["Name"].Value as string;
  1893. if (Status == "Succeeded")
  1894. Status = "Installed";
  1895. if (((CCM_Program)_rawObject).RepeatRunBehavior == "RerunAlways")
  1896. {
  1897. if (((CCM_Program)_rawObject).Deadline != null)
  1898. {
  1899. if (((CCM_Program)_rawObject).Deadline > DateTime.Now)
  1900. {
  1901. Status = Status + "; waiting to install again at " + ((CCM_Program)_rawObject).Deadline.ToString();
  1902. }
  1903. }
  1904. }
  1905. break;
  1906. default:
  1907. Type = "Unknown";
  1908. Icon = "";
  1909. Status = "";
  1910. break;
  1911. }
  1912. }
  1913. catch { }
  1914. Publisher = SWObject.Properties["Publisher"].Value as string;
  1915. try
  1916. {
  1917. ErrorCode = UInt32.Parse(SWObject.Properties["ErrorCode"].Value.ToString());
  1918. }
  1919. catch { }
  1920. try
  1921. {
  1922. PercentComplete = UInt32.Parse(SWObject.Properties["PercentComplete"].Value.ToString());
  1923. }
  1924. catch { }
  1925. }
  1926. catch { }
  1927. }
  1928. }
  1929. /// <summary>
  1930. /// Source:ROOT\ccm\cimodels
  1931. /// </summary>
  1932. public class Synclet
  1933. {
  1934. //Constructor
  1935. /// <summary>
  1936. /// Initializes a new instance of the <see cref="Synclet"/> class.
  1937. /// </summary>
  1938. /// <param name="WMIObject">The WMI object.</param>
  1939. /// <param name="RemoteRunspace">The remote runspace.</param>
  1940. /// <param name="PSCode">The PowerShell code.</param>
  1941. public Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  1942. {
  1943. remoteRunspace = RemoteRunspace;
  1944. pSCode = PSCode;
  1945. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  1946. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  1947. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  1948. this.__INSTANCE = true;
  1949. this.WMIObject = WMIObject;
  1950. this.ClassName = WMIObject.Properties["ClassName"].Value as String;
  1951. }
  1952. #region Properties
  1953. internal string __CLASS { get; set; }
  1954. internal string __NAMESPACE { get; set; }
  1955. internal bool __INSTANCE { get; set; }
  1956. internal string __RELPATH { get; set; }
  1957. internal PSObject WMIObject { get; set; }
  1958. internal Runspace remoteRunspace;
  1959. internal TraceSource pSCode;
  1960. /// <summary>
  1961. /// Gets or sets the name of the class.
  1962. /// </summary>
  1963. /// <value>The name of the class.</value>
  1964. public String ClassName { get; set; }
  1965. #endregion
  1966. }
  1967. /// <summary>
  1968. /// Source:ROOT\ccm\cimodels
  1969. /// </summary>
  1970. public class CCM_HandlerSynclet : Synclet
  1971. {
  1972. //Constructor
  1973. /// <summary>
  1974. /// Initializes a new instance of the <see cref="Synclet" /> class.
  1975. /// </summary>
  1976. /// <param name="WMIObject">The WMI object.</param>
  1977. /// <param name="RemoteRunspace">The remote runspace.</param>
  1978. /// <param name="PSCode">The PowerShell code.</param>
  1979. public CCM_HandlerSynclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  1980. : base(WMIObject, RemoteRunspace, PSCode)
  1981. {
  1982. remoteRunspace = RemoteRunspace;
  1983. pSCode = PSCode;
  1984. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  1985. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  1986. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  1987. this.__INSTANCE = true;
  1988. this.WMIObject = WMIObject;
  1989. this.ActionType = WMIObject.Properties["ActionType"].Value as String;
  1990. this.AppDeliveryTypeId = WMIObject.Properties["AppDeliveryTypeId"].Value as String;
  1991. this.ExecutionContext = WMIObject.Properties["ExecutionContext"].Value as String;
  1992. this.RequiresLogOn = WMIObject.Properties["RequiresLogOn"].Value as String;
  1993. this.Reserved = WMIObject.Properties["Reserved"].Value as String;
  1994. this.Revision = WMIObject.Properties["Revision"].Value as UInt32?;
  1995. }
  1996. #region Properties
  1997. internal string __CLASS { get; set; }
  1998. internal string __NAMESPACE { get; set; }
  1999. internal bool __INSTANCE { get; set; }
  2000. internal string __RELPATH { get; set; }
  2001. internal PSObject WMIObject { get; set; }
  2002. internal Runspace remoteRunspace;
  2003. internal TraceSource pSCode;
  2004. #pragma warning disable 1591 // Disable warnings about missing XML comments
  2005. public String ActionType { get; set; }
  2006. public String AppDeliveryTypeId { get; set; }
  2007. public String ExecutionContext { get; set; }
  2008. public String RequiresLogOn { get; set; }
  2009. public String Reserved { get; set; }
  2010. public UInt32? Revision { get; set; }
  2011. #pragma warning restore 1591 // Enable warnings about missing XML comments
  2012. #endregion
  2013. }
  2014. /// <summary>
  2015. /// Source:ROOT\ccm\cimodels
  2016. /// </summary>
  2017. public class CCM_LocalInstallationSynclet : CCM_HandlerSynclet
  2018. {
  2019. //Constructor
  2020. /// <summary>
  2021. /// Initializes a new instance of the <see cref="Synclet" /> class.
  2022. /// </summary>
  2023. /// <param name="WMIObject">The WMI object.</param>
  2024. /// <param name="RemoteRunspace">The remote runspace.</param>
  2025. /// <param name="PSCode">The PowerShell code.</param>
  2026. public CCM_LocalInstallationSynclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  2027. : base(WMIObject, RemoteRunspace, PSCode)
  2028. {
  2029. remoteRunspace = RemoteRunspace;
  2030. pSCode = PSCode;
  2031. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  2032. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  2033. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  2034. this.__INSTANCE = true;
  2035. this.WMIObject = WMIObject;
  2036. this.AllowedTarget = WMIObject.Properties["AllowedTarget"].Value as String;
  2037. this.ExecuteTime = WMIObject.Properties["ExecuteTime"].Value as UInt32?;
  2038. this.FastRetryExitCodes = WMIObject.Properties["FastRetryExitCodes"].Value as UInt32?[];
  2039. this.HardRebootExitCodes = WMIObject.Properties["HardRebootExitCodes"].Value as UInt32?[];
  2040. this.InstallCommandLine = WMIObject.Properties["InstallCommandLine"].Value as String;
  2041. this.MaxExecuteTime = WMIObject.Properties["MaxExecuteTime"].Value as UInt32?;
  2042. this.PostInstallbehavior = WMIObject.Properties["PostInstallbehavior"].Value as String;
  2043. this.RebootExitCodes = WMIObject.Properties["RebootExitCodes"].Value as UInt32?[];
  2044. this.RequiresElevatedRights = WMIObject.Properties["RequiresElevatedRights"].Value as Boolean?;
  2045. this.RequiresReboot = WMIObject.Properties["RequiresReboot"].Value as Boolean?;
  2046. this.RequiresUserInteraction = WMIObject.Properties["RequiresUserInteraction"].Value as Boolean?;
  2047. this.RunAs32Bit = WMIObject.Properties["RunAs32Bit"].Value as Boolean?;
  2048. this.SuccessExitCodes = WMIObject.Properties["SuccessExitCodes"].Value as UInt32?[];
  2049. this.UserInteractionMode = WMIObject.Properties["UserInteractionMode"].Value as String;
  2050. this.WorkingDirectory = WMIObject.Properties["WorkingDirectory"].Value as String;
  2051. }
  2052. #region Properties
  2053. internal string __CLASS { get; set; }
  2054. internal string __NAMESPACE { get; set; }
  2055. internal bool __INSTANCE { get; set; }
  2056. internal string __RELPATH { get; set; }
  2057. internal PSObject WMIObject { get; set; }
  2058. internal Runspace remoteRunspace;
  2059. internal TraceSource pSCode;
  2060. #pragma warning disable 1591 // Disable warnings about missing XML comments
  2061. public String AllowedTarget { get; set; }
  2062. public UInt32? ExecuteTime { get; set; }
  2063. public UInt32?[] FastRetryExitCodes { get; set; }
  2064. public UInt32?[] HardRebootExitCodes { get; set; }
  2065. public String InstallCommandLine { get; set; }
  2066. public UInt32? MaxExecuteTime { get; set; }
  2067. public String PostInstallbehavior { get; set; }
  2068. public UInt32?[] RebootExitCodes { get; set; }
  2069. public Boolean? RequiresElevatedRights { get; set; }
  2070. public Boolean? RequiresReboot { get; set; }
  2071. public Boolean? RequiresUserInteraction { get; set; }
  2072. public Boolean? RunAs32Bit { get; set; }
  2073. public UInt32?[] SuccessExitCodes { get; set; }
  2074. public String UserInteractionMode { get; set; }
  2075. public String WorkingDirectory { get; set; }
  2076. #pragma warning restore 1591 // Enable warnings about missing XML comments
  2077. #endregion
  2078. }
  2079. /// <summary>
  2080. /// Source:ROOT\ccm\cimodels
  2081. /// </summary>
  2082. public class CCM_AppEnforceStatus
  2083. {
  2084. //Constructor
  2085. /// <summary>
  2086. /// Initializes a new instance of the <see cref="CCM_AppEnforceStatus"/> class.
  2087. /// </summary>
  2088. /// <param name="WMIObject">The WMI object.</param>
  2089. /// <param name="RemoteRunspace">The remote runspace.</param>
  2090. /// <param name="PSCode">The PowerShell code.</param>
  2091. public CCM_AppEnforceStatus(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  2092. {
  2093. remoteRunspace = RemoteRunspace;
  2094. pSCode = PSCode;
  2095. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  2096. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  2097. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  2098. this.__INSTANCE = true;
  2099. this.WMIObject = WMIObject;
  2100. this.AppDeliveryTypeId = WMIObject.Properties["AppDeliveryTypeId"].Value as String;
  2101. this.ExecutionStatus = WMIObject.Properties["ExecutionStatus"].Value as String;
  2102. this.ExitCode = WMIObject.Properties["ExitCode"].Value as UInt32?;
  2103. this.ReconnectData = WMIObject.Properties["ReconnectData"].Value as CCM_AppReconnectData_Base;
  2104. this.Revision = WMIObject.Properties["Revision"].Value as UInt32?;
  2105. }
  2106. #region Properties
  2107. internal string __CLASS { get; set; }
  2108. internal string __NAMESPACE { get; set; }
  2109. internal bool __INSTANCE { get; set; }
  2110. internal string __RELPATH { get; set; }
  2111. internal PSObject WMIObject { get; set; }
  2112. internal Runspace remoteRunspace;
  2113. internal TraceSource pSCode;
  2114. #pragma warning disable 1591 // Disable warnings about missing XML comments
  2115. public String AppDeliveryTypeId { get; set; }
  2116. public String ExecutionStatus { get; set; }
  2117. public UInt32? ExitCode { get; set; }
  2118. public CCM_AppReconnectData_Base ReconnectData { get; set; }
  2119. public UInt32? Revision { get; set; }
  2120. #pragma warning restore 1591 // Enable warnings about missing XML comments
  2121. #endregion
  2122. }
  2123. /// <summary>
  2124. /// Source:ROOT\ccm\cimodels
  2125. /// </summary>
  2126. public class CCM_AppReconnectData_Base
  2127. {
  2128. //Constructor
  2129. /// <summary>
  2130. /// Initializes a new instance of the <see cref="CCM_AppReconnectData_Base"/> class.
  2131. /// </summary>
  2132. /// <param name="WMIObject">The WMI object.</param>
  2133. /// <param name="RemoteRunspace">The remote runspace.</param>
  2134. /// <param name="PSCode">The PowerShell code.</param>
  2135. public CCM_AppReconnectData_Base(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  2136. {
  2137. remoteRunspace = RemoteRunspace;
  2138. pSCode = PSCode;
  2139. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  2140. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  2141. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  2142. this.__INSTANCE = true;
  2143. this.WMIObject = WMIObject;
  2144. this.AppDeliveryTypeId = WMIObject.Properties["AppDeliveryTypeId"].Value as String;
  2145. this.Revision = WMIObject.Properties["Revision"].Value as UInt32?;
  2146. this.UserSid = WMIObject.Properties["UserSid"].Value as String;
  2147. }
  2148. #region Properties
  2149. internal string __CLASS { get; set; }
  2150. internal string __NAMESPACE { get; set; }
  2151. internal bool __INSTANCE { get; set; }
  2152. internal string __RELPATH { get; set; }
  2153. internal PSObject WMIObject { get; set; }
  2154. internal Runspace remoteRunspace;
  2155. internal TraceSource pSCode;
  2156. /// <summary>
  2157. /// Gets or sets the application delivery type identifier.
  2158. /// </summary>
  2159. /// <value>The application delivery type identifier.</value>
  2160. public String AppDeliveryTypeId { get; set; }
  2161. /// <summary>
  2162. /// Gets or sets the revision.
  2163. /// </summary>
  2164. /// <value>The revision.</value>
  2165. public UInt32? Revision { get; set; }
  2166. /// <summary>
  2167. /// Gets or sets the user sid.
  2168. /// </summary>
  2169. /// <value>The user sid.</value>
  2170. public String UserSid { get; set; }
  2171. #endregion
  2172. }
  2173. /// <summary>
  2174. /// Source:ROOT\ccm\cimodels
  2175. /// </summary>
  2176. public class CCM_AppDeliveryType
  2177. {
  2178. //Constructor
  2179. /// <summary>
  2180. /// Initializes a new instance of the <see cref="CCM_AppDeliveryType"/> class.
  2181. /// </summary>
  2182. /// <param name="WMIObject">The WMI object.</param>
  2183. /// <param name="RemoteRunspace">The remote runspace.</param>
  2184. /// <param name="PSCode">The PowerShell code.</param>
  2185. public CCM_AppDeliveryType(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  2186. {
  2187. remoteRunspace = RemoteRunspace;
  2188. pSCode = PSCode;
  2189. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  2190. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  2191. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  2192. this.__INSTANCE = true;
  2193. this.WMIObject = WMIObject;
  2194. this.AppDeliveryTypeId = WMIObject.Properties["AppDeliveryTypeId"].Value as String;
  2195. this.AppId = WMIObject.Properties["AppId"].Value as String;
  2196. this.HostType = WMIObject.Properties["HostType"].Value as String;
  2197. this.Revision = WMIObject.Properties["Revision"].Value as UInt32?;
  2198. }
  2199. #region Properties
  2200. internal string __CLASS { get; set; }
  2201. internal string __NAMESPACE { get; set; }
  2202. internal bool __INSTANCE { get; set; }
  2203. internal string __RELPATH { get; set; }
  2204. internal PSObject WMIObject { get; set; }
  2205. internal Runspace remoteRunspace;
  2206. internal TraceSource pSCode;
  2207. /// <summary>
  2208. /// Gets or sets the application delivery type identifier.
  2209. /// </summary>
  2210. /// <value>The application delivery type identifier.</value>
  2211. public String AppDeliveryTypeId { get; set; }
  2212. /// <summary>
  2213. /// Gets or sets the application identifier.
  2214. /// </summary>
  2215. /// <value>The application identifier.</value>
  2216. public String AppId { get; set; }
  2217. /// <summary>
  2218. /// Gets or sets the type of the host.
  2219. /// </summary>
  2220. /// <value>The type of the host.</value>
  2221. public String HostType { get; set; }
  2222. /// <summary>
  2223. /// Gets or sets the revision.
  2224. /// </summary>
  2225. /// <value>The revision.</value>
  2226. public UInt32? Revision { get; set; }
  2227. #endregion
  2228. #region Methods
  2229. /*
  2230. public UInt32 GetContentInfo(String ActionType, String AppDeliveryTypeId, UInt32 Revision, out String ContentId, out String ContentVersion, out String ExcludedFileList, out Boolean ForceFileExclusion)
  2231. {
  2232. return 0;
  2233. }
  2234. public UInt32 EnforceApp(String ActionType, String AppDeliveryTypeId, String ContentPath, UInt32 Revision, UInt32 SessionId, String UserSid)
  2235. {
  2236. return 0;
  2237. }
  2238. public UInt32 GetMaxExecuteTime(String ActionType, String AppDeliveryTypeId, UInt32 Revision, out UInt32 MaxExecuteTime)
  2239. {
  2240. return 0;
  2241. }
  2242. public UInt32 GetPendingComponentList(String AppDeliveryTypeId, UInt32 Revision, out String PendingComponentList)
  2243. {
  2244. return 0;
  2245. }
  2246. * */
  2247. #endregion
  2248. }
  2249. /// <summary>
  2250. /// Source:ROOT\ccm\cimodels
  2251. /// </summary>
  2252. public class CCM_AppDeliveryTypeSynclet : Synclet
  2253. {
  2254. //Constructor
  2255. /// <summary>
  2256. /// Initializes a new instance of the <see cref="Synclet" /> class.
  2257. /// </summary>
  2258. /// <param name="WMIObject">The WMI object.</param>
  2259. /// <param name="RemoteRunspace">The remote runspace.</param>
  2260. /// <param name="PSCode">The PowerShell code.</param>
  2261. public CCM_AppDeliveryTypeSynclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode) : base(WMIObject, RemoteRunspace, PSCode)
  2262. {
  2263. remoteRunspace = RemoteRunspace;
  2264. pSCode = PSCode;
  2265. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  2266. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  2267. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  2268. this.__INSTANCE = true;
  2269. this.WMIObject = WMIObject;
  2270. this.AppDeliveryTypeId = WMIObject.Properties["AppDeliveryTypeId"].Value as String;
  2271. this.AppDeliveryTypeName = WMIObject.Properties["AppDeliveryTypeName"].Value as String;
  2272. this.AppId = WMIObject.Properties["AppId"].Value as String;
  2273. this.DiscAction = WMIObject.Properties["DiscAction"].Value as CCM_AppAction;
  2274. this.HostType = WMIObject.Properties["HostType"].Value as String;
  2275. this.InstallAction = WMIObject.Properties["InstallAction"].Value as CCM_AppAction;
  2276. this.Revision = WMIObject.Properties["Revision"].Value as UInt32?;
  2277. this.UninstallAction = WMIObject.Properties["UninstallAction"].Value as CCM_AppAction;
  2278. }
  2279. #region Properties
  2280. internal string __CLASS { get; set; }
  2281. internal string __NAMESPACE { get; set; }
  2282. internal bool __INSTANCE { get; set; }
  2283. internal string __RELPATH { get; set; }
  2284. internal PSObject WMIObject { get; set; }
  2285. internal Runspace remoteRunspace;
  2286. internal TraceSource pSCode;
  2287. /// <summary>
  2288. /// Gets or sets the application delivery type identifier.
  2289. /// </summary>
  2290. /// <value>The application delivery type identifier.</value>
  2291. public String AppDeliveryTypeId { get; set; }
  2292. /// <summary>
  2293. /// Gets or sets the name of the application delivery type.
  2294. /// </summary>
  2295. /// <value>The name of the application delivery type.</value>
  2296. public String AppDeliveryTypeName { get; set; }
  2297. /// <summary>
  2298. /// Gets or sets the application identifier.
  2299. /// </summary>
  2300. /// <value>The application identifier.</value>
  2301. public String AppId { get; set; }
  2302. /// <summary>
  2303. /// Gets or sets the disc action.
  2304. /// </summary>
  2305. /// <value>The disc action.</value>
  2306. public CCM_AppAction DiscAction { get; set; }
  2307. /// <summary>
  2308. /// Gets or sets the type of the host.
  2309. /// </summary>
  2310. /// <value>The type of the host.</value>
  2311. public String HostType { get; set; }
  2312. /// <summary>
  2313. /// Gets or sets the install action.
  2314. /// </summary>
  2315. /// <value>The install action.</value>
  2316. public CCM_AppAction InstallAction { get; set; }
  2317. /// <summary>
  2318. /// Gets or sets the revision.
  2319. /// </summary>
  2320. /// <value>The revision.</value>
  2321. public UInt32? Revision { get; set; }
  2322. /// <summary>
  2323. /// Gets or sets the uninstall action.
  2324. /// </summary>
  2325. /// <value>The uninstall action.</value>
  2326. public CCM_AppAction UninstallAction { get; set; }
  2327. #endregion
  2328. }
  2329. /// <summary>
  2330. /// Source:ROOT\ccm\cimodels
  2331. /// </summary>
  2332. public class CCM_AppAction
  2333. {
  2334. //Constructor
  2335. /// <summary>
  2336. /// Initializes a new instance of the <see cref="CCM_AppAction"/> class.
  2337. /// </summary>
  2338. /// <param name="WMIObject">The WMI object.</param>
  2339. /// <param name="RemoteRunspace">The remote runspace.</param>
  2340. /// <param name="PSCode">The PowerShell code.</param>
  2341. public CCM_AppAction(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  2342. {
  2343. remoteRunspace = RemoteRunspace;
  2344. pSCode = PSCode;
  2345. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  2346. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  2347. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  2348. this.__INSTANCE = true;
  2349. this.WMIObject = WMIObject;
  2350. this.ActionType = WMIObject.Properties["ActionType"].Value as String;
  2351. this.Content = WMIObject.Properties["Content"].Value as ContentInfo;
  2352. this.HandlerName = WMIObject.Properties["HandlerName"].Value as String;
  2353. }
  2354. #region Properties
  2355. internal string __CLASS { get; set; }
  2356. internal string __NAMESPACE { get; set; }
  2357. internal bool __INSTANCE { get; set; }
  2358. internal string __RELPATH { get; set; }
  2359. internal PSObject WMIObject { get; set; }
  2360. internal Runspace remoteRunspace;
  2361. internal TraceSource pSCode;
  2362. /// <summary>
  2363. /// Gets or sets the type of the action.
  2364. /// </summary>
  2365. /// <value>The type of the action.</value>
  2366. public String ActionType { get; set; }
  2367. /// <summary>
  2368. /// Gets or sets the content.
  2369. /// </summary>
  2370. /// <value>The content.</value>
  2371. public ContentInfo Content { get; set; }
  2372. /// <summary>
  2373. /// Gets or sets the name of the handler.
  2374. /// </summary>
  2375. /// <value>The name of the handler.</value>
  2376. public String HandlerName { get; set; }
  2377. #endregion
  2378. }
  2379. /// <summary>
  2380. /// Source:ROOT\ccm\cimodels
  2381. /// </summary>
  2382. public class ContentInfo
  2383. {
  2384. //Constructor
  2385. /// <summary>
  2386. /// Initializes a new instance of the <see cref="ContentInfo"/> class.
  2387. /// </summary>
  2388. /// <param name="WMIObject">The WMI object.</param>
  2389. /// <param name="RemoteRunspace">The remote runspace.</param>
  2390. /// <param name="PSCode">The PowerShell code.</param>
  2391. public ContentInfo(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  2392. {
  2393. remoteRunspace = RemoteRunspace;
  2394. pSCode = PSCode;
  2395. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  2396. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  2397. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  2398. this.__INSTANCE = true;
  2399. this.WMIObject = WMIObject;
  2400. this.ContentId = WMIObject.Properties["ContentId"].Value as String;
  2401. this.ContentVersion = WMIObject.Properties["ContentVersion"].Value as String;
  2402. }
  2403. #region Properties
  2404. internal string __CLASS { get; set; }
  2405. internal string __NAMESPACE { get; set; }
  2406. internal bool __INSTANCE { get; set; }
  2407. internal string __RELPATH { get; set; }
  2408. internal PSObject WMIObject { get; set; }
  2409. internal Runspace remoteRunspace;
  2410. internal TraceSource pSCode;
  2411. /// <summary>
  2412. /// Gets or sets the content identifier.
  2413. /// </summary>
  2414. /// <value>The content identifier.</value>
  2415. public String ContentId { get; set; }
  2416. /// <summary>
  2417. /// Gets or sets the content version.
  2418. /// </summary>
  2419. /// <value>The content version.</value>
  2420. public String ContentVersion { get; set; }
  2421. #endregion
  2422. }
  2423. /*
  2424. /// <summary>
  2425. /// Source:ROOT\ccm\cimodels
  2426. /// </summary>
  2427. public class AppV_Detect_Synclet : CCM_HandlerSynclet
  2428. {
  2429. //Constructor
  2430. public AppV_Detect_Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  2431. {
  2432. remoteRunspace = RemoteRunspace;
  2433. pSCode = PSCode;
  2434. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  2435. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  2436. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  2437. this.__INSTANCE = true;
  2438. this.WMIObject = WMIObject;
  2439. this.PackageGUID = WMIObject.Properties["PackageGUID"].Value as String;
  2440. this.PublishComponents = WMIObject.Properties["PublishComponents"].Value as String[];
  2441. this.VersionGUID = WMIObject.Properties["VersionGUID"].Value as String;
  2442. }
  2443. #region Properties
  2444. internal string __CLASS { get; set; }
  2445. internal string __NAMESPACE { get; set; }
  2446. internal bool __INSTANCE { get; set; }
  2447. internal string __RELPATH { get; set; }
  2448. internal PSObject WMIObject { get; set; }
  2449. internal Runspace remoteRunspace;
  2450. internal TraceSource pSCode;
  2451. public String PackageGUID { get; set; }
  2452. public String[] PublishComponents { get; set; }
  2453. public String VersionGUID { get; set; }
  2454. #endregion
  2455. }
  2456. /// <summary>
  2457. /// Source:ROOT\ccm\cimodels
  2458. /// </summary>
  2459. public class AppV_Install_Synclet : CCM_HandlerSynclet
  2460. {
  2461. //Constructor
  2462. public AppV_Install_Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  2463. {
  2464. remoteRunspace = RemoteRunspace;
  2465. pSCode = PSCode;
  2466. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  2467. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  2468. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  2469. this.__INSTANCE = true;
  2470. this.WMIObject = WMIObject;
  2471. this.ContentFile = WMIObject.Properties["ContentFile"].Value as String;
  2472. this.ExecuteTime = WMIObject.Properties["ExecuteTime"].Value as UInt32?;
  2473. this.ExtendedData = WMIObject.Properties["ExtendedData"].Value as String;
  2474. this.ManifestFile = WMIObject.Properties["ManifestFile"].Value as String;
  2475. this.PackageGUID = WMIObject.Properties["PackageGUID"].Value as String;
  2476. this.PublishComponents = WMIObject.Properties["PublishComponents"].Value as String[];
  2477. this.RequireLoad = WMIObject.Properties["RequireLoad"].Value as Boolean?;
  2478. this.VersionGUID = WMIObject.Properties["VersionGUID"].Value as String;
  2479. }
  2480. #region Properties
  2481. internal string __CLASS { get; set; }
  2482. internal string __NAMESPACE { get; set; }
  2483. internal bool __INSTANCE { get; set; }
  2484. internal string __RELPATH { get; set; }
  2485. internal PSObject WMIObject { get; set; }
  2486. internal Runspace remoteRunspace;
  2487. internal TraceSource pSCode;
  2488. public String ContentFile { get; set; }
  2489. public UInt32? ExecuteTime { get; set; }
  2490. public String ExtendedData { get; set; }
  2491. public String ManifestFile { get; set; }
  2492. public String PackageGUID { get; set; }
  2493. public String[] PublishComponents { get; set; }
  2494. public Boolean? RequireLoad { get; set; }
  2495. public String VersionGUID { get; set; }
  2496. #endregion
  2497. }
  2498. /// <summary>
  2499. /// Source:ROOT\ccm\cimodels
  2500. /// </summary>
  2501. public class AppV_Uninstall_Synclet : CCM_HandlerSynclet
  2502. {
  2503. //Constructor
  2504. public AppV_Uninstall_Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  2505. {
  2506. remoteRunspace = RemoteRunspace;
  2507. pSCode = PSCode;
  2508. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  2509. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  2510. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  2511. this.__INSTANCE = true;
  2512. this.WMIObject = WMIObject;
  2513. this.ContentFile = WMIObject.Properties["ContentFile"].Value as String;
  2514. this.ExtendedData = WMIObject.Properties["ExtendedData"].Value as String;
  2515. this.ManifestFile = WMIObject.Properties["ManifestFile"].Value as String;
  2516. this.PackageGUID = WMIObject.Properties["PackageGUID"].Value as String;
  2517. this.PublishComponents = WMIObject.Properties["PublishComponents"].Value as String[];
  2518. this.RequireLoad = WMIObject.Properties["RequireLoad"].Value as Boolean?;
  2519. this.VersionGUID = WMIObject.Properties["VersionGUID"].Value as String;
  2520. }
  2521. #region Properties
  2522. internal string __CLASS { get; set; }
  2523. internal string __NAMESPACE { get; set; }
  2524. internal bool __INSTANCE { get; set; }
  2525. internal string __RELPATH { get; set; }
  2526. internal PSObject WMIObject { get; set; }
  2527. internal Runspace remoteRunspace;
  2528. internal TraceSource pSCode;
  2529. public String ContentFile { get; set; }
  2530. public String ExtendedData { get; set; }
  2531. public String ManifestFile { get; set; }
  2532. public String PackageGUID { get; set; }
  2533. public String[] PublishComponents { get; set; }
  2534. public Boolean? RequireLoad { get; set; }
  2535. public String VersionGUID { get; set; }
  2536. #endregion
  2537. }
  2538. /// <summary>
  2539. /// Source:ROOT\ccm\cimodels
  2540. /// </summary>
  2541. public class AppV5X_Detect_Synclet : CCM_HandlerSynclet
  2542. {
  2543. //Constructor
  2544. public AppV5X_Detect_Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  2545. {
  2546. remoteRunspace = RemoteRunspace;
  2547. pSCode = PSCode;
  2548. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  2549. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  2550. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  2551. this.__INSTANCE = true;
  2552. this.WMIObject = WMIObject;
  2553. this.PackageGUID = WMIObject.Properties["PackageGUID"].Value as String;
  2554. this.PackageName = WMIObject.Properties["PackageName"].Value as String;
  2555. this.PublishComponents = WMIObject.Properties["PublishComponents"].Value as String[];
  2556. this.VersionGUID = WMIObject.Properties["VersionGUID"].Value as String;
  2557. }
  2558. #region Properties
  2559. internal string __CLASS { get; set; }
  2560. internal string __NAMESPACE { get; set; }
  2561. internal bool __INSTANCE { get; set; }
  2562. internal string __RELPATH { get; set; }
  2563. internal PSObject WMIObject { get; set; }
  2564. internal Runspace remoteRunspace;
  2565. internal TraceSource pSCode;
  2566. public String PackageGUID { get; set; }
  2567. public String PackageName { get; set; }
  2568. public String[] PublishComponents { get; set; }
  2569. public String VersionGUID { get; set; }
  2570. #endregion
  2571. }
  2572. /// <summary>
  2573. /// Source:ROOT\ccm\cimodels
  2574. /// </summary>
  2575. public class AppV5X_Install_Synclet : CCM_HandlerSynclet
  2576. {
  2577. //Constructor
  2578. public AppV5X_Install_Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  2579. {
  2580. remoteRunspace = RemoteRunspace;
  2581. pSCode = PSCode;
  2582. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  2583. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  2584. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  2585. this.__INSTANCE = true;
  2586. this.WMIObject = WMIObject;
  2587. this.ContentFile = WMIObject.Properties["ContentFile"].Value as String;
  2588. this.DeploymentConfigFile = WMIObject.Properties["DeploymentConfigFile"].Value as String;
  2589. this.ExecuteTime = WMIObject.Properties["ExecuteTime"].Value as UInt32?;
  2590. this.PackageGUID = WMIObject.Properties["PackageGUID"].Value as String;
  2591. this.PackageName = WMIObject.Properties["PackageName"].Value as String;
  2592. this.PublishComponents = WMIObject.Properties["PublishComponents"].Value as String[];
  2593. this.RequireLoad = WMIObject.Properties["RequireLoad"].Value as Boolean?;
  2594. this.UserConfigFile = WMIObject.Properties["UserConfigFile"].Value as String;
  2595. this.VersionGUID = WMIObject.Properties["VersionGUID"].Value as String;
  2596. }
  2597. #region Properties
  2598. internal string __CLASS { get; set; }
  2599. internal string __NAMESPACE { get; set; }
  2600. internal bool __INSTANCE { get; set; }
  2601. internal string __RELPATH { get; set; }
  2602. internal PSObject WMIObject { get; set; }
  2603. internal Runspace remoteRunspace;
  2604. internal TraceSource pSCode;
  2605. public String ContentFile { get; set; }
  2606. public String DeploymentConfigFile { get; set; }
  2607. public UInt32? ExecuteTime { get; set; }
  2608. public String PackageGUID { get; set; }
  2609. public String PackageName { get; set; }
  2610. public String[] PublishComponents { get; set; }
  2611. public Boolean? RequireLoad { get; set; }
  2612. public String UserConfigFile { get; set; }
  2613. public String VersionGUID { get; set; }
  2614. #endregion
  2615. }
  2616. /// <summary>
  2617. /// Source:ROOT\ccm\cimodels
  2618. /// </summary>
  2619. public class AppV5X_Uninstall_Synclet : CCM_HandlerSynclet
  2620. {
  2621. //Constructor
  2622. public AppV5X_Uninstall_Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  2623. {
  2624. remoteRunspace = RemoteRunspace;
  2625. pSCode = PSCode;
  2626. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  2627. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  2628. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  2629. this.__INSTANCE = true;
  2630. this.WMIObject = WMIObject;
  2631. this.ContentFile = WMIObject.Properties["ContentFile"].Value as String;
  2632. this.DeploymentConfigFile = WMIObject.Properties["DeploymentConfigFile"].Value as String;
  2633. this.PackageGUID = WMIObject.Properties["PackageGUID"].Value as String;
  2634. this.PackageName = WMIObject.Properties["PackageName"].Value as String;
  2635. this.PublishComponents = WMIObject.Properties["PublishComponents"].Value as String[];
  2636. this.UserConfigFile = WMIObject.Properties["UserConfigFile"].Value as String;
  2637. this.VersionGUID = WMIObject.Properties["VersionGUID"].Value as String;
  2638. }
  2639. #region Properties
  2640. internal string __CLASS { get; set; }
  2641. internal string __NAMESPACE { get; set; }
  2642. internal bool __INSTANCE { get; set; }
  2643. internal string __RELPATH { get; set; }
  2644. internal PSObject WMIObject { get; set; }
  2645. internal Runspace remoteRunspace;
  2646. internal TraceSource pSCode;
  2647. public String ContentFile { get; set; }
  2648. public String DeploymentConfigFile { get; set; }
  2649. public String PackageGUID { get; set; }
  2650. public String PackageName { get; set; }
  2651. public String[] PublishComponents { get; set; }
  2652. public String UserConfigFile { get; set; }
  2653. public String VersionGUID { get; set; }
  2654. #endregion
  2655. }
  2656. /// <summary>
  2657. /// Source:ROOT\ccm\cimodels
  2658. /// </summary>
  2659. public class AssemblyObj
  2660. {
  2661. //Constructor
  2662. public AssemblyObj(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  2663. {
  2664. remoteRunspace = RemoteRunspace;
  2665. pSCode = PSCode;
  2666. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  2667. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  2668. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  2669. this.__INSTANCE = true;
  2670. this.WMIObject = WMIObject;
  2671. this.Culture = WMIObject.Properties["Culture"].Value as String;
  2672. this.InstancePath = WMIObject.Properties["InstancePath"].Value as String;
  2673. this.PublicKeyToken = WMIObject.Properties["PublicKeyToken"].Value as String;
  2674. this.Version = WMIObject.Properties["Version"].Value as String;
  2675. }
  2676. #region Properties
  2677. internal string __CLASS { get; set; }
  2678. internal string __NAMESPACE { get; set; }
  2679. internal bool __INSTANCE { get; set; }
  2680. internal string __RELPATH { get; set; }
  2681. internal PSObject WMIObject { get; set; }
  2682. internal Runspace remoteRunspace;
  2683. internal TraceSource pSCode;
  2684. public String Culture { get; set; }
  2685. public String InstancePath { get; set; }
  2686. public String PublicKeyToken { get; set; }
  2687. public String Version { get; set; }
  2688. #endregion
  2689. }
  2690. /// <summary>
  2691. /// Source:ROOT\ccm\cimodels
  2692. /// </summary>
  2693. public class CCM_ADQuery_Setting_Boolean : CCM_Setting_Boolean
  2694. {
  2695. //Constructor
  2696. public CCM_ADQuery_Setting_Boolean(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  2697. {
  2698. remoteRunspace = RemoteRunspace;
  2699. pSCode = PSCode;
  2700. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  2701. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  2702. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  2703. this.__INSTANCE = true;
  2704. this.WMIObject = WMIObject;
  2705. }
  2706. #region Properties
  2707. internal string __CLASS { get; set; }
  2708. internal string __NAMESPACE { get; set; }
  2709. internal bool __INSTANCE { get; set; }
  2710. internal string __RELPATH { get; set; }
  2711. internal PSObject WMIObject { get; set; }
  2712. internal Runspace remoteRunspace;
  2713. internal TraceSource pSCode;
  2714. #endregion
  2715. }
  2716. /// <summary>
  2717. /// Source:ROOT\ccm\cimodels
  2718. /// </summary>
  2719. public class CCM_ADQuery_Setting_DateTime : CCM_Setting_DateTime
  2720. {
  2721. //Constructor
  2722. public CCM_ADQuery_Setting_DateTime(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  2723. {
  2724. remoteRunspace = RemoteRunspace;
  2725. pSCode = PSCode;
  2726. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  2727. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  2728. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  2729. this.__INSTANCE = true;
  2730. this.WMIObject = WMIObject;
  2731. }
  2732. #region Properties
  2733. internal string __CLASS { get; set; }
  2734. internal string __NAMESPACE { get; set; }
  2735. internal bool __INSTANCE { get; set; }
  2736. internal string __RELPATH { get; set; }
  2737. internal PSObject WMIObject { get; set; }
  2738. internal Runspace remoteRunspace;
  2739. internal TraceSource pSCode;
  2740. #endregion
  2741. }
  2742. /// <summary>
  2743. /// Source:ROOT\ccm\cimodels
  2744. /// </summary>
  2745. public class CCM_ADQuery_Setting_Double : CCM_Setting_Double
  2746. {
  2747. //Constructor
  2748. public CCM_ADQuery_Setting_Double(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  2749. {
  2750. remoteRunspace = RemoteRunspace;
  2751. pSCode = PSCode;
  2752. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  2753. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  2754. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  2755. this.__INSTANCE = true;
  2756. this.WMIObject = WMIObject;
  2757. }
  2758. #region Properties
  2759. internal string __CLASS { get; set; }
  2760. internal string __NAMESPACE { get; set; }
  2761. internal bool __INSTANCE { get; set; }
  2762. internal string __RELPATH { get; set; }
  2763. internal PSObject WMIObject { get; set; }
  2764. internal Runspace remoteRunspace;
  2765. internal TraceSource pSCode;
  2766. #endregion
  2767. }
  2768. /// <summary>
  2769. /// Source:ROOT\ccm\cimodels
  2770. /// </summary>
  2771. public class CCM_ADQuery_Setting_Integer : CCM_Setting_Integer
  2772. {
  2773. //Constructor
  2774. public CCM_ADQuery_Setting_Integer(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  2775. {
  2776. remoteRunspace = RemoteRunspace;
  2777. pSCode = PSCode;
  2778. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  2779. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  2780. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  2781. this.__INSTANCE = true;
  2782. this.WMIObject = WMIObject;
  2783. }
  2784. #region Properties
  2785. internal string __CLASS { get; set; }
  2786. internal string __NAMESPACE { get; set; }
  2787. internal bool __INSTANCE { get; set; }
  2788. internal string __RELPATH { get; set; }
  2789. internal PSObject WMIObject { get; set; }
  2790. internal Runspace remoteRunspace;
  2791. internal TraceSource pSCode;
  2792. #endregion
  2793. }
  2794. /// <summary>
  2795. /// Source:ROOT\ccm\cimodels
  2796. /// </summary>
  2797. public class CCM_ADQuery_Setting_IntegerArray : CCM_Setting_IntegerArray
  2798. {
  2799. //Constructor
  2800. public CCM_ADQuery_Setting_IntegerArray(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  2801. {
  2802. remoteRunspace = RemoteRunspace;
  2803. pSCode = PSCode;
  2804. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  2805. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  2806. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  2807. this.__INSTANCE = true;
  2808. this.WMIObject = WMIObject;
  2809. }
  2810. #region Properties
  2811. internal string __CLASS { get; set; }
  2812. internal string __NAMESPACE { get; set; }
  2813. internal bool __INSTANCE { get; set; }
  2814. internal string __RELPATH { get; set; }
  2815. internal PSObject WMIObject { get; set; }
  2816. internal Runspace remoteRunspace;
  2817. internal TraceSource pSCode;
  2818. #endregion
  2819. }
  2820. /// <summary>
  2821. /// Source:ROOT\ccm\cimodels
  2822. /// </summary>
  2823. public class CCM_ADQuery_Setting_String : CCM_Setting_String
  2824. {
  2825. //Constructor
  2826. public CCM_ADQuery_Setting_String(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  2827. {
  2828. remoteRunspace = RemoteRunspace;
  2829. pSCode = PSCode;
  2830. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  2831. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  2832. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  2833. this.__INSTANCE = true;
  2834. this.WMIObject = WMIObject;
  2835. }
  2836. #region Properties
  2837. internal string __CLASS { get; set; }
  2838. internal string __NAMESPACE { get; set; }
  2839. internal bool __INSTANCE { get; set; }
  2840. internal string __RELPATH { get; set; }
  2841. internal PSObject WMIObject { get; set; }
  2842. internal Runspace remoteRunspace;
  2843. internal TraceSource pSCode;
  2844. #endregion
  2845. }
  2846. /// <summary>
  2847. /// Source:ROOT\ccm\cimodels
  2848. /// </summary>
  2849. public class CCM_ADQuery_Setting_StringArray : CCM_Setting_StringArray
  2850. {
  2851. //Constructor
  2852. public CCM_ADQuery_Setting_StringArray(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  2853. {
  2854. remoteRunspace = RemoteRunspace;
  2855. pSCode = PSCode;
  2856. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  2857. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  2858. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  2859. this.__INSTANCE = true;
  2860. this.WMIObject = WMIObject;
  2861. }
  2862. #region Properties
  2863. internal string __CLASS { get; set; }
  2864. internal string __NAMESPACE { get; set; }
  2865. internal bool __INSTANCE { get; set; }
  2866. internal string __RELPATH { get; set; }
  2867. internal PSObject WMIObject { get; set; }
  2868. internal Runspace remoteRunspace;
  2869. internal TraceSource pSCode;
  2870. #endregion
  2871. }
  2872. /// <summary>
  2873. /// Source:ROOT\ccm\cimodels
  2874. /// </summary>
  2875. public class CCM_ADQuery_Setting_Synclet
  2876. {
  2877. //Constructor
  2878. public CCM_ADQuery_Setting_Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  2879. {
  2880. remoteRunspace = RemoteRunspace;
  2881. pSCode = PSCode;
  2882. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  2883. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  2884. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  2885. this.__INSTANCE = true;
  2886. this.WMIObject = WMIObject;
  2887. this.Attribute = WMIObject.Properties["Attribute"].Value as String;
  2888. this.Depth = WMIObject.Properties["Depth"].Value as byte?;
  2889. this.dnName = WMIObject.Properties["dnName"].Value as String;
  2890. this.Filter = WMIObject.Properties["Filter"].Value as String;
  2891. this.ID = WMIObject.Properties["ID"].Value as String;
  2892. this.LDAPPrefix = WMIObject.Properties["LDAPPrefix"].Value as String;
  2893. }
  2894. #region Properties
  2895. internal string __CLASS { get; set; }
  2896. internal string __NAMESPACE { get; set; }
  2897. internal bool __INSTANCE { get; set; }
  2898. internal string __RELPATH { get; set; }
  2899. internal PSObject WMIObject { get; set; }
  2900. internal Runspace remoteRunspace;
  2901. internal TraceSource pSCode;
  2902. public String Attribute { get; set; }
  2903. public byte? Depth { get; set; }
  2904. public String dnName { get; set; }
  2905. public String Filter { get; set; }
  2906. public String ID { get; set; }
  2907. public String LDAPPrefix { get; set; }
  2908. #endregion
  2909. }
  2910. /// <summary>
  2911. /// Source:ROOT\ccm\cimodels
  2912. /// </summary>
  2913. public class CCM_AppAction
  2914. {
  2915. //Constructor
  2916. public CCM_AppAction(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  2917. {
  2918. remoteRunspace = RemoteRunspace;
  2919. pSCode = PSCode;
  2920. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  2921. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  2922. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  2923. this.__INSTANCE = true;
  2924. this.WMIObject = WMIObject;
  2925. this.ActionType = WMIObject.Properties["ActionType"].Value as String;
  2926. this.Content = WMIObject.Properties["Content"].Value as ContentInfo;
  2927. this.HandlerName = WMIObject.Properties["HandlerName"].Value as String;
  2928. }
  2929. #region Properties
  2930. internal string __CLASS { get; set; }
  2931. internal string __NAMESPACE { get; set; }
  2932. internal bool __INSTANCE { get; set; }
  2933. internal string __RELPATH { get; set; }
  2934. internal PSObject WMIObject { get; set; }
  2935. internal Runspace remoteRunspace;
  2936. internal TraceSource pSCode;
  2937. public String ActionType { get; set; }
  2938. public ContentInfo Content { get; set; }
  2939. public String HandlerName { get; set; }
  2940. #endregion
  2941. }
  2942. /// <summary>
  2943. /// Source:ROOT\ccm\cimodels
  2944. /// </summary>
  2945. public class CCM_AppDeliveryType
  2946. {
  2947. //Constructor
  2948. public CCM_AppDeliveryType(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  2949. {
  2950. remoteRunspace = RemoteRunspace;
  2951. pSCode = PSCode;
  2952. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  2953. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  2954. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  2955. this.__INSTANCE = true;
  2956. this.WMIObject = WMIObject;
  2957. this.AppDeliveryTypeId = WMIObject.Properties["AppDeliveryTypeId"].Value as String;
  2958. this.AppId = WMIObject.Properties["AppId"].Value as String;
  2959. this.HostType = WMIObject.Properties["HostType"].Value as String;
  2960. this.Revision = WMIObject.Properties["Revision"].Value as UInt32?;
  2961. }
  2962. #region Properties
  2963. internal string __CLASS { get; set; }
  2964. internal string __NAMESPACE { get; set; }
  2965. internal bool __INSTANCE { get; set; }
  2966. internal string __RELPATH { get; set; }
  2967. internal PSObject WMIObject { get; set; }
  2968. internal Runspace remoteRunspace;
  2969. internal TraceSource pSCode;
  2970. public String AppDeliveryTypeId { get; set; }
  2971. public String AppId { get; set; }
  2972. public String HostType { get; set; }
  2973. public UInt32? Revision { get; set; }
  2974. #endregion
  2975. #region Methods
  2976. public UInt32 GetContentInfo(String ActionType, String AppDeliveryTypeId, UInt32 Revision, out String ContentId, out String ContentVersion, out String ExcludedFileList, out Boolean ForceFileExclusion)
  2977. {
  2978. return 0;
  2979. }
  2980. public UInt32 EnforceApp(String ActionType, String AppDeliveryTypeId, String ContentPath, UInt32 Revision, UInt32 SessionId, String UserSid)
  2981. {
  2982. return 0;
  2983. }
  2984. public UInt32 GetMaxExecuteTime(String ActionType, String AppDeliveryTypeId, UInt32 Revision, out UInt32 MaxExecuteTime)
  2985. {
  2986. return 0;
  2987. }
  2988. public UInt32 GetPendingComponentList(String AppDeliveryTypeId, UInt32 Revision, out String PendingComponentList)
  2989. {
  2990. return 0;
  2991. }
  2992. #endregion
  2993. }
  2994. /// <summary>
  2995. /// Source:ROOT\ccm\cimodels
  2996. /// </summary>
  2997. public class CCM_AppDeliveryTypeSynclet : Synclet
  2998. {
  2999. //Constructor
  3000. public CCM_AppDeliveryTypeSynclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  3001. {
  3002. remoteRunspace = RemoteRunspace;
  3003. pSCode = PSCode;
  3004. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  3005. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  3006. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  3007. this.__INSTANCE = true;
  3008. this.WMIObject = WMIObject;
  3009. this.AppDeliveryTypeId = WMIObject.Properties["AppDeliveryTypeId"].Value as String;
  3010. this.AppDeliveryTypeName = WMIObject.Properties["AppDeliveryTypeName"].Value as String;
  3011. this.AppId = WMIObject.Properties["AppId"].Value as String;
  3012. this.DiscAction = WMIObject.Properties["DiscAction"].Value as CCM_AppAction;
  3013. this.HostType = WMIObject.Properties["HostType"].Value as String;
  3014. this.InstallAction = WMIObject.Properties["InstallAction"].Value as CCM_AppAction;
  3015. this.Revision = WMIObject.Properties["Revision"].Value as UInt32?;
  3016. this.UninstallAction = WMIObject.Properties["UninstallAction"].Value as CCM_AppAction;
  3017. }
  3018. #region Properties
  3019. internal string __CLASS { get; set; }
  3020. internal string __NAMESPACE { get; set; }
  3021. internal bool __INSTANCE { get; set; }
  3022. internal string __RELPATH { get; set; }
  3023. internal PSObject WMIObject { get; set; }
  3024. internal Runspace remoteRunspace;
  3025. internal TraceSource pSCode;
  3026. public String AppDeliveryTypeId { get; set; }
  3027. public String AppDeliveryTypeName { get; set; }
  3028. public String AppId { get; set; }
  3029. public CCM_AppAction DiscAction { get; set; }
  3030. public String HostType { get; set; }
  3031. public CCM_AppAction InstallAction { get; set; }
  3032. public UInt32? Revision { get; set; }
  3033. public CCM_AppAction UninstallAction { get; set; }
  3034. #endregion
  3035. }
  3036. /// <summary>
  3037. /// Source:ROOT\ccm\cimodels
  3038. /// </summary>
  3039. public class CCM_AppEnforceStatus
  3040. {
  3041. //Constructor
  3042. public CCM_AppEnforceStatus(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  3043. {
  3044. remoteRunspace = RemoteRunspace;
  3045. pSCode = PSCode;
  3046. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  3047. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  3048. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  3049. this.__INSTANCE = true;
  3050. this.WMIObject = WMIObject;
  3051. this.AppDeliveryTypeId = WMIObject.Properties["AppDeliveryTypeId"].Value as String;
  3052. this.ExecutionStatus = WMIObject.Properties["ExecutionStatus"].Value as String;
  3053. this.ExitCode = WMIObject.Properties["ExitCode"].Value as UInt32?;
  3054. this.ReconnectData = WMIObject.Properties["ReconnectData"].Value as CCM_AppReconnectData_Base;
  3055. this.Revision = WMIObject.Properties["Revision"].Value as UInt32?;
  3056. }
  3057. #region Properties
  3058. internal string __CLASS { get; set; }
  3059. internal string __NAMESPACE { get; set; }
  3060. internal bool __INSTANCE { get; set; }
  3061. internal string __RELPATH { get; set; }
  3062. internal PSObject WMIObject { get; set; }
  3063. internal Runspace remoteRunspace;
  3064. internal TraceSource pSCode;
  3065. public String AppDeliveryTypeId { get; set; }
  3066. public String ExecutionStatus { get; set; }
  3067. public UInt32? ExitCode { get; set; }
  3068. public CCM_AppReconnectData_Base ReconnectData { get; set; }
  3069. public UInt32? Revision { get; set; }
  3070. #endregion
  3071. }
  3072. /// <summary>
  3073. /// Source:ROOT\ccm\cimodels
  3074. /// </summary>
  3075. public class CCM_AppHandlers
  3076. {
  3077. //Constructor
  3078. public CCM_AppHandlers(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  3079. {
  3080. remoteRunspace = RemoteRunspace;
  3081. pSCode = PSCode;
  3082. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  3083. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  3084. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  3085. this.__INSTANCE = true;
  3086. this.WMIObject = WMIObject;
  3087. this.HandlerCLSID = WMIObject.Properties["HandlerCLSID"].Value as String;
  3088. this.HandlerName = WMIObject.Properties["HandlerName"].Value as String;
  3089. }
  3090. #region Properties
  3091. internal string __CLASS { get; set; }
  3092. internal string __NAMESPACE { get; set; }
  3093. internal bool __INSTANCE { get; set; }
  3094. internal string __RELPATH { get; set; }
  3095. internal PSObject WMIObject { get; set; }
  3096. internal Runspace remoteRunspace;
  3097. internal TraceSource pSCode;
  3098. public String HandlerCLSID { get; set; }
  3099. public String HandlerName { get; set; }
  3100. #endregion
  3101. }
  3102. /// <summary>
  3103. /// Source:ROOT\ccm\cimodels
  3104. /// </summary>
  3105. public class CCM_AppProductSource
  3106. {
  3107. //Constructor
  3108. public CCM_AppProductSource(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  3109. {
  3110. remoteRunspace = RemoteRunspace;
  3111. pSCode = PSCode;
  3112. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  3113. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  3114. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  3115. this.__INSTANCE = true;
  3116. this.WMIObject = WMIObject;
  3117. this.AppDeliveryTypeId = WMIObject.Properties["AppDeliveryTypeId"].Value as String;
  3118. this.ProductCode = WMIObject.Properties["ProductCode"].Value as String;
  3119. this.Reserved = WMIObject.Properties["Reserved"].Value as String;
  3120. this.Revision = WMIObject.Properties["Revision"].Value as UInt32?;
  3121. }
  3122. #region Properties
  3123. internal string __CLASS { get; set; }
  3124. internal string __NAMESPACE { get; set; }
  3125. internal bool __INSTANCE { get; set; }
  3126. internal string __RELPATH { get; set; }
  3127. internal PSObject WMIObject { get; set; }
  3128. internal Runspace remoteRunspace;
  3129. internal TraceSource pSCode;
  3130. public String AppDeliveryTypeId { get; set; }
  3131. public String ProductCode { get; set; }
  3132. public String Reserved { get; set; }
  3133. public UInt32? Revision { get; set; }
  3134. #endregion
  3135. }
  3136. /// <summary>
  3137. /// Source:ROOT\ccm\cimodels
  3138. /// </summary>
  3139. public class CCM_AppReconnectData_Base
  3140. {
  3141. //Constructor
  3142. public CCM_AppReconnectData_Base(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  3143. {
  3144. remoteRunspace = RemoteRunspace;
  3145. pSCode = PSCode;
  3146. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  3147. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  3148. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  3149. this.__INSTANCE = true;
  3150. this.WMIObject = WMIObject;
  3151. this.AppDeliveryTypeId = WMIObject.Properties["AppDeliveryTypeId"].Value as String;
  3152. this.Revision = WMIObject.Properties["Revision"].Value as UInt32?;
  3153. this.UserSid = WMIObject.Properties["UserSid"].Value as String;
  3154. }
  3155. #region Properties
  3156. internal string __CLASS { get; set; }
  3157. internal string __NAMESPACE { get; set; }
  3158. internal bool __INSTANCE { get; set; }
  3159. internal string __RELPATH { get; set; }
  3160. internal PSObject WMIObject { get; set; }
  3161. internal Runspace remoteRunspace;
  3162. internal TraceSource pSCode;
  3163. public String AppDeliveryTypeId { get; set; }
  3164. public UInt32? Revision { get; set; }
  3165. public String UserSid { get; set; }
  3166. #endregion
  3167. }
  3168. /// <summary>
  3169. /// Source:ROOT\ccm\cimodels
  3170. /// </summary>
  3171. public class CCM_AppReconnectData_MSI : CCM_AppReconnectData_Base
  3172. {
  3173. //Constructor
  3174. public CCM_AppReconnectData_MSI(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  3175. {
  3176. remoteRunspace = RemoteRunspace;
  3177. pSCode = PSCode;
  3178. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  3179. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  3180. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  3181. this.__INSTANCE = true;
  3182. this.WMIObject = WMIObject;
  3183. this.AdvertiseFileName = WMIObject.Properties["AdvertiseFileName"].Value as String;
  3184. string sCreationTime = WMIObject.Properties["CreationTime"].Value as string;
  3185. if (string.IsNullOrEmpty(sCreationTime))
  3186. this.CreationTime = null;
  3187. else
  3188. this.CreationTime = ManagementDateTimeConverter.ToDateTime(sCreationTime) as DateTime?;
  3189. this.ProcessId = WMIObject.Properties["ProcessId"].Value as UInt32?;
  3190. this.ProductCode = WMIObject.Properties["ProductCode"].Value as String;
  3191. this.ProgramRestart = WMIObject.Properties["ProgramRestart"].Value as Boolean?;
  3192. this.UserDT = WMIObject.Properties["UserDT"].Value as Boolean?;
  3193. this.UserInteraction = WMIObject.Properties["UserInteraction"].Value as Boolean?;
  3194. }
  3195. #region Properties
  3196. internal string __CLASS { get; set; }
  3197. internal string __NAMESPACE { get; set; }
  3198. internal bool __INSTANCE { get; set; }
  3199. internal string __RELPATH { get; set; }
  3200. internal PSObject WMIObject { get; set; }
  3201. internal Runspace remoteRunspace;
  3202. internal TraceSource pSCode;
  3203. public String AdvertiseFileName { get; set; }
  3204. public DateTime? CreationTime { get; set; }
  3205. public UInt32? ProcessId { get; set; }
  3206. public String ProductCode { get; set; }
  3207. public Boolean? ProgramRestart { get; set; }
  3208. public Boolean? UserDT { get; set; }
  3209. public Boolean? UserInteraction { get; set; }
  3210. #endregion
  3211. }
  3212. /// <summary>
  3213. /// Source:ROOT\ccm\cimodels
  3214. /// </summary>
  3215. public class CCM_AppReconnectData_Script : CCM_AppReconnectData_Base
  3216. {
  3217. //Constructor
  3218. public CCM_AppReconnectData_Script(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  3219. {
  3220. remoteRunspace = RemoteRunspace;
  3221. pSCode = PSCode;
  3222. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  3223. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  3224. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  3225. this.__INSTANCE = true;
  3226. this.WMIObject = WMIObject;
  3227. this.AdvertiseFileName = WMIObject.Properties["AdvertiseFileName"].Value as String;
  3228. string sCreationTime = WMIObject.Properties["CreationTime"].Value as string;
  3229. if (string.IsNullOrEmpty(sCreationTime))
  3230. this.CreationTime = null;
  3231. else
  3232. this.CreationTime = ManagementDateTimeConverter.ToDateTime(sCreationTime) as DateTime?;
  3233. this.ProcessId = WMIObject.Properties["ProcessId"].Value as UInt32?;
  3234. this.ProductCode = WMIObject.Properties["ProductCode"].Value as String;
  3235. this.ProgramRestart = WMIObject.Properties["ProgramRestart"].Value as Boolean?;
  3236. this.UserDT = WMIObject.Properties["UserDT"].Value as Boolean?;
  3237. this.UserInteraction = WMIObject.Properties["UserInteraction"].Value as Boolean?;
  3238. }
  3239. #region Properties
  3240. internal string __CLASS { get; set; }
  3241. internal string __NAMESPACE { get; set; }
  3242. internal bool __INSTANCE { get; set; }
  3243. internal string __RELPATH { get; set; }
  3244. internal PSObject WMIObject { get; set; }
  3245. internal Runspace remoteRunspace;
  3246. internal TraceSource pSCode;
  3247. public String AdvertiseFileName { get; set; }
  3248. public DateTime? CreationTime { get; set; }
  3249. public UInt32? ProcessId { get; set; }
  3250. public String ProductCode { get; set; }
  3251. public Boolean? ProgramRestart { get; set; }
  3252. public Boolean? UserDT { get; set; }
  3253. public Boolean? UserInteraction { get; set; }
  3254. #endregion
  3255. }
  3256. /// <summary>
  3257. /// Source:ROOT\ccm\cimodels
  3258. /// </summary>
  3259. public class CCM_AppXInstallInfo
  3260. {
  3261. //Constructor
  3262. public CCM_AppXInstallInfo(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  3263. {
  3264. remoteRunspace = RemoteRunspace;
  3265. pSCode = PSCode;
  3266. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  3267. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  3268. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  3269. this.__INSTANCE = true;
  3270. this.WMIObject = WMIObject;
  3271. this.AppDeliveryTypeId = WMIObject.Properties["AppDeliveryTypeId"].Value as String;
  3272. this.IsBundle = WMIObject.Properties["IsBundle"].Value as Boolean?;
  3273. this.IsDeepLink = WMIObject.Properties["IsDeepLink"].Value as Boolean?;
  3274. this.Name = WMIObject.Properties["Name"].Value as String;
  3275. this.ProcessorArchitecture = WMIObject.Properties["ProcessorArchitecture"].Value as String;
  3276. this.Publisher = WMIObject.Properties["Publisher"].Value as String;
  3277. this.ResourceId = WMIObject.Properties["ResourceId"].Value as String;
  3278. this.Revision = WMIObject.Properties["Revision"].Value as UInt32?;
  3279. this.Version = WMIObject.Properties["Version"].Value as String;
  3280. }
  3281. #region Properties
  3282. internal string __CLASS { get; set; }
  3283. internal string __NAMESPACE { get; set; }
  3284. internal bool __INSTANCE { get; set; }
  3285. internal string __RELPATH { get; set; }
  3286. internal PSObject WMIObject { get; set; }
  3287. internal Runspace remoteRunspace;
  3288. internal TraceSource pSCode;
  3289. public String AppDeliveryTypeId { get; set; }
  3290. public Boolean? IsBundle { get; set; }
  3291. public Boolean? IsDeepLink { get; set; }
  3292. public String Name { get; set; }
  3293. public String ProcessorArchitecture { get; set; }
  3294. public String Publisher { get; set; }
  3295. public String ResourceId { get; set; }
  3296. public UInt32? Revision { get; set; }
  3297. public String Version { get; set; }
  3298. #endregion
  3299. }
  3300. /// <summary>
  3301. /// Source:ROOT\ccm\cimodels
  3302. /// </summary>
  3303. public class CCM_Assembly_Setting : CCM_Setting
  3304. {
  3305. //Constructor
  3306. public CCM_Assembly_Setting(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  3307. {
  3308. remoteRunspace = RemoteRunspace;
  3309. pSCode = PSCode;
  3310. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  3311. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  3312. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  3313. this.__INSTANCE = true;
  3314. this.WMIObject = WMIObject;
  3315. this.SettingInstances = WMIObject.Properties["SettingInstances"].Value as AssemblyObj[];
  3316. }
  3317. #region Properties
  3318. internal string __CLASS { get; set; }
  3319. internal string __NAMESPACE { get; set; }
  3320. internal bool __INSTANCE { get; set; }
  3321. internal string __RELPATH { get; set; }
  3322. internal PSObject WMIObject { get; set; }
  3323. internal Runspace remoteRunspace;
  3324. internal TraceSource pSCode;
  3325. public AssemblyObj[] SettingInstances { get; set; }
  3326. #endregion
  3327. }
  3328. /// <summary>
  3329. /// Source:ROOT\ccm\cimodels
  3330. /// </summary>
  3331. public class CCM_Assembly_Setting_Synclet
  3332. {
  3333. //Constructor
  3334. public CCM_Assembly_Setting_Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  3335. {
  3336. remoteRunspace = RemoteRunspace;
  3337. pSCode = PSCode;
  3338. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  3339. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  3340. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  3341. this.__INSTANCE = true;
  3342. this.WMIObject = WMIObject;
  3343. this.AssemblyName = WMIObject.Properties["AssemblyName"].Value as String;
  3344. this.ID = WMIObject.Properties["ID"].Value as String;
  3345. }
  3346. #region Properties
  3347. internal string __CLASS { get; set; }
  3348. internal string __NAMESPACE { get; set; }
  3349. internal bool __INSTANCE { get; set; }
  3350. internal string __RELPATH { get; set; }
  3351. internal PSObject WMIObject { get; set; }
  3352. internal Runspace remoteRunspace;
  3353. internal TraceSource pSCode;
  3354. public String AssemblyName { get; set; }
  3355. public String ID { get; set; }
  3356. #endregion
  3357. }
  3358. /// <summary>
  3359. /// Source:ROOT\ccm\cimodels
  3360. /// </summary>
  3361. public class CCM_Certificate
  3362. {
  3363. //Constructor
  3364. public CCM_Certificate(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  3365. {
  3366. remoteRunspace = RemoteRunspace;
  3367. pSCode = PSCode;
  3368. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  3369. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  3370. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  3371. this.__INSTANCE = true;
  3372. this.WMIObject = WMIObject;
  3373. this.Blob = WMIObject.Properties["Blob"].Value as String;
  3374. this.IsInstalled = WMIObject.Properties["IsInstalled"].Value as Boolean?;
  3375. this.StoreLocation = WMIObject.Properties["StoreLocation"].Value as byte?;
  3376. this.StoreName = WMIObject.Properties["StoreName"].Value as String;
  3377. this.Thumbprint = WMIObject.Properties["Thumbprint"].Value as String;
  3378. }
  3379. #region Properties
  3380. internal string __CLASS { get; set; }
  3381. internal string __NAMESPACE { get; set; }
  3382. internal bool __INSTANCE { get; set; }
  3383. internal string __RELPATH { get; set; }
  3384. internal PSObject WMIObject { get; set; }
  3385. internal Runspace remoteRunspace;
  3386. internal TraceSource pSCode;
  3387. public String Blob { get; set; }
  3388. public Boolean? IsInstalled { get; set; }
  3389. public byte? StoreLocation { get; set; }
  3390. public String StoreName { get; set; }
  3391. public String Thumbprint { get; set; }
  3392. #endregion
  3393. }
  3394. /// <summary>
  3395. /// Source:ROOT\ccm\cimodels
  3396. /// </summary>
  3397. public class CCM_CertificateEnrollment
  3398. {
  3399. //Constructor
  3400. public CCM_CertificateEnrollment(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  3401. {
  3402. remoteRunspace = RemoteRunspace;
  3403. pSCode = PSCode;
  3404. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  3405. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  3406. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  3407. this.__INSTANCE = true;
  3408. this.WMIObject = WMIObject;
  3409. this.ConfigurationParameters = WMIObject.Properties["ConfigurationParameters"].Value as String;
  3410. this.EnhancedKeyUsages = WMIObject.Properties["EnhancedKeyUsages"].Value as String;
  3411. this.Error = WMIObject.Properties["Error"].Value as UInt32?;
  3412. this.ExpirationThreshold = WMIObject.Properties["ExpirationThreshold"].Value as UInt32?;
  3413. this.Issuers = WMIObject.Properties["Issuers"].Value as String;
  3414. this.RequestID = WMIObject.Properties["RequestID"].Value as String;
  3415. this.RequestParameters = WMIObject.Properties["RequestParameters"].Value as String;
  3416. this.SerialNumber = WMIObject.Properties["SerialNumber"].Value as String;
  3417. this.Status = WMIObject.Properties["Status"].Value as UInt32?;
  3418. this.StoreLocation = WMIObject.Properties["StoreLocation"].Value as byte?;
  3419. this.SubjectAlternativeNames = WMIObject.Properties["SubjectAlternativeNames"].Value as String;
  3420. this.SubjectName = WMIObject.Properties["SubjectName"].Value as String;
  3421. this.Thumbprint = WMIObject.Properties["Thumbprint"].Value as String;
  3422. string sValidFrom = WMIObject.Properties["ValidFrom"].Value as string;
  3423. if (string.IsNullOrEmpty(sValidFrom))
  3424. this.ValidFrom = null;
  3425. else
  3426. this.ValidFrom = ManagementDateTimeConverter.ToDateTime(sValidFrom) as DateTime?;
  3427. string sValidTo = WMIObject.Properties["ValidTo"].Value as string;
  3428. if (string.IsNullOrEmpty(sValidTo))
  3429. this.ValidTo = null;
  3430. else
  3431. this.ValidTo = ManagementDateTimeConverter.ToDateTime(sValidTo) as DateTime?;
  3432. }
  3433. #region Properties
  3434. internal string __CLASS { get; set; }
  3435. internal string __NAMESPACE { get; set; }
  3436. internal bool __INSTANCE { get; set; }
  3437. internal string __RELPATH { get; set; }
  3438. internal PSObject WMIObject { get; set; }
  3439. internal Runspace remoteRunspace;
  3440. internal TraceSource pSCode;
  3441. public String ConfigurationParameters { get; set; }
  3442. public String EnhancedKeyUsages { get; set; }
  3443. public UInt32? Error { get; set; }
  3444. public UInt32? ExpirationThreshold { get; set; }
  3445. public String Issuers { get; set; }
  3446. public String RequestID { get; set; }
  3447. public String RequestParameters { get; set; }
  3448. public String SerialNumber { get; set; }
  3449. public UInt32? Status { get; set; }
  3450. public byte? StoreLocation { get; set; }
  3451. public String SubjectAlternativeNames { get; set; }
  3452. public String SubjectName { get; set; }
  3453. public String Thumbprint { get; set; }
  3454. public DateTime? ValidFrom { get; set; }
  3455. public DateTime? ValidTo { get; set; }
  3456. #endregion
  3457. }
  3458. /// <summary>
  3459. /// Source:ROOT\ccm\cimodels
  3460. /// </summary>
  3461. public class CCM_ExpressionValue_Setting
  3462. {
  3463. //Constructor
  3464. public CCM_ExpressionValue_Setting(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  3465. {
  3466. remoteRunspace = RemoteRunspace;
  3467. pSCode = PSCode;
  3468. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  3469. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  3470. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  3471. this.__INSTANCE = true;
  3472. this.WMIObject = WMIObject;
  3473. this.ExpressionValue = WMIObject.Properties["ExpressionValue"].Value as Boolean?;
  3474. this.ID = WMIObject.Properties["ID"].Value as String;
  3475. }
  3476. #region Properties
  3477. internal string __CLASS { get; set; }
  3478. internal string __NAMESPACE { get; set; }
  3479. internal bool __INSTANCE { get; set; }
  3480. internal string __RELPATH { get; set; }
  3481. internal PSObject WMIObject { get; set; }
  3482. internal Runspace remoteRunspace;
  3483. internal TraceSource pSCode;
  3484. public Boolean? ExpressionValue { get; set; }
  3485. public String ID { get; set; }
  3486. #endregion
  3487. }
  3488. /// <summary>
  3489. /// Source:ROOT\ccm\cimodels
  3490. /// </summary>
  3491. public class CCM_File_Setting : CCM_FileSystem_Setting
  3492. {
  3493. //Constructor
  3494. public CCM_File_Setting(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  3495. {
  3496. remoteRunspace = RemoteRunspace;
  3497. pSCode = PSCode;
  3498. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  3499. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  3500. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  3501. this.__INSTANCE = true;
  3502. this.WMIObject = WMIObject;
  3503. this.Company = WMIObject.Properties["Company"].Value as String;
  3504. this.ProductName = WMIObject.Properties["ProductName"].Value as String;
  3505. this.SHA1Hash = WMIObject.Properties["SHA1Hash"].Value as String;
  3506. this.Size = WMIObject.Properties["Size"].Value as UInt64;
  3507. this.SizeOnDisk = WMIObject.Properties["SizeOnDisk"].Value as UInt64;
  3508. this.Version = WMIObject.Properties["Version"].Value as String;
  3509. }
  3510. #region Properties
  3511. internal string __CLASS { get; set; }
  3512. internal string __NAMESPACE { get; set; }
  3513. internal bool __INSTANCE { get; set; }
  3514. internal string __RELPATH { get; set; }
  3515. internal PSObject WMIObject { get; set; }
  3516. internal Runspace remoteRunspace;
  3517. internal TraceSource pSCode;
  3518. public String Company { get; set; }
  3519. public String ProductName { get; set; }
  3520. public String SHA1Hash { get; set; }
  3521. public UInt64 Size { get; set; }
  3522. public UInt64 SizeOnDisk { get; set; }
  3523. public String Version { get; set; }
  3524. #endregion
  3525. }
  3526. /// <summary>
  3527. /// Source:ROOT\ccm\cimodels
  3528. /// </summary>
  3529. public class CCM_FileSystem_Setting
  3530. {
  3531. //Constructor
  3532. public CCM_FileSystem_Setting(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  3533. {
  3534. remoteRunspace = RemoteRunspace;
  3535. pSCode = PSCode;
  3536. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  3537. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  3538. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  3539. this.__INSTANCE = true;
  3540. this.WMIObject = WMIObject;
  3541. this.Archived = WMIObject.Properties["Archived"].Value as Boolean?;
  3542. this.BasePath = WMIObject.Properties["BasePath"].Value as String;
  3543. this.Compressed = WMIObject.Properties["Compressed"].Value as Boolean?;
  3544. string sDateCreated = WMIObject.Properties["DateCreated"].Value as string;
  3545. if (string.IsNullOrEmpty(sDateCreated))
  3546. this.DateCreated = null;
  3547. else
  3548. this.DateCreated = ManagementDateTimeConverter.ToDateTime(sDateCreated) as DateTime?;
  3549. string sDateModified = WMIObject.Properties["DateModified"].Value as string;
  3550. if (string.IsNullOrEmpty(sDateModified))
  3551. this.DateModified = null;
  3552. else
  3553. this.DateModified = ManagementDateTimeConverter.ToDateTime(sDateModified) as DateTime?;
  3554. this.Encrypted = WMIObject.Properties["Encrypted"].Value as Boolean?;
  3555. this.FileSystemRedirectionMode = WMIObject.Properties["FileSystemRedirectionMode"].Value as byte?;
  3556. this.FullPath = WMIObject.Properties["FullPath"].Value as String;
  3557. this.Hidden = WMIObject.Properties["Hidden"].Value as Boolean?;
  3558. this.Name = WMIObject.Properties["Name"].Value as String;
  3559. this.Path = WMIObject.Properties["Path"].Value as String;
  3560. this.ReadOnly = WMIObject.Properties["ReadOnly"].Value as Boolean?;
  3561. this.SearchDepth = WMIObject.Properties["SearchDepth"].Value as byte?;
  3562. this.System = WMIObject.Properties["System"].Value as Boolean?;
  3563. }
  3564. #region Properties
  3565. internal string __CLASS { get; set; }
  3566. internal string __NAMESPACE { get; set; }
  3567. internal bool __INSTANCE { get; set; }
  3568. internal string __RELPATH { get; set; }
  3569. internal PSObject WMIObject { get; set; }
  3570. internal Runspace remoteRunspace;
  3571. internal TraceSource pSCode;
  3572. public Boolean? Archived { get; set; }
  3573. public String BasePath { get; set; }
  3574. public Boolean? Compressed { get; set; }
  3575. public DateTime? DateCreated { get; set; }
  3576. public DateTime? DateModified { get; set; }
  3577. public Boolean? Encrypted { get; set; }
  3578. public byte? FileSystemRedirectionMode { get; set; }
  3579. public String FullPath { get; set; }
  3580. public Boolean? Hidden { get; set; }
  3581. public String Name { get; set; }
  3582. public String Path { get; set; }
  3583. public Boolean? ReadOnly { get; set; }
  3584. public byte? SearchDepth { get; set; }
  3585. public Boolean? System { get; set; }
  3586. #endregion
  3587. }
  3588. /// <summary>
  3589. /// Source:ROOT\ccm\cimodels
  3590. /// </summary>
  3591. public class CCM_Folder_Setting : CCM_FileSystem_Setting
  3592. {
  3593. //Constructor
  3594. public CCM_Folder_Setting(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  3595. {
  3596. remoteRunspace = RemoteRunspace;
  3597. pSCode = PSCode;
  3598. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  3599. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  3600. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  3601. this.__INSTANCE = true;
  3602. this.WMIObject = WMIObject;
  3603. }
  3604. #region Properties
  3605. internal string __CLASS { get; set; }
  3606. internal string __NAMESPACE { get; set; }
  3607. internal bool __INSTANCE { get; set; }
  3608. internal string __RELPATH { get; set; }
  3609. internal PSObject WMIObject { get; set; }
  3610. internal Runspace remoteRunspace;
  3611. internal TraceSource pSCode;
  3612. #endregion
  3613. }
  3614. /// <summary>
  3615. /// Source:ROOT\ccm\cimodels
  3616. /// </summary>
  3617. public class CCM_HandlerSynclet : Synclet
  3618. {
  3619. //Constructor
  3620. public CCM_HandlerSynclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  3621. {
  3622. remoteRunspace = RemoteRunspace;
  3623. pSCode = PSCode;
  3624. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  3625. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  3626. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  3627. this.__INSTANCE = true;
  3628. this.WMIObject = WMIObject;
  3629. this.ActionType = WMIObject.Properties["ActionType"].Value as String;
  3630. this.AppDeliveryTypeId = WMIObject.Properties["AppDeliveryTypeId"].Value as String;
  3631. this.ExecutionContext = WMIObject.Properties["ExecutionContext"].Value as String;
  3632. this.RequiresLogOn = WMIObject.Properties["RequiresLogOn"].Value as String;
  3633. this.Reserved = WMIObject.Properties["Reserved"].Value as String;
  3634. this.Revision = WMIObject.Properties["Revision"].Value as UInt32?;
  3635. }
  3636. #region Properties
  3637. internal string __CLASS { get; set; }
  3638. internal string __NAMESPACE { get; set; }
  3639. internal bool __INSTANCE { get; set; }
  3640. internal string __RELPATH { get; set; }
  3641. internal PSObject WMIObject { get; set; }
  3642. internal Runspace remoteRunspace;
  3643. internal TraceSource pSCode;
  3644. public String ActionType { get; set; }
  3645. public String AppDeliveryTypeId { get; set; }
  3646. public String ExecutionContext { get; set; }
  3647. public String RequiresLogOn { get; set; }
  3648. public String Reserved { get; set; }
  3649. public UInt32? Revision { get; set; }
  3650. #endregion
  3651. }
  3652. /// <summary>
  3653. /// Source:ROOT\ccm\cimodels
  3654. /// </summary>
  3655. public class CCM_IisMetabase_Setting_Boolean : CCM_Setting_Boolean
  3656. {
  3657. //Constructor
  3658. public CCM_IisMetabase_Setting_Boolean(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  3659. {
  3660. remoteRunspace = RemoteRunspace;
  3661. pSCode = PSCode;
  3662. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  3663. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  3664. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  3665. this.__INSTANCE = true;
  3666. this.WMIObject = WMIObject;
  3667. }
  3668. #region Properties
  3669. internal string __CLASS { get; set; }
  3670. internal string __NAMESPACE { get; set; }
  3671. internal bool __INSTANCE { get; set; }
  3672. internal string __RELPATH { get; set; }
  3673. internal PSObject WMIObject { get; set; }
  3674. internal Runspace remoteRunspace;
  3675. internal TraceSource pSCode;
  3676. #endregion
  3677. }
  3678. /// <summary>
  3679. /// Source:ROOT\ccm\cimodels
  3680. /// </summary>
  3681. public class CCM_IisMetabase_Setting_DateTime : CCM_Setting_DateTime
  3682. {
  3683. //Constructor
  3684. public CCM_IisMetabase_Setting_DateTime(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  3685. {
  3686. remoteRunspace = RemoteRunspace;
  3687. pSCode = PSCode;
  3688. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  3689. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  3690. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  3691. this.__INSTANCE = true;
  3692. this.WMIObject = WMIObject;
  3693. }
  3694. #region Properties
  3695. internal string __CLASS { get; set; }
  3696. internal string __NAMESPACE { get; set; }
  3697. internal bool __INSTANCE { get; set; }
  3698. internal string __RELPATH { get; set; }
  3699. internal PSObject WMIObject { get; set; }
  3700. internal Runspace remoteRunspace;
  3701. internal TraceSource pSCode;
  3702. #endregion
  3703. }
  3704. /// <summary>
  3705. /// Source:ROOT\ccm\cimodels
  3706. /// </summary>
  3707. public class CCM_IisMetabase_Setting_Double : CCM_Setting_Double
  3708. {
  3709. //Constructor
  3710. public CCM_IisMetabase_Setting_Double(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  3711. {
  3712. remoteRunspace = RemoteRunspace;
  3713. pSCode = PSCode;
  3714. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  3715. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  3716. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  3717. this.__INSTANCE = true;
  3718. this.WMIObject = WMIObject;
  3719. }
  3720. #region Properties
  3721. internal string __CLASS { get; set; }
  3722. internal string __NAMESPACE { get; set; }
  3723. internal bool __INSTANCE { get; set; }
  3724. internal string __RELPATH { get; set; }
  3725. internal PSObject WMIObject { get; set; }
  3726. internal Runspace remoteRunspace;
  3727. internal TraceSource pSCode;
  3728. #endregion
  3729. }
  3730. /// <summary>
  3731. /// Source:ROOT\ccm\cimodels
  3732. /// </summary>
  3733. public class CCM_IisMetabase_Setting_Integer : CCM_Setting_Integer
  3734. {
  3735. //Constructor
  3736. public CCM_IisMetabase_Setting_Integer(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  3737. {
  3738. remoteRunspace = RemoteRunspace;
  3739. pSCode = PSCode;
  3740. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  3741. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  3742. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  3743. this.__INSTANCE = true;
  3744. this.WMIObject = WMIObject;
  3745. }
  3746. #region Properties
  3747. internal string __CLASS { get; set; }
  3748. internal string __NAMESPACE { get; set; }
  3749. internal bool __INSTANCE { get; set; }
  3750. internal string __RELPATH { get; set; }
  3751. internal PSObject WMIObject { get; set; }
  3752. internal Runspace remoteRunspace;
  3753. internal TraceSource pSCode;
  3754. #endregion
  3755. }
  3756. /// <summary>
  3757. /// Source:ROOT\ccm\cimodels
  3758. /// </summary>
  3759. public class CCM_IisMetabase_Setting_IntegerArray : CCM_Setting_IntegerArray
  3760. {
  3761. //Constructor
  3762. public CCM_IisMetabase_Setting_IntegerArray(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  3763. {
  3764. remoteRunspace = RemoteRunspace;
  3765. pSCode = PSCode;
  3766. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  3767. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  3768. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  3769. this.__INSTANCE = true;
  3770. this.WMIObject = WMIObject;
  3771. }
  3772. #region Properties
  3773. internal string __CLASS { get; set; }
  3774. internal string __NAMESPACE { get; set; }
  3775. internal bool __INSTANCE { get; set; }
  3776. internal string __RELPATH { get; set; }
  3777. internal PSObject WMIObject { get; set; }
  3778. internal Runspace remoteRunspace;
  3779. internal TraceSource pSCode;
  3780. #endregion
  3781. }
  3782. /// <summary>
  3783. /// Source:ROOT\ccm\cimodels
  3784. /// </summary>
  3785. public class CCM_IisMetabase_Setting_String : CCM_Setting_String
  3786. {
  3787. //Constructor
  3788. public CCM_IisMetabase_Setting_String(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  3789. {
  3790. remoteRunspace = RemoteRunspace;
  3791. pSCode = PSCode;
  3792. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  3793. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  3794. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  3795. this.__INSTANCE = true;
  3796. this.WMIObject = WMIObject;
  3797. }
  3798. #region Properties
  3799. internal string __CLASS { get; set; }
  3800. internal string __NAMESPACE { get; set; }
  3801. internal bool __INSTANCE { get; set; }
  3802. internal string __RELPATH { get; set; }
  3803. internal PSObject WMIObject { get; set; }
  3804. internal Runspace remoteRunspace;
  3805. internal TraceSource pSCode;
  3806. #endregion
  3807. }
  3808. /// <summary>
  3809. /// Source:ROOT\ccm\cimodels
  3810. /// </summary>
  3811. public class CCM_IisMetabase_Setting_StringArray : CCM_Setting_StringArray
  3812. {
  3813. //Constructor
  3814. public CCM_IisMetabase_Setting_StringArray(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  3815. {
  3816. remoteRunspace = RemoteRunspace;
  3817. pSCode = PSCode;
  3818. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  3819. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  3820. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  3821. this.__INSTANCE = true;
  3822. this.WMIObject = WMIObject;
  3823. }
  3824. #region Properties
  3825. internal string __CLASS { get; set; }
  3826. internal string __NAMESPACE { get; set; }
  3827. internal bool __INSTANCE { get; set; }
  3828. internal string __RELPATH { get; set; }
  3829. internal PSObject WMIObject { get; set; }
  3830. internal Runspace remoteRunspace;
  3831. internal TraceSource pSCode;
  3832. #endregion
  3833. }
  3834. /// <summary>
  3835. /// Source:ROOT\ccm\cimodels
  3836. /// </summary>
  3837. public class CCM_IisMetabase_Setting_Synclet
  3838. {
  3839. //Constructor
  3840. public CCM_IisMetabase_Setting_Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  3841. {
  3842. remoteRunspace = RemoteRunspace;
  3843. pSCode = PSCode;
  3844. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  3845. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  3846. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  3847. this.__INSTANCE = true;
  3848. this.WMIObject = WMIObject;
  3849. this.ID = WMIObject.Properties["ID"].Value as String;
  3850. this.MetaBasePath = WMIObject.Properties["MetaBasePath"].Value as String;
  3851. this.PropertyID = WMIObject.Properties["PropertyID"].Value as UInt32?;
  3852. }
  3853. #region Properties
  3854. internal string __CLASS { get; set; }
  3855. internal string __NAMESPACE { get; set; }
  3856. internal bool __INSTANCE { get; set; }
  3857. internal string __RELPATH { get; set; }
  3858. internal PSObject WMIObject { get; set; }
  3859. internal Runspace remoteRunspace;
  3860. internal TraceSource pSCode;
  3861. public String ID { get; set; }
  3862. public String MetaBasePath { get; set; }
  3863. public UInt32? PropertyID { get; set; }
  3864. #endregion
  3865. }
  3866. /// <summary>
  3867. /// Source:ROOT\ccm\cimodels
  3868. /// </summary>
  3869. public class CCM_LocalInstallationSynclet : CCM_HandlerSynclet
  3870. {
  3871. //Constructor
  3872. public CCM_LocalInstallationSynclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  3873. {
  3874. remoteRunspace = RemoteRunspace;
  3875. pSCode = PSCode;
  3876. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  3877. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  3878. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  3879. this.__INSTANCE = true;
  3880. this.WMIObject = WMIObject;
  3881. this.AllowedTarget = WMIObject.Properties["AllowedTarget"].Value as String;
  3882. this.ExecuteTime = WMIObject.Properties["ExecuteTime"].Value as UInt32?;
  3883. this.FastRetryExitCodes = WMIObject.Properties["FastRetryExitCodes"].Value as UInt32?[];
  3884. this.HardRebootExitCodes = WMIObject.Properties["HardRebootExitCodes"].Value as UInt32?[];
  3885. this.InstallCommandLine = WMIObject.Properties["InstallCommandLine"].Value as String;
  3886. this.MaxExecuteTime = WMIObject.Properties["MaxExecuteTime"].Value as UInt32?;
  3887. this.PostInstallbehavior = WMIObject.Properties["PostInstallbehavior"].Value as String;
  3888. this.RebootExitCodes = WMIObject.Properties["RebootExitCodes"].Value as UInt32?[];
  3889. this.RequiresElevatedRights = WMIObject.Properties["RequiresElevatedRights"].Value as Boolean?;
  3890. this.RequiresReboot = WMIObject.Properties["RequiresReboot"].Value as Boolean?;
  3891. this.RequiresUserInteraction = WMIObject.Properties["RequiresUserInteraction"].Value as Boolean?;
  3892. this.RunAs32Bit = WMIObject.Properties["RunAs32Bit"].Value as Boolean?;
  3893. this.SuccessExitCodes = WMIObject.Properties["SuccessExitCodes"].Value as UInt32?[];
  3894. this.UserInteractionMode = WMIObject.Properties["UserInteractionMode"].Value as String;
  3895. this.WorkingDirectory = WMIObject.Properties["WorkingDirectory"].Value as String;
  3896. }
  3897. #region Properties
  3898. internal string __CLASS { get; set; }
  3899. internal string __NAMESPACE { get; set; }
  3900. internal bool __INSTANCE { get; set; }
  3901. internal string __RELPATH { get; set; }
  3902. internal PSObject WMIObject { get; set; }
  3903. internal Runspace remoteRunspace;
  3904. internal TraceSource pSCode;
  3905. public String AllowedTarget { get; set; }
  3906. public UInt32? ExecuteTime { get; set; }
  3907. public UInt32?[] FastRetryExitCodes { get; set; }
  3908. public UInt32?[] HardRebootExitCodes { get; set; }
  3909. public String InstallCommandLine { get; set; }
  3910. public UInt32? MaxExecuteTime { get; set; }
  3911. public String PostInstallbehavior { get; set; }
  3912. public UInt32?[] RebootExitCodes { get; set; }
  3913. public Boolean? RequiresElevatedRights { get; set; }
  3914. public Boolean? RequiresReboot { get; set; }
  3915. public Boolean? RequiresUserInteraction { get; set; }
  3916. public Boolean? RunAs32Bit { get; set; }
  3917. public UInt32?[] SuccessExitCodes { get; set; }
  3918. public String UserInteractionMode { get; set; }
  3919. public String WorkingDirectory { get; set; }
  3920. #endregion
  3921. }
  3922. /// <summary>
  3923. /// Source:ROOT\ccm\cimodels
  3924. /// </summary>
  3925. public class CCM_MSIProduct
  3926. {
  3927. //Constructor
  3928. public CCM_MSIProduct(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  3929. {
  3930. remoteRunspace = RemoteRunspace;
  3931. pSCode = PSCode;
  3932. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  3933. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  3934. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  3935. this.__INSTANCE = true;
  3936. this.WMIObject = WMIObject;
  3937. this.LocalPackage = WMIObject.Properties["LocalPackage"].Value as String;
  3938. this.ProductCode = WMIObject.Properties["ProductCode"].Value as String;
  3939. this.ProductName = WMIObject.Properties["ProductName"].Value as String;
  3940. this.ProductVersion = WMIObject.Properties["ProductVersion"].Value as String;
  3941. this.UpgradeCode = WMIObject.Properties["UpgradeCode"].Value as String;
  3942. }
  3943. #region Properties
  3944. internal string __CLASS { get; set; }
  3945. internal string __NAMESPACE { get; set; }
  3946. internal bool __INSTANCE { get; set; }
  3947. internal string __RELPATH { get; set; }
  3948. internal PSObject WMIObject { get; set; }
  3949. internal Runspace remoteRunspace;
  3950. internal TraceSource pSCode;
  3951. public String LocalPackage { get; set; }
  3952. public String ProductCode { get; set; }
  3953. public String ProductName { get; set; }
  3954. public String ProductVersion { get; set; }
  3955. public String UpgradeCode { get; set; }
  3956. #endregion
  3957. }
  3958. /// <summary>
  3959. /// Source:ROOT\ccm\cimodels
  3960. /// </summary>
  3961. public class CCM_OperatingSystem
  3962. {
  3963. //Constructor
  3964. public CCM_OperatingSystem(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  3965. {
  3966. remoteRunspace = RemoteRunspace;
  3967. pSCode = PSCode;
  3968. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  3969. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  3970. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  3971. this.__INSTANCE = true;
  3972. this.WMIObject = WMIObject;
  3973. this.Architecture = WMIObject.Properties["Architecture"].Value as String;
  3974. this.ServerCore = WMIObject.Properties["ServerCore"].Value as Boolean?;
  3975. }
  3976. #region Properties
  3977. internal string __CLASS { get; set; }
  3978. internal string __NAMESPACE { get; set; }
  3979. internal bool __INSTANCE { get; set; }
  3980. internal string __RELPATH { get; set; }
  3981. internal PSObject WMIObject { get; set; }
  3982. internal Runspace remoteRunspace;
  3983. internal TraceSource pSCode;
  3984. public String Architecture { get; set; }
  3985. public Boolean? ServerCore { get; set; }
  3986. #endregion
  3987. }
  3988. /// <summary>
  3989. /// Source:ROOT\ccm\cimodels
  3990. /// </summary>
  3991. public class CCM_PrimaryUser
  3992. {
  3993. //Constructor
  3994. public CCM_PrimaryUser(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  3995. {
  3996. remoteRunspace = RemoteRunspace;
  3997. pSCode = PSCode;
  3998. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  3999. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4000. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4001. this.__INSTANCE = true;
  4002. this.WMIObject = WMIObject;
  4003. this.User = WMIObject.Properties["User"].Value as String;
  4004. }
  4005. #region Properties
  4006. internal string __CLASS { get; set; }
  4007. internal string __NAMESPACE { get; set; }
  4008. internal bool __INSTANCE { get; set; }
  4009. internal string __RELPATH { get; set; }
  4010. internal PSObject WMIObject { get; set; }
  4011. internal Runspace remoteRunspace;
  4012. internal TraceSource pSCode;
  4013. public String User { get; set; }
  4014. #endregion
  4015. }
  4016. /// <summary>
  4017. /// Source:ROOT\ccm\cimodels
  4018. /// </summary>
  4019. public class CCM_RAXInfo
  4020. {
  4021. //Constructor
  4022. public CCM_RAXInfo(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4023. {
  4024. remoteRunspace = RemoteRunspace;
  4025. pSCode = PSCode;
  4026. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4027. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4028. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4029. this.__INSTANCE = true;
  4030. this.WMIObject = WMIObject;
  4031. this.AppID = WMIObject.Properties["AppID"].Value as String;
  4032. this.FeedURL = WMIObject.Properties["FeedURL"].Value as String;
  4033. this.UserSID = WMIObject.Properties["UserSID"].Value as String;
  4034. }
  4035. #region Properties
  4036. internal string __CLASS { get; set; }
  4037. internal string __NAMESPACE { get; set; }
  4038. internal bool __INSTANCE { get; set; }
  4039. internal string __RELPATH { get; set; }
  4040. internal PSObject WMIObject { get; set; }
  4041. internal Runspace remoteRunspace;
  4042. internal TraceSource pSCode;
  4043. public String AppID { get; set; }
  4044. public String FeedURL { get; set; }
  4045. public String UserSID { get; set; }
  4046. #endregion
  4047. }
  4048. /// <summary>
  4049. /// Source:ROOT\ccm\cimodels
  4050. /// </summary>
  4051. public class CCM_RegistryKey_Setting
  4052. {
  4053. //Constructor
  4054. public CCM_RegistryKey_Setting(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4055. {
  4056. remoteRunspace = RemoteRunspace;
  4057. pSCode = PSCode;
  4058. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4059. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4060. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4061. this.__INSTANCE = true;
  4062. this.WMIObject = WMIObject;
  4063. this.Hive = WMIObject.Properties["Hive"].Value as byte?;
  4064. this.key = WMIObject.Properties["key"].Value as String;
  4065. this.RegistryKeyExists = WMIObject.Properties["RegistryKeyExists"].Value as Boolean?;
  4066. this.RegistryPathRedirectionMode = WMIObject.Properties["RegistryPathRedirectionMode"].Value as byte?;
  4067. }
  4068. #region Properties
  4069. internal string __CLASS { get; set; }
  4070. internal string __NAMESPACE { get; set; }
  4071. internal bool __INSTANCE { get; set; }
  4072. internal string __RELPATH { get; set; }
  4073. internal PSObject WMIObject { get; set; }
  4074. internal Runspace remoteRunspace;
  4075. internal TraceSource pSCode;
  4076. public byte? Hive { get; set; }
  4077. public String key { get; set; }
  4078. public Boolean? RegistryKeyExists { get; set; }
  4079. public byte? RegistryPathRedirectionMode { get; set; }
  4080. #endregion
  4081. }
  4082. /// <summary>
  4083. /// Source:ROOT\ccm\cimodels
  4084. /// </summary>
  4085. public class CCM_RegistryValue_Setting
  4086. {
  4087. //Constructor
  4088. public CCM_RegistryValue_Setting(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4089. {
  4090. remoteRunspace = RemoteRunspace;
  4091. pSCode = PSCode;
  4092. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4093. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4094. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4095. this.__INSTANCE = true;
  4096. this.WMIObject = WMIObject;
  4097. this.Hive = WMIObject.Properties["Hive"].Value as byte?;
  4098. this.key = WMIObject.Properties["key"].Value as String;
  4099. this.RegistryPathRedirectionMode = WMIObject.Properties["RegistryPathRedirectionMode"].Value as byte?;
  4100. this.RegistryValueExists = WMIObject.Properties["RegistryValueExists"].Value as Boolean?;
  4101. this.ResolvedKey = WMIObject.Properties["ResolvedKey"].Value as String;
  4102. this.ValueName = WMIObject.Properties["ValueName"].Value as String;
  4103. }
  4104. #region Properties
  4105. internal string __CLASS { get; set; }
  4106. internal string __NAMESPACE { get; set; }
  4107. internal bool __INSTANCE { get; set; }
  4108. internal string __RELPATH { get; set; }
  4109. internal PSObject WMIObject { get; set; }
  4110. internal Runspace remoteRunspace;
  4111. internal TraceSource pSCode;
  4112. public byte? Hive { get; set; }
  4113. public String key { get; set; }
  4114. public byte? RegistryPathRedirectionMode { get; set; }
  4115. public Boolean? RegistryValueExists { get; set; }
  4116. public String ResolvedKey { get; set; }
  4117. public String ValueName { get; set; }
  4118. #endregion
  4119. }
  4120. /// <summary>
  4121. /// Source:ROOT\ccm\cimodels
  4122. /// </summary>
  4123. public class CCM_RegistryValue_Setting_Boolean : CCM_RegistryValue_Setting
  4124. {
  4125. //Constructor
  4126. public CCM_RegistryValue_Setting_Boolean(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4127. {
  4128. remoteRunspace = RemoteRunspace;
  4129. pSCode = PSCode;
  4130. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4131. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4132. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4133. this.__INSTANCE = true;
  4134. this.WMIObject = WMIObject;
  4135. this.Value = WMIObject.Properties["Value"].Value as Boolean?;
  4136. }
  4137. #region Properties
  4138. internal string __CLASS { get; set; }
  4139. internal string __NAMESPACE { get; set; }
  4140. internal bool __INSTANCE { get; set; }
  4141. internal string __RELPATH { get; set; }
  4142. internal PSObject WMIObject { get; set; }
  4143. internal Runspace remoteRunspace;
  4144. internal TraceSource pSCode;
  4145. public Boolean? Value { get; set; }
  4146. #endregion
  4147. }
  4148. /// <summary>
  4149. /// Source:ROOT\ccm\cimodels
  4150. /// </summary>
  4151. public class CCM_RegistryValue_Setting_Datetime : CCM_RegistryValue_Setting
  4152. {
  4153. //Constructor
  4154. public CCM_RegistryValue_Setting_Datetime(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4155. {
  4156. remoteRunspace = RemoteRunspace;
  4157. pSCode = PSCode;
  4158. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4159. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4160. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4161. this.__INSTANCE = true;
  4162. this.WMIObject = WMIObject;
  4163. string sValue = WMIObject.Properties["Value"].Value as string;
  4164. if (string.IsNullOrEmpty(sValue))
  4165. this.Value = null;
  4166. else
  4167. this.Value = ManagementDateTimeConverter.ToDateTime(sValue) as DateTime?;
  4168. }
  4169. #region Properties
  4170. internal string __CLASS { get; set; }
  4171. internal string __NAMESPACE { get; set; }
  4172. internal bool __INSTANCE { get; set; }
  4173. internal string __RELPATH { get; set; }
  4174. internal PSObject WMIObject { get; set; }
  4175. internal Runspace remoteRunspace;
  4176. internal TraceSource pSCode;
  4177. public DateTime? Value { get; set; }
  4178. #endregion
  4179. }
  4180. /// <summary>
  4181. /// Source:ROOT\ccm\cimodels
  4182. /// </summary>
  4183. public class CCM_RegistryValue_Setting_Double : CCM_RegistryValue_Setting
  4184. {
  4185. //Constructor
  4186. public CCM_RegistryValue_Setting_Double(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4187. {
  4188. remoteRunspace = RemoteRunspace;
  4189. pSCode = PSCode;
  4190. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4191. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4192. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4193. this.__INSTANCE = true;
  4194. this.WMIObject = WMIObject;
  4195. this.Value = WMIObject.Properties["Value"].Value as Decimal?;
  4196. }
  4197. #region Properties
  4198. internal string __CLASS { get; set; }
  4199. internal string __NAMESPACE { get; set; }
  4200. internal bool __INSTANCE { get; set; }
  4201. internal string __RELPATH { get; set; }
  4202. internal PSObject WMIObject { get; set; }
  4203. internal Runspace remoteRunspace;
  4204. internal TraceSource pSCode;
  4205. public Decimal? Value { get; set; }
  4206. #endregion
  4207. }
  4208. /// <summary>
  4209. /// Source:ROOT\ccm\cimodels
  4210. /// </summary>
  4211. public class CCM_RegistryValue_Setting_Integer : CCM_RegistryValue_Setting
  4212. {
  4213. //Constructor
  4214. public CCM_RegistryValue_Setting_Integer(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4215. {
  4216. remoteRunspace = RemoteRunspace;
  4217. pSCode = PSCode;
  4218. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4219. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4220. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4221. this.__INSTANCE = true;
  4222. this.WMIObject = WMIObject;
  4223. this.Value = WMIObject.Properties["Value"].Value as Int64?;
  4224. }
  4225. #region Properties
  4226. internal string __CLASS { get; set; }
  4227. internal string __NAMESPACE { get; set; }
  4228. internal bool __INSTANCE { get; set; }
  4229. internal string __RELPATH { get; set; }
  4230. internal PSObject WMIObject { get; set; }
  4231. internal Runspace remoteRunspace;
  4232. internal TraceSource pSCode;
  4233. public Int64? Value { get; set; }
  4234. #endregion
  4235. }
  4236. /// <summary>
  4237. /// Source:ROOT\ccm\cimodels
  4238. /// </summary>
  4239. public class CCM_RegistryValue_Setting_String : CCM_RegistryValue_Setting
  4240. {
  4241. //Constructor
  4242. public CCM_RegistryValue_Setting_String(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4243. {
  4244. remoteRunspace = RemoteRunspace;
  4245. pSCode = PSCode;
  4246. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4247. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4248. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4249. this.__INSTANCE = true;
  4250. this.WMIObject = WMIObject;
  4251. this.Value = WMIObject.Properties["Value"].Value as String;
  4252. }
  4253. #region Properties
  4254. internal string __CLASS { get; set; }
  4255. internal string __NAMESPACE { get; set; }
  4256. internal bool __INSTANCE { get; set; }
  4257. internal string __RELPATH { get; set; }
  4258. internal PSObject WMIObject { get; set; }
  4259. internal Runspace remoteRunspace;
  4260. internal TraceSource pSCode;
  4261. public String Value { get; set; }
  4262. #endregion
  4263. }
  4264. /// <summary>
  4265. /// Source:ROOT\ccm\cimodels
  4266. /// </summary>
  4267. public class CCM_RegistryValue_Setting_StringArray : CCM_RegistryValue_Setting
  4268. {
  4269. //Constructor
  4270. public CCM_RegistryValue_Setting_StringArray(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4271. {
  4272. remoteRunspace = RemoteRunspace;
  4273. pSCode = PSCode;
  4274. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4275. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4276. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4277. this.__INSTANCE = true;
  4278. this.WMIObject = WMIObject;
  4279. this.Value = WMIObject.Properties["Value"].Value as String[];
  4280. }
  4281. #region Properties
  4282. internal string __CLASS { get; set; }
  4283. internal string __NAMESPACE { get; set; }
  4284. internal bool __INSTANCE { get; set; }
  4285. internal string __RELPATH { get; set; }
  4286. internal PSObject WMIObject { get; set; }
  4287. internal Runspace remoteRunspace;
  4288. internal TraceSource pSCode;
  4289. public String[] Value { get; set; }
  4290. #endregion
  4291. }
  4292. /// <summary>
  4293. /// Source:ROOT\ccm\cimodels
  4294. /// </summary>
  4295. public class CCM_RegistryValue_Setting_Synclet
  4296. {
  4297. //Constructor
  4298. public CCM_RegistryValue_Setting_Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4299. {
  4300. remoteRunspace = RemoteRunspace;
  4301. pSCode = PSCode;
  4302. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4303. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4304. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4305. this.__INSTANCE = true;
  4306. this.WMIObject = WMIObject;
  4307. this.CreateMissingPath = WMIObject.Properties["CreateMissingPath"].Value as Boolean?;
  4308. this.Hive = WMIObject.Properties["Hive"].Value as byte?;
  4309. this.key = WMIObject.Properties["key"].Value as String;
  4310. this.RegistryDataType = WMIObject.Properties["RegistryDataType"].Value as byte?;
  4311. this.RegistryPathRedirectionMode = WMIObject.Properties["RegistryPathRedirectionMode"].Value as byte?;
  4312. this.ValueName = WMIObject.Properties["ValueName"].Value as String;
  4313. }
  4314. #region Properties
  4315. internal string __CLASS { get; set; }
  4316. internal string __NAMESPACE { get; set; }
  4317. internal bool __INSTANCE { get; set; }
  4318. internal string __RELPATH { get; set; }
  4319. internal PSObject WMIObject { get; set; }
  4320. internal Runspace remoteRunspace;
  4321. internal TraceSource pSCode;
  4322. public Boolean? CreateMissingPath { get; set; }
  4323. public byte? Hive { get; set; }
  4324. public String key { get; set; }
  4325. public byte? RegistryDataType { get; set; }
  4326. public byte? RegistryPathRedirectionMode { get; set; }
  4327. public String ValueName { get; set; }
  4328. #endregion
  4329. }
  4330. /// <summary>
  4331. /// Source:ROOT\ccm\cimodels
  4332. /// </summary>
  4333. public class CCM_RemotePCConnect_Settings
  4334. {
  4335. //Constructor
  4336. public CCM_RemotePCConnect_Settings(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4337. {
  4338. remoteRunspace = RemoteRunspace;
  4339. pSCode = PSCode;
  4340. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4341. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4342. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4343. this.__INSTANCE = true;
  4344. this.WMIObject = WMIObject;
  4345. this.EnableNLA = WMIObject.Properties["EnableNLA"].Value as Boolean?;
  4346. this.EnablePrimaryUsers = WMIObject.Properties["EnablePrimaryUsers"].Value as Boolean?;
  4347. this.EnableTSConnection = WMIObject.Properties["EnableTSConnection"].Value as Boolean?;
  4348. this.EnableTSFirewallRule = WMIObject.Properties["EnableTSFirewallRule"].Value as Boolean?;
  4349. }
  4350. #region Properties
  4351. internal string __CLASS { get; set; }
  4352. internal string __NAMESPACE { get; set; }
  4353. internal bool __INSTANCE { get; set; }
  4354. internal string __RELPATH { get; set; }
  4355. internal PSObject WMIObject { get; set; }
  4356. internal Runspace remoteRunspace;
  4357. internal TraceSource pSCode;
  4358. public Boolean? EnableNLA { get; set; }
  4359. public Boolean? EnablePrimaryUsers { get; set; }
  4360. public Boolean? EnableTSConnection { get; set; }
  4361. public Boolean? EnableTSFirewallRule { get; set; }
  4362. #endregion
  4363. }
  4364. /// <summary>
  4365. /// Source:ROOT\ccm\cimodels
  4366. /// </summary>
  4367. public class CCM_Script_Setting_Boolean : CCM_Setting_Boolean
  4368. {
  4369. //Constructor
  4370. public CCM_Script_Setting_Boolean(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4371. {
  4372. remoteRunspace = RemoteRunspace;
  4373. pSCode = PSCode;
  4374. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4375. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4376. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4377. this.__INSTANCE = true;
  4378. this.WMIObject = WMIObject;
  4379. }
  4380. #region Properties
  4381. internal string __CLASS { get; set; }
  4382. internal string __NAMESPACE { get; set; }
  4383. internal bool __INSTANCE { get; set; }
  4384. internal string __RELPATH { get; set; }
  4385. internal PSObject WMIObject { get; set; }
  4386. internal Runspace remoteRunspace;
  4387. internal TraceSource pSCode;
  4388. #endregion
  4389. }
  4390. /// <summary>
  4391. /// Source:ROOT\ccm\cimodels
  4392. /// </summary>
  4393. public class CCM_Script_Setting_DateTime : CCM_Setting_DateTime
  4394. {
  4395. //Constructor
  4396. public CCM_Script_Setting_DateTime(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4397. {
  4398. remoteRunspace = RemoteRunspace;
  4399. pSCode = PSCode;
  4400. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4401. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4402. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4403. this.__INSTANCE = true;
  4404. this.WMIObject = WMIObject;
  4405. }
  4406. #region Properties
  4407. internal string __CLASS { get; set; }
  4408. internal string __NAMESPACE { get; set; }
  4409. internal bool __INSTANCE { get; set; }
  4410. internal string __RELPATH { get; set; }
  4411. internal PSObject WMIObject { get; set; }
  4412. internal Runspace remoteRunspace;
  4413. internal TraceSource pSCode;
  4414. #endregion
  4415. }
  4416. /// <summary>
  4417. /// Source:ROOT\ccm\cimodels
  4418. /// </summary>
  4419. public class CCM_Script_Setting_Double : CCM_Setting_Double
  4420. {
  4421. //Constructor
  4422. public CCM_Script_Setting_Double(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4423. {
  4424. remoteRunspace = RemoteRunspace;
  4425. pSCode = PSCode;
  4426. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4427. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4428. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4429. this.__INSTANCE = true;
  4430. this.WMIObject = WMIObject;
  4431. }
  4432. #region Properties
  4433. internal string __CLASS { get; set; }
  4434. internal string __NAMESPACE { get; set; }
  4435. internal bool __INSTANCE { get; set; }
  4436. internal string __RELPATH { get; set; }
  4437. internal PSObject WMIObject { get; set; }
  4438. internal Runspace remoteRunspace;
  4439. internal TraceSource pSCode;
  4440. #endregion
  4441. }
  4442. /// <summary>
  4443. /// Source:ROOT\ccm\cimodels
  4444. /// </summary>
  4445. public class CCM_Script_Setting_Integer : CCM_Setting_Integer
  4446. {
  4447. //Constructor
  4448. public CCM_Script_Setting_Integer(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4449. {
  4450. remoteRunspace = RemoteRunspace;
  4451. pSCode = PSCode;
  4452. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4453. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4454. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4455. this.__INSTANCE = true;
  4456. this.WMIObject = WMIObject;
  4457. }
  4458. #region Properties
  4459. internal string __CLASS { get; set; }
  4460. internal string __NAMESPACE { get; set; }
  4461. internal bool __INSTANCE { get; set; }
  4462. internal string __RELPATH { get; set; }
  4463. internal PSObject WMIObject { get; set; }
  4464. internal Runspace remoteRunspace;
  4465. internal TraceSource pSCode;
  4466. #endregion
  4467. }
  4468. /// <summary>
  4469. /// Source:ROOT\ccm\cimodels
  4470. /// </summary>
  4471. public class CCM_Script_Setting_IntegerArray : CCM_Setting_IntegerArray
  4472. {
  4473. //Constructor
  4474. public CCM_Script_Setting_IntegerArray(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4475. {
  4476. remoteRunspace = RemoteRunspace;
  4477. pSCode = PSCode;
  4478. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4479. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4480. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4481. this.__INSTANCE = true;
  4482. this.WMIObject = WMIObject;
  4483. }
  4484. #region Properties
  4485. internal string __CLASS { get; set; }
  4486. internal string __NAMESPACE { get; set; }
  4487. internal bool __INSTANCE { get; set; }
  4488. internal string __RELPATH { get; set; }
  4489. internal PSObject WMIObject { get; set; }
  4490. internal Runspace remoteRunspace;
  4491. internal TraceSource pSCode;
  4492. #endregion
  4493. }
  4494. /// <summary>
  4495. /// Source:ROOT\ccm\cimodels
  4496. /// </summary>
  4497. public class CCM_Script_Setting_String : CCM_Setting_String
  4498. {
  4499. //Constructor
  4500. public CCM_Script_Setting_String(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4501. {
  4502. remoteRunspace = RemoteRunspace;
  4503. pSCode = PSCode;
  4504. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4505. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4506. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4507. this.__INSTANCE = true;
  4508. this.WMIObject = WMIObject;
  4509. }
  4510. #region Properties
  4511. internal string __CLASS { get; set; }
  4512. internal string __NAMESPACE { get; set; }
  4513. internal bool __INSTANCE { get; set; }
  4514. internal string __RELPATH { get; set; }
  4515. internal PSObject WMIObject { get; set; }
  4516. internal Runspace remoteRunspace;
  4517. internal TraceSource pSCode;
  4518. #endregion
  4519. }
  4520. /// <summary>
  4521. /// Source:ROOT\ccm\cimodels
  4522. /// </summary>
  4523. public class CCM_Script_Setting_StringArray : CCM_Setting_StringArray
  4524. {
  4525. //Constructor
  4526. public CCM_Script_Setting_StringArray(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4527. {
  4528. remoteRunspace = RemoteRunspace;
  4529. pSCode = PSCode;
  4530. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4531. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4532. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4533. this.__INSTANCE = true;
  4534. this.WMIObject = WMIObject;
  4535. }
  4536. #region Properties
  4537. internal string __CLASS { get; set; }
  4538. internal string __NAMESPACE { get; set; }
  4539. internal bool __INSTANCE { get; set; }
  4540. internal string __RELPATH { get; set; }
  4541. internal PSObject WMIObject { get; set; }
  4542. internal Runspace remoteRunspace;
  4543. internal TraceSource pSCode;
  4544. #endregion
  4545. }
  4546. /// <summary>
  4547. /// Source:ROOT\ccm\cimodels
  4548. /// </summary>
  4549. public class CCM_Script_Setting_Synclet
  4550. {
  4551. //Constructor
  4552. public CCM_Script_Setting_Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4553. {
  4554. remoteRunspace = RemoteRunspace;
  4555. pSCode = PSCode;
  4556. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4557. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4558. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4559. this.__INSTANCE = true;
  4560. this.WMIObject = WMIObject;
  4561. this.DataType = WMIObject.Properties["DataType"].Value as byte?;
  4562. this.DiscoveryScript = WMIObject.Properties["DiscoveryScript"].Value as ScriptDefinition;
  4563. this.ExecutionContext = WMIObject.Properties["ExecutionContext"].Value as String;
  4564. this.ID = WMIObject.Properties["ID"].Value as String;
  4565. this.RemediationScript = WMIObject.Properties["RemediationScript"].Value as ScriptDefinition;
  4566. this.Use64BitScriptingHost = WMIObject.Properties["Use64BitScriptingHost"].Value as Boolean?;
  4567. }
  4568. #region Properties
  4569. internal string __CLASS { get; set; }
  4570. internal string __NAMESPACE { get; set; }
  4571. internal bool __INSTANCE { get; set; }
  4572. internal string __RELPATH { get; set; }
  4573. internal PSObject WMIObject { get; set; }
  4574. internal Runspace remoteRunspace;
  4575. internal TraceSource pSCode;
  4576. public byte? DataType { get; set; }
  4577. public ScriptDefinition DiscoveryScript { get; set; }
  4578. public String ExecutionContext { get; set; }
  4579. public String ID { get; set; }
  4580. public ScriptDefinition RemediationScript { get; set; }
  4581. public Boolean? Use64BitScriptingHost { get; set; }
  4582. #endregion
  4583. }
  4584. /// <summary>
  4585. /// Source:ROOT\ccm\cimodels
  4586. /// </summary>
  4587. public class CCM_Setting
  4588. {
  4589. //Constructor
  4590. public CCM_Setting(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4591. {
  4592. remoteRunspace = RemoteRunspace;
  4593. pSCode = PSCode;
  4594. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4595. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4596. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4597. this.__INSTANCE = true;
  4598. this.WMIObject = WMIObject;
  4599. this.ID = WMIObject.Properties["ID"].Value as String;
  4600. }
  4601. #region Properties
  4602. internal string __CLASS { get; set; }
  4603. internal string __NAMESPACE { get; set; }
  4604. internal bool __INSTANCE { get; set; }
  4605. internal string __RELPATH { get; set; }
  4606. internal PSObject WMIObject { get; set; }
  4607. internal Runspace remoteRunspace;
  4608. internal TraceSource pSCode;
  4609. public String ID { get; set; }
  4610. #endregion
  4611. }
  4612. /// <summary>
  4613. /// Source:ROOT\ccm\cimodels
  4614. /// </summary>
  4615. public class CCM_Setting_Boolean : CCM_Setting
  4616. {
  4617. //Constructor
  4618. public CCM_Setting_Boolean(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4619. {
  4620. remoteRunspace = RemoteRunspace;
  4621. pSCode = PSCode;
  4622. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4623. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4624. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4625. this.__INSTANCE = true;
  4626. this.WMIObject = WMIObject;
  4627. this.SettingInstances = WMIObject.Properties["SettingInstances"].Value as CCM_Value_Boolean[];
  4628. }
  4629. #region Properties
  4630. internal string __CLASS { get; set; }
  4631. internal string __NAMESPACE { get; set; }
  4632. internal bool __INSTANCE { get; set; }
  4633. internal string __RELPATH { get; set; }
  4634. internal PSObject WMIObject { get; set; }
  4635. internal Runspace remoteRunspace;
  4636. internal TraceSource pSCode;
  4637. public CCM_Value_Boolean[] SettingInstances { get; set; }
  4638. #endregion
  4639. }
  4640. /// <summary>
  4641. /// Source:ROOT\ccm\cimodels
  4642. /// </summary>
  4643. public class CCM_Setting_BooleanArray : CCM_Setting
  4644. {
  4645. //Constructor
  4646. public CCM_Setting_BooleanArray(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4647. {
  4648. remoteRunspace = RemoteRunspace;
  4649. pSCode = PSCode;
  4650. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4651. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4652. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4653. this.__INSTANCE = true;
  4654. this.WMIObject = WMIObject;
  4655. this.SettingInstances = WMIObject.Properties["SettingInstances"].Value as CCM_Value_BooleanArray[];
  4656. }
  4657. #region Properties
  4658. internal string __CLASS { get; set; }
  4659. internal string __NAMESPACE { get; set; }
  4660. internal bool __INSTANCE { get; set; }
  4661. internal string __RELPATH { get; set; }
  4662. internal PSObject WMIObject { get; set; }
  4663. internal Runspace remoteRunspace;
  4664. internal TraceSource pSCode;
  4665. public CCM_Value_BooleanArray[] SettingInstances { get; set; }
  4666. #endregion
  4667. }
  4668. /// <summary>
  4669. /// Source:ROOT\ccm\cimodels
  4670. /// </summary>
  4671. public class CCM_Setting_DateTime : CCM_Setting
  4672. {
  4673. //Constructor
  4674. public CCM_Setting_DateTime(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4675. {
  4676. remoteRunspace = RemoteRunspace;
  4677. pSCode = PSCode;
  4678. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4679. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4680. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4681. this.__INSTANCE = true;
  4682. this.WMIObject = WMIObject;
  4683. this.SettingInstances = WMIObject.Properties["SettingInstances"].Value as CCM_Value_DateTime[];
  4684. }
  4685. #region Properties
  4686. internal string __CLASS { get; set; }
  4687. internal string __NAMESPACE { get; set; }
  4688. internal bool __INSTANCE { get; set; }
  4689. internal string __RELPATH { get; set; }
  4690. internal PSObject WMIObject { get; set; }
  4691. internal Runspace remoteRunspace;
  4692. internal TraceSource pSCode;
  4693. public CCM_Value_DateTime[] SettingInstances { get; set; }
  4694. #endregion
  4695. }
  4696. /// <summary>
  4697. /// Source:ROOT\ccm\cimodels
  4698. /// </summary>
  4699. public class CCM_Setting_DatetimeArray : CCM_Setting
  4700. {
  4701. //Constructor
  4702. public CCM_Setting_DatetimeArray(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4703. {
  4704. remoteRunspace = RemoteRunspace;
  4705. pSCode = PSCode;
  4706. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4707. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4708. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4709. this.__INSTANCE = true;
  4710. this.WMIObject = WMIObject;
  4711. this.SettingInstances = WMIObject.Properties["SettingInstances"].Value as CCM_Value_DatetimeArray[];
  4712. }
  4713. #region Properties
  4714. internal string __CLASS { get; set; }
  4715. internal string __NAMESPACE { get; set; }
  4716. internal bool __INSTANCE { get; set; }
  4717. internal string __RELPATH { get; set; }
  4718. internal PSObject WMIObject { get; set; }
  4719. internal Runspace remoteRunspace;
  4720. internal TraceSource pSCode;
  4721. public CCM_Value_DatetimeArray[] SettingInstances { get; set; }
  4722. #endregion
  4723. }
  4724. /// <summary>
  4725. /// Source:ROOT\ccm\cimodels
  4726. /// </summary>
  4727. public class CCM_Setting_Double : CCM_Setting
  4728. {
  4729. //Constructor
  4730. public CCM_Setting_Double(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4731. {
  4732. remoteRunspace = RemoteRunspace;
  4733. pSCode = PSCode;
  4734. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4735. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4736. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4737. this.__INSTANCE = true;
  4738. this.WMIObject = WMIObject;
  4739. this.SettingInstances = WMIObject.Properties["SettingInstances"].Value as CCM_Value_Double[];
  4740. }
  4741. #region Properties
  4742. internal string __CLASS { get; set; }
  4743. internal string __NAMESPACE { get; set; }
  4744. internal bool __INSTANCE { get; set; }
  4745. internal string __RELPATH { get; set; }
  4746. internal PSObject WMIObject { get; set; }
  4747. internal Runspace remoteRunspace;
  4748. internal TraceSource pSCode;
  4749. public CCM_Value_Double[] SettingInstances { get; set; }
  4750. #endregion
  4751. }
  4752. /// <summary>
  4753. /// Source:ROOT\ccm\cimodels
  4754. /// </summary>
  4755. public class CCM_Setting_DoubleArray : CCM_Setting
  4756. {
  4757. //Constructor
  4758. public CCM_Setting_DoubleArray(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4759. {
  4760. remoteRunspace = RemoteRunspace;
  4761. pSCode = PSCode;
  4762. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4763. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4764. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4765. this.__INSTANCE = true;
  4766. this.WMIObject = WMIObject;
  4767. this.SettingInstances = WMIObject.Properties["SettingInstances"].Value as CCM_Value_DoubleArray[];
  4768. }
  4769. #region Properties
  4770. internal string __CLASS { get; set; }
  4771. internal string __NAMESPACE { get; set; }
  4772. internal bool __INSTANCE { get; set; }
  4773. internal string __RELPATH { get; set; }
  4774. internal PSObject WMIObject { get; set; }
  4775. internal Runspace remoteRunspace;
  4776. internal TraceSource pSCode;
  4777. public CCM_Value_DoubleArray[] SettingInstances { get; set; }
  4778. #endregion
  4779. }
  4780. /// <summary>
  4781. /// Source:ROOT\ccm\cimodels
  4782. /// </summary>
  4783. public class CCM_Setting_Integer : CCM_Setting
  4784. {
  4785. //Constructor
  4786. public CCM_Setting_Integer(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4787. {
  4788. remoteRunspace = RemoteRunspace;
  4789. pSCode = PSCode;
  4790. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4791. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4792. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4793. this.__INSTANCE = true;
  4794. this.WMIObject = WMIObject;
  4795. this.SettingInstances = WMIObject.Properties["SettingInstances"].Value as CCM_Value_Integer[];
  4796. }
  4797. #region Properties
  4798. internal string __CLASS { get; set; }
  4799. internal string __NAMESPACE { get; set; }
  4800. internal bool __INSTANCE { get; set; }
  4801. internal string __RELPATH { get; set; }
  4802. internal PSObject WMIObject { get; set; }
  4803. internal Runspace remoteRunspace;
  4804. internal TraceSource pSCode;
  4805. public CCM_Value_Integer[] SettingInstances { get; set; }
  4806. #endregion
  4807. }
  4808. /// <summary>
  4809. /// Source:ROOT\ccm\cimodels
  4810. /// </summary>
  4811. public class CCM_Setting_IntegerArray : CCM_Setting
  4812. {
  4813. //Constructor
  4814. public CCM_Setting_IntegerArray(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4815. {
  4816. remoteRunspace = RemoteRunspace;
  4817. pSCode = PSCode;
  4818. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4819. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4820. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4821. this.__INSTANCE = true;
  4822. this.WMIObject = WMIObject;
  4823. this.SettingInstances = WMIObject.Properties["SettingInstances"].Value as CCM_Value_IntegerArray[];
  4824. }
  4825. #region Properties
  4826. internal string __CLASS { get; set; }
  4827. internal string __NAMESPACE { get; set; }
  4828. internal bool __INSTANCE { get; set; }
  4829. internal string __RELPATH { get; set; }
  4830. internal PSObject WMIObject { get; set; }
  4831. internal Runspace remoteRunspace;
  4832. internal TraceSource pSCode;
  4833. public CCM_Value_IntegerArray[] SettingInstances { get; set; }
  4834. #endregion
  4835. }
  4836. /// <summary>
  4837. /// Source:ROOT\ccm\cimodels
  4838. /// </summary>
  4839. public class CCM_Setting_String : CCM_Setting
  4840. {
  4841. //Constructor
  4842. public CCM_Setting_String(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4843. {
  4844. remoteRunspace = RemoteRunspace;
  4845. pSCode = PSCode;
  4846. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4847. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4848. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4849. this.__INSTANCE = true;
  4850. this.WMIObject = WMIObject;
  4851. this.SettingInstances = WMIObject.Properties["SettingInstances"].Value as CCM_Value_String[];
  4852. }
  4853. #region Properties
  4854. internal string __CLASS { get; set; }
  4855. internal string __NAMESPACE { get; set; }
  4856. internal bool __INSTANCE { get; set; }
  4857. internal string __RELPATH { get; set; }
  4858. internal PSObject WMIObject { get; set; }
  4859. internal Runspace remoteRunspace;
  4860. internal TraceSource pSCode;
  4861. public CCM_Value_String[] SettingInstances { get; set; }
  4862. #endregion
  4863. }
  4864. /// <summary>
  4865. /// Source:ROOT\ccm\cimodels
  4866. /// </summary>
  4867. public class CCM_Setting_StringArray : CCM_Setting
  4868. {
  4869. //Constructor
  4870. public CCM_Setting_StringArray(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4871. {
  4872. remoteRunspace = RemoteRunspace;
  4873. pSCode = PSCode;
  4874. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4875. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4876. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4877. this.__INSTANCE = true;
  4878. this.WMIObject = WMIObject;
  4879. this.SettingInstances = WMIObject.Properties["SettingInstances"].Value as CCM_Value_StringArray[];
  4880. }
  4881. #region Properties
  4882. internal string __CLASS { get; set; }
  4883. internal string __NAMESPACE { get; set; }
  4884. internal bool __INSTANCE { get; set; }
  4885. internal string __RELPATH { get; set; }
  4886. internal PSObject WMIObject { get; set; }
  4887. internal Runspace remoteRunspace;
  4888. internal TraceSource pSCode;
  4889. public CCM_Value_StringArray[] SettingInstances { get; set; }
  4890. #endregion
  4891. }
  4892. /// <summary>
  4893. /// Source:ROOT\ccm\cimodels
  4894. /// </summary>
  4895. public class CCM_SqlQuery_Setting_Boolean : CCM_Setting_Boolean
  4896. {
  4897. //Constructor
  4898. public CCM_SqlQuery_Setting_Boolean(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4899. {
  4900. remoteRunspace = RemoteRunspace;
  4901. pSCode = PSCode;
  4902. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4903. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4904. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4905. this.__INSTANCE = true;
  4906. this.WMIObject = WMIObject;
  4907. }
  4908. #region Properties
  4909. internal string __CLASS { get; set; }
  4910. internal string __NAMESPACE { get; set; }
  4911. internal bool __INSTANCE { get; set; }
  4912. internal string __RELPATH { get; set; }
  4913. internal PSObject WMIObject { get; set; }
  4914. internal Runspace remoteRunspace;
  4915. internal TraceSource pSCode;
  4916. #endregion
  4917. }
  4918. /// <summary>
  4919. /// Source:ROOT\ccm\cimodels
  4920. /// </summary>
  4921. public class CCM_SqlQuery_Setting_DateTime : CCM_Setting_DateTime
  4922. {
  4923. //Constructor
  4924. public CCM_SqlQuery_Setting_DateTime(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4925. {
  4926. remoteRunspace = RemoteRunspace;
  4927. pSCode = PSCode;
  4928. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4929. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4930. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4931. this.__INSTANCE = true;
  4932. this.WMIObject = WMIObject;
  4933. }
  4934. #region Properties
  4935. internal string __CLASS { get; set; }
  4936. internal string __NAMESPACE { get; set; }
  4937. internal bool __INSTANCE { get; set; }
  4938. internal string __RELPATH { get; set; }
  4939. internal PSObject WMIObject { get; set; }
  4940. internal Runspace remoteRunspace;
  4941. internal TraceSource pSCode;
  4942. #endregion
  4943. }
  4944. /// <summary>
  4945. /// Source:ROOT\ccm\cimodels
  4946. /// </summary>
  4947. public class CCM_SqlQuery_Setting_Double : CCM_Setting_Double
  4948. {
  4949. //Constructor
  4950. public CCM_SqlQuery_Setting_Double(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4951. {
  4952. remoteRunspace = RemoteRunspace;
  4953. pSCode = PSCode;
  4954. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4955. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4956. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4957. this.__INSTANCE = true;
  4958. this.WMIObject = WMIObject;
  4959. }
  4960. #region Properties
  4961. internal string __CLASS { get; set; }
  4962. internal string __NAMESPACE { get; set; }
  4963. internal bool __INSTANCE { get; set; }
  4964. internal string __RELPATH { get; set; }
  4965. internal PSObject WMIObject { get; set; }
  4966. internal Runspace remoteRunspace;
  4967. internal TraceSource pSCode;
  4968. #endregion
  4969. }
  4970. /// <summary>
  4971. /// Source:ROOT\ccm\cimodels
  4972. /// </summary>
  4973. public class CCM_SqlQuery_Setting_Integer : CCM_Setting_Integer
  4974. {
  4975. //Constructor
  4976. public CCM_SqlQuery_Setting_Integer(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  4977. {
  4978. remoteRunspace = RemoteRunspace;
  4979. pSCode = PSCode;
  4980. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  4981. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  4982. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  4983. this.__INSTANCE = true;
  4984. this.WMIObject = WMIObject;
  4985. }
  4986. #region Properties
  4987. internal string __CLASS { get; set; }
  4988. internal string __NAMESPACE { get; set; }
  4989. internal bool __INSTANCE { get; set; }
  4990. internal string __RELPATH { get; set; }
  4991. internal PSObject WMIObject { get; set; }
  4992. internal Runspace remoteRunspace;
  4993. internal TraceSource pSCode;
  4994. #endregion
  4995. }
  4996. /// <summary>
  4997. /// Source:ROOT\ccm\cimodels
  4998. /// </summary>
  4999. public class CCM_SqlQuery_Setting_String : CCM_Setting_String
  5000. {
  5001. //Constructor
  5002. public CCM_SqlQuery_Setting_String(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  5003. {
  5004. remoteRunspace = RemoteRunspace;
  5005. pSCode = PSCode;
  5006. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  5007. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  5008. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  5009. this.__INSTANCE = true;
  5010. this.WMIObject = WMIObject;
  5011. }
  5012. #region Properties
  5013. internal string __CLASS { get; set; }
  5014. internal string __NAMESPACE { get; set; }
  5015. internal bool __INSTANCE { get; set; }
  5016. internal string __RELPATH { get; set; }
  5017. internal PSObject WMIObject { get; set; }
  5018. internal Runspace remoteRunspace;
  5019. internal TraceSource pSCode;
  5020. #endregion
  5021. }
  5022. /// <summary>
  5023. /// Source:ROOT\ccm\cimodels
  5024. /// </summary>
  5025. public class CCM_SqlQuery_Setting_Synclet
  5026. {
  5027. //Constructor
  5028. public CCM_SqlQuery_Setting_Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  5029. {
  5030. remoteRunspace = RemoteRunspace;
  5031. pSCode = PSCode;
  5032. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  5033. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  5034. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  5035. this.__INSTANCE = true;
  5036. this.WMIObject = WMIObject;
  5037. this.ColumnName = WMIObject.Properties["ColumnName"].Value as String;
  5038. this.DatabaseName = WMIObject.Properties["DatabaseName"].Value as String;
  5039. this.ID = WMIObject.Properties["ID"].Value as String;
  5040. this.InstanceName = WMIObject.Properties["InstanceName"].Value as String;
  5041. this.Query = WMIObject.Properties["Query"].Value as String;
  5042. }
  5043. #region Properties
  5044. internal string __CLASS { get; set; }
  5045. internal string __NAMESPACE { get; set; }
  5046. internal bool __INSTANCE { get; set; }
  5047. internal string __RELPATH { get; set; }
  5048. internal PSObject WMIObject { get; set; }
  5049. internal Runspace remoteRunspace;
  5050. internal TraceSource pSCode;
  5051. public String ColumnName { get; set; }
  5052. public String DatabaseName { get; set; }
  5053. public String ID { get; set; }
  5054. public String InstanceName { get; set; }
  5055. public String Query { get; set; }
  5056. #endregion
  5057. }
  5058. /// <summary>
  5059. /// Source:ROOT\ccm\cimodels
  5060. /// </summary>
  5061. public class CCM_SUM_Setting : CCM_Setting
  5062. {
  5063. //Constructor
  5064. public CCM_SUM_Setting(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  5065. {
  5066. remoteRunspace = RemoteRunspace;
  5067. pSCode = PSCode;
  5068. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  5069. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  5070. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  5071. this.__INSTANCE = true;
  5072. this.WMIObject = WMIObject;
  5073. this.IsApplicable = WMIObject.Properties["IsApplicable"].Value as Boolean?;
  5074. this.IsInstalled = WMIObject.Properties["IsInstalled"].Value as Boolean?;
  5075. }
  5076. #region Properties
  5077. internal string __CLASS { get; set; }
  5078. internal string __NAMESPACE { get; set; }
  5079. internal bool __INSTANCE { get; set; }
  5080. internal string __RELPATH { get; set; }
  5081. internal PSObject WMIObject { get; set; }
  5082. internal Runspace remoteRunspace;
  5083. internal TraceSource pSCode;
  5084. public Boolean? IsApplicable { get; set; }
  5085. public Boolean? IsInstalled { get; set; }
  5086. #endregion
  5087. }
  5088. /// <summary>
  5089. /// Source:ROOT\ccm\cimodels
  5090. /// </summary>
  5091. public class CCM_SUM_Setting_Synclet
  5092. {
  5093. //Constructor
  5094. public CCM_SUM_Setting_Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  5095. {
  5096. remoteRunspace = RemoteRunspace;
  5097. pSCode = PSCode;
  5098. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  5099. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  5100. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  5101. this.__INSTANCE = true;
  5102. this.WMIObject = WMIObject;
  5103. this.ID = WMIObject.Properties["ID"].Value as String;
  5104. this.UpdateID = WMIObject.Properties["UpdateID"].Value as String;
  5105. this.UpdateSourceID = WMIObject.Properties["UpdateSourceID"].Value as String;
  5106. this.UpdateSourceVersion = WMIObject.Properties["UpdateSourceVersion"].Value as String;
  5107. }
  5108. #region Properties
  5109. internal string __CLASS { get; set; }
  5110. internal string __NAMESPACE { get; set; }
  5111. internal bool __INSTANCE { get; set; }
  5112. internal string __RELPATH { get; set; }
  5113. internal PSObject WMIObject { get; set; }
  5114. internal Runspace remoteRunspace;
  5115. internal TraceSource pSCode;
  5116. public String ID { get; set; }
  5117. public String UpdateID { get; set; }
  5118. public String UpdateSourceID { get; set; }
  5119. public String UpdateSourceVersion { get; set; }
  5120. #endregion
  5121. }
  5122. /// <summary>
  5123. /// Source:ROOT\ccm\cimodels
  5124. /// </summary>
  5125. public class CCM_Value_Boolean
  5126. {
  5127. //Constructor
  5128. public CCM_Value_Boolean(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  5129. {
  5130. remoteRunspace = RemoteRunspace;
  5131. pSCode = PSCode;
  5132. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  5133. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  5134. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  5135. this.__INSTANCE = true;
  5136. this.WMIObject = WMIObject;
  5137. this.InstancePath = WMIObject.Properties["InstancePath"].Value as String;
  5138. this.Value = WMIObject.Properties["Value"].Value as Boolean?;
  5139. }
  5140. #region Properties
  5141. internal string __CLASS { get; set; }
  5142. internal string __NAMESPACE { get; set; }
  5143. internal bool __INSTANCE { get; set; }
  5144. internal string __RELPATH { get; set; }
  5145. internal PSObject WMIObject { get; set; }
  5146. internal Runspace remoteRunspace;
  5147. internal TraceSource pSCode;
  5148. public String InstancePath { get; set; }
  5149. public Boolean? Value { get; set; }
  5150. #endregion
  5151. }
  5152. /// <summary>
  5153. /// Source:ROOT\ccm\cimodels
  5154. /// </summary>
  5155. public class CCM_Value_DateTime
  5156. {
  5157. //Constructor
  5158. public CCM_Value_DateTime(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  5159. {
  5160. remoteRunspace = RemoteRunspace;
  5161. pSCode = PSCode;
  5162. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  5163. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  5164. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  5165. this.__INSTANCE = true;
  5166. this.WMIObject = WMIObject;
  5167. this.InstancePath = WMIObject.Properties["InstancePath"].Value as String;
  5168. string sValue = WMIObject.Properties["Value"].Value as string;
  5169. if (string.IsNullOrEmpty(sValue))
  5170. this.Value = null;
  5171. else
  5172. this.Value = ManagementDateTimeConverter.ToDateTime(sValue) as DateTime?;
  5173. }
  5174. #region Properties
  5175. internal string __CLASS { get; set; }
  5176. internal string __NAMESPACE { get; set; }
  5177. internal bool __INSTANCE { get; set; }
  5178. internal string __RELPATH { get; set; }
  5179. internal PSObject WMIObject { get; set; }
  5180. internal Runspace remoteRunspace;
  5181. internal TraceSource pSCode;
  5182. public String InstancePath { get; set; }
  5183. public DateTime? Value { get; set; }
  5184. #endregion
  5185. }
  5186. /// <summary>
  5187. /// Source:ROOT\ccm\cimodels
  5188. /// </summary>
  5189. public class CCM_Value_Double
  5190. {
  5191. //Constructor
  5192. public CCM_Value_Double(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  5193. {
  5194. remoteRunspace = RemoteRunspace;
  5195. pSCode = PSCode;
  5196. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  5197. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  5198. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  5199. this.__INSTANCE = true;
  5200. this.WMIObject = WMIObject;
  5201. this.InstancePath = WMIObject.Properties["InstancePath"].Value as String;
  5202. this.Value = WMIObject.Properties["Value"].Value as Decimal?;
  5203. }
  5204. #region Properties
  5205. internal string __CLASS { get; set; }
  5206. internal string __NAMESPACE { get; set; }
  5207. internal bool __INSTANCE { get; set; }
  5208. internal string __RELPATH { get; set; }
  5209. internal PSObject WMIObject { get; set; }
  5210. internal Runspace remoteRunspace;
  5211. internal TraceSource pSCode;
  5212. public String InstancePath { get; set; }
  5213. public Decimal? Value { get; set; }
  5214. #endregion
  5215. }
  5216. /// <summary>
  5217. /// Source:ROOT\ccm\cimodels
  5218. /// </summary>
  5219. public class CCM_Value_Integer
  5220. {
  5221. //Constructor
  5222. public CCM_Value_Integer(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  5223. {
  5224. remoteRunspace = RemoteRunspace;
  5225. pSCode = PSCode;
  5226. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  5227. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  5228. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  5229. this.__INSTANCE = true;
  5230. this.WMIObject = WMIObject;
  5231. this.InstancePath = WMIObject.Properties["InstancePath"].Value as String;
  5232. this.Value = WMIObject.Properties["Value"].Value as Int64?;
  5233. }
  5234. #region Properties
  5235. internal string __CLASS { get; set; }
  5236. internal string __NAMESPACE { get; set; }
  5237. internal bool __INSTANCE { get; set; }
  5238. internal string __RELPATH { get; set; }
  5239. internal PSObject WMIObject { get; set; }
  5240. internal Runspace remoteRunspace;
  5241. internal TraceSource pSCode;
  5242. public String InstancePath { get; set; }
  5243. public Int64? Value { get; set; }
  5244. #endregion
  5245. }
  5246. /// <summary>
  5247. /// Source:ROOT\ccm\cimodels
  5248. /// </summary>
  5249. public class CCM_Value_IntegerArray
  5250. {
  5251. //Constructor
  5252. public CCM_Value_IntegerArray(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  5253. {
  5254. remoteRunspace = RemoteRunspace;
  5255. pSCode = PSCode;
  5256. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  5257. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  5258. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  5259. this.__INSTANCE = true;
  5260. this.WMIObject = WMIObject;
  5261. this.InstancePath = WMIObject.Properties["InstancePath"].Value as String;
  5262. this.Value = WMIObject.Properties["Value"].Value as Int64?[];
  5263. }
  5264. #region Properties
  5265. internal string __CLASS { get; set; }
  5266. internal string __NAMESPACE { get; set; }
  5267. internal bool __INSTANCE { get; set; }
  5268. internal string __RELPATH { get; set; }
  5269. internal PSObject WMIObject { get; set; }
  5270. internal Runspace remoteRunspace;
  5271. internal TraceSource pSCode;
  5272. public String InstancePath { get; set; }
  5273. public Int64?[] Value { get; set; }
  5274. #endregion
  5275. }
  5276. /// <summary>
  5277. /// Source:ROOT\ccm\cimodels
  5278. /// </summary>
  5279. public class CCM_Value_String
  5280. {
  5281. //Constructor
  5282. public CCM_Value_String(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  5283. {
  5284. remoteRunspace = RemoteRunspace;
  5285. pSCode = PSCode;
  5286. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  5287. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  5288. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  5289. this.__INSTANCE = true;
  5290. this.WMIObject = WMIObject;
  5291. this.InstancePath = WMIObject.Properties["InstancePath"].Value as String;
  5292. this.Value = WMIObject.Properties["Value"].Value as String;
  5293. }
  5294. #region Properties
  5295. internal string __CLASS { get; set; }
  5296. internal string __NAMESPACE { get; set; }
  5297. internal bool __INSTANCE { get; set; }
  5298. internal string __RELPATH { get; set; }
  5299. internal PSObject WMIObject { get; set; }
  5300. internal Runspace remoteRunspace;
  5301. internal TraceSource pSCode;
  5302. public String InstancePath { get; set; }
  5303. public String Value { get; set; }
  5304. #endregion
  5305. }
  5306. /// <summary>
  5307. /// Source:ROOT\ccm\cimodels
  5308. /// </summary>
  5309. public class CCM_Value_StringArray
  5310. {
  5311. //Constructor
  5312. public CCM_Value_StringArray(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  5313. {
  5314. remoteRunspace = RemoteRunspace;
  5315. pSCode = PSCode;
  5316. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  5317. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  5318. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  5319. this.__INSTANCE = true;
  5320. this.WMIObject = WMIObject;
  5321. this.InstancePath = WMIObject.Properties["InstancePath"].Value as String;
  5322. this.Value = WMIObject.Properties["Value"].Value as String[];
  5323. }
  5324. #region Properties
  5325. internal string __CLASS { get; set; }
  5326. internal string __NAMESPACE { get; set; }
  5327. internal bool __INSTANCE { get; set; }
  5328. internal string __RELPATH { get; set; }
  5329. internal PSObject WMIObject { get; set; }
  5330. internal Runspace remoteRunspace;
  5331. internal TraceSource pSCode;
  5332. public String InstancePath { get; set; }
  5333. public String[] Value { get; set; }
  5334. #endregion
  5335. }
  5336. /// <summary>
  5337. /// Source:ROOT\ccm\cimodels
  5338. /// </summary>
  5339. public class CCM_VirtualEnvironment
  5340. {
  5341. //Constructor
  5342. public CCM_VirtualEnvironment(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  5343. {
  5344. remoteRunspace = RemoteRunspace;
  5345. pSCode = PSCode;
  5346. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  5347. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  5348. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  5349. this.__INSTANCE = true;
  5350. this.WMIObject = WMIObject;
  5351. this.Packages = WMIObject.Properties["Packages"].Value as String;
  5352. this.Revision = WMIObject.Properties["Revision"].Value as UInt32?;
  5353. this.VirtualEnvironmentId = WMIObject.Properties["VirtualEnvironmentId"].Value as String;
  5354. }
  5355. #region Properties
  5356. internal string __CLASS { get; set; }
  5357. internal string __NAMESPACE { get; set; }
  5358. internal bool __INSTANCE { get; set; }
  5359. internal string __RELPATH { get; set; }
  5360. internal PSObject WMIObject { get; set; }
  5361. internal Runspace remoteRunspace;
  5362. internal TraceSource pSCode;
  5363. public String Packages { get; set; }
  5364. public UInt32? Revision { get; set; }
  5365. public String VirtualEnvironmentId { get; set; }
  5366. #endregion
  5367. #region Methods
  5368. public UInt32 EnforceVirtualEnvironment(String ActionType, String DisplayName, String Packages, UInt32 Revision, UInt32 SessionId, String UserSid, String VirtualEnvironmentId)
  5369. {
  5370. return 0;
  5371. }
  5372. public UInt32 RemovePackageFromConnectionGroups(String PackageId, UInt32 SessionId, String UserSid, String VersionId)
  5373. {
  5374. return 0;
  5375. }
  5376. #endregion
  5377. }
  5378. /// <summary>
  5379. /// Source:ROOT\ccm\cimodels
  5380. /// </summary>
  5381. public class CCM_VirtualEnvironmentSynclet : Synclet
  5382. {
  5383. //Constructor
  5384. public CCM_VirtualEnvironmentSynclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  5385. {
  5386. remoteRunspace = RemoteRunspace;
  5387. pSCode = PSCode;
  5388. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  5389. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  5390. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  5391. this.__INSTANCE = true;
  5392. this.WMIObject = WMIObject;
  5393. this.Revision = WMIObject.Properties["Revision"].Value as UInt32?;
  5394. this.VirtualEnvironmentId = WMIObject.Properties["VirtualEnvironmentId"].Value as String;
  5395. this.VirtualEnvironmentXml = WMIObject.Properties["VirtualEnvironmentXml"].Value as String;
  5396. }
  5397. #region Properties
  5398. internal string __CLASS { get; set; }
  5399. internal string __NAMESPACE { get; set; }
  5400. internal bool __INSTANCE { get; set; }
  5401. internal string __RELPATH { get; set; }
  5402. internal PSObject WMIObject { get; set; }
  5403. internal Runspace remoteRunspace;
  5404. internal TraceSource pSCode;
  5405. public UInt32? Revision { get; set; }
  5406. public String VirtualEnvironmentId { get; set; }
  5407. public String VirtualEnvironmentXml { get; set; }
  5408. #endregion
  5409. }
  5410. /// <summary>
  5411. /// Source:ROOT\ccm\cimodels
  5412. /// </summary>
  5413. public class CCM_VpnConnection
  5414. {
  5415. //Constructor
  5416. public CCM_VpnConnection(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  5417. {
  5418. remoteRunspace = RemoteRunspace;
  5419. pSCode = PSCode;
  5420. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  5421. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  5422. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  5423. this.__INSTANCE = true;
  5424. this.WMIObject = WMIObject;
  5425. this.AllUserConnection = WMIObject.Properties["AllUserConnection"].Value as Boolean?;
  5426. this.ApplicationID = WMIObject.Properties["ApplicationID"].Value as String[];
  5427. this.AuthenticationMethod = WMIObject.Properties["AuthenticationMethod"].Value as String[];
  5428. this.CustomConfiguration = WMIObject.Properties["CustomConfiguration"].Value as String;
  5429. this.DnsConfig_DnsIPAddress = WMIObject.Properties["DnsConfig_DnsIPAddress"].Value as String[];
  5430. this.DnsConfig_DnsSuffix = WMIObject.Properties["DnsConfig_DnsSuffix"].Value as String[];
  5431. this.DnsSuffix = WMIObject.Properties["DnsSuffix"].Value as String;
  5432. this.DnsSuffixSearchList = WMIObject.Properties["DnsSuffixSearchList"].Value as String[];
  5433. this.EapConfigXmlStream = WMIObject.Properties["EapConfigXmlStream"].Value as String;
  5434. this.EncryptionLevel = WMIObject.Properties["EncryptionLevel"].Value as String;
  5435. this.IdleDisconnectSeconds = WMIObject.Properties["IdleDisconnectSeconds"].Value as UInt32?;
  5436. this.L2tpPsk = WMIObject.Properties["L2tpPsk"].Value as String;
  5437. this.MachineCertificateEKUFilter = WMIObject.Properties["MachineCertificateEKUFilter"].Value as String[];
  5438. this.MachineCertificateIssuerFilter = WMIObject.Properties["MachineCertificateIssuerFilter"].Value as String;
  5439. this.Name = WMIObject.Properties["Name"].Value as String;
  5440. this.PlugInApplicationID = WMIObject.Properties["PlugInApplicationID"].Value as String;
  5441. this.ProfileType = WMIObject.Properties["ProfileType"].Value as String;
  5442. this.ProvisioningAuthority = WMIObject.Properties["ProvisioningAuthority"].Value as String;
  5443. this.Proxy_AutoConfigurationScript = WMIObject.Properties["Proxy_AutoConfigurationScript"].Value as String;
  5444. this.Proxy_AutoDetect = WMIObject.Properties["Proxy_AutoDetect"].Value as Boolean?;
  5445. this.Proxy_BypassProxyForLocal = WMIObject.Properties["Proxy_BypassProxyForLocal"].Value as Boolean?;
  5446. this.Proxy_ExceptionPrefix = WMIObject.Properties["Proxy_ExceptionPrefix"].Value as String[];
  5447. this.Proxy_ProxyServer = WMIObject.Properties["Proxy_ProxyServer"].Value as String;
  5448. this.RememberCredential = WMIObject.Properties["RememberCredential"].Value as Boolean?;
  5449. this.Routes_DestinationPrefix_Metric = WMIObject.Properties["Routes_DestinationPrefix_Metric"].Value as String[];
  5450. this.ServerAddress = WMIObject.Properties["ServerAddress"].Value as String;
  5451. this.ServerList_FriendlyName = WMIObject.Properties["ServerList_FriendlyName"].Value as String[];
  5452. this.ServerList_ServerAddress = WMIObject.Properties["ServerList_ServerAddress"].Value as String[];
  5453. this.SplitTunneling = WMIObject.Properties["SplitTunneling"].Value as Boolean?;
  5454. this.TrustedNetwork = WMIObject.Properties["TrustedNetwork"].Value as String[];
  5455. this.TunnelType = WMIObject.Properties["TunnelType"].Value as String;
  5456. this.UseWinlogonCredential = WMIObject.Properties["UseWinlogonCredential"].Value as Boolean?;
  5457. }
  5458. #region Properties
  5459. internal string __CLASS { get; set; }
  5460. internal string __NAMESPACE { get; set; }
  5461. internal bool __INSTANCE { get; set; }
  5462. internal string __RELPATH { get; set; }
  5463. internal PSObject WMIObject { get; set; }
  5464. internal Runspace remoteRunspace;
  5465. internal TraceSource pSCode;
  5466. public Boolean? AllUserConnection { get; set; }
  5467. public String[] ApplicationID { get; set; }
  5468. public String[] AuthenticationMethod { get; set; }
  5469. public String CustomConfiguration { get; set; }
  5470. public String[] DnsConfig_DnsIPAddress { get; set; }
  5471. public String[] DnsConfig_DnsSuffix { get; set; }
  5472. public String DnsSuffix { get; set; }
  5473. public String[] DnsSuffixSearchList { get; set; }
  5474. public String EapConfigXmlStream { get; set; }
  5475. public String EncryptionLevel { get; set; }
  5476. public UInt32? IdleDisconnectSeconds { get; set; }
  5477. public String L2tpPsk { get; set; }
  5478. public String[] MachineCertificateEKUFilter { get; set; }
  5479. public String MachineCertificateIssuerFilter { get; set; }
  5480. public String Name { get; set; }
  5481. public String PlugInApplicationID { get; set; }
  5482. public String ProfileType { get; set; }
  5483. public String ProvisioningAuthority { get; set; }
  5484. public String Proxy_AutoConfigurationScript { get; set; }
  5485. public Boolean? Proxy_AutoDetect { get; set; }
  5486. public Boolean? Proxy_BypassProxyForLocal { get; set; }
  5487. public String[] Proxy_ExceptionPrefix { get; set; }
  5488. public String Proxy_ProxyServer { get; set; }
  5489. public Boolean? RememberCredential { get; set; }
  5490. public String[] Routes_DestinationPrefix_Metric { get; set; }
  5491. public String ServerAddress { get; set; }
  5492. public String[] ServerList_FriendlyName { get; set; }
  5493. public String[] ServerList_ServerAddress { get; set; }
  5494. public Boolean? SplitTunneling { get; set; }
  5495. public String[] TrustedNetwork { get; set; }
  5496. public String TunnelType { get; set; }
  5497. public Boolean? UseWinlogonCredential { get; set; }
  5498. #endregion
  5499. }
  5500. /// <summary>
  5501. /// Source:ROOT\ccm\cimodels
  5502. /// </summary>
  5503. public class CCM_VpnConnectionXml
  5504. {
  5505. //Constructor
  5506. public CCM_VpnConnectionXml(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  5507. {
  5508. remoteRunspace = RemoteRunspace;
  5509. pSCode = PSCode;
  5510. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  5511. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  5512. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  5513. this.__INSTANCE = true;
  5514. this.WMIObject = WMIObject;
  5515. this.AllUserConnection = WMIObject.Properties["AllUserConnection"].Value as Boolean?;
  5516. this.Name = WMIObject.Properties["Name"].Value as String;
  5517. this.Profile = WMIObject.Properties["Profile"].Value as String;
  5518. }
  5519. #region Properties
  5520. internal string __CLASS { get; set; }
  5521. internal string __NAMESPACE { get; set; }
  5522. internal bool __INSTANCE { get; set; }
  5523. internal string __RELPATH { get; set; }
  5524. internal PSObject WMIObject { get; set; }
  5525. internal Runspace remoteRunspace;
  5526. internal TraceSource pSCode;
  5527. public Boolean? AllUserConnection { get; set; }
  5528. public String Name { get; set; }
  5529. public String Profile { get; set; }
  5530. #endregion
  5531. }
  5532. /// <summary>
  5533. /// Source:ROOT\ccm\cimodels
  5534. /// </summary>
  5535. public class CCM_WebAppInstallInfo
  5536. {
  5537. //Constructor
  5538. public CCM_WebAppInstallInfo(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  5539. {
  5540. remoteRunspace = RemoteRunspace;
  5541. pSCode = PSCode;
  5542. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  5543. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  5544. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  5545. this.__INSTANCE = true;
  5546. this.WMIObject = WMIObject;
  5547. this.AppDeliveryTypeId = WMIObject.Properties["AppDeliveryTypeId"].Value as String;
  5548. this.AppDtRevision = WMIObject.Properties["AppDtRevision"].Value as UInt32?;
  5549. this.TargetURL = WMIObject.Properties["TargetURL"].Value as String;
  5550. this.URLFileName = WMIObject.Properties["URLFileName"].Value as String;
  5551. this.URLPath = WMIObject.Properties["URLPath"].Value as String;
  5552. this.UserSID = WMIObject.Properties["UserSID"].Value as String;
  5553. }
  5554. #region Properties
  5555. internal string __CLASS { get; set; }
  5556. internal string __NAMESPACE { get; set; }
  5557. internal bool __INSTANCE { get; set; }
  5558. internal string __RELPATH { get; set; }
  5559. internal PSObject WMIObject { get; set; }
  5560. internal Runspace remoteRunspace;
  5561. internal TraceSource pSCode;
  5562. public String AppDeliveryTypeId { get; set; }
  5563. public UInt32? AppDtRevision { get; set; }
  5564. public String TargetURL { get; set; }
  5565. public String URLFileName { get; set; }
  5566. public String URLPath { get; set; }
  5567. public String UserSID { get; set; }
  5568. #endregion
  5569. }
  5570. /// <summary>
  5571. /// Source:ROOT\ccm\cimodels
  5572. /// </summary>
  5573. public class CCM_WqlQuery_Setting_Boolean : CCM_Setting_Boolean
  5574. {
  5575. //Constructor
  5576. public CCM_WqlQuery_Setting_Boolean(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  5577. {
  5578. remoteRunspace = RemoteRunspace;
  5579. pSCode = PSCode;
  5580. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  5581. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  5582. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  5583. this.__INSTANCE = true;
  5584. this.WMIObject = WMIObject;
  5585. }
  5586. #region Properties
  5587. internal string __CLASS { get; set; }
  5588. internal string __NAMESPACE { get; set; }
  5589. internal bool __INSTANCE { get; set; }
  5590. internal string __RELPATH { get; set; }
  5591. internal PSObject WMIObject { get; set; }
  5592. internal Runspace remoteRunspace;
  5593. internal TraceSource pSCode;
  5594. #endregion
  5595. }
  5596. /// <summary>
  5597. /// Source:ROOT\ccm\cimodels
  5598. /// </summary>
  5599. public class CCM_WqlQuery_Setting_DateTime : CCM_Setting_DateTime
  5600. {
  5601. //Constructor
  5602. public CCM_WqlQuery_Setting_DateTime(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  5603. {
  5604. remoteRunspace = RemoteRunspace;
  5605. pSCode = PSCode;
  5606. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  5607. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  5608. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  5609. this.__INSTANCE = true;
  5610. this.WMIObject = WMIObject;
  5611. }
  5612. #region Properties
  5613. internal string __CLASS { get; set; }
  5614. internal string __NAMESPACE { get; set; }
  5615. internal bool __INSTANCE { get; set; }
  5616. internal string __RELPATH { get; set; }
  5617. internal PSObject WMIObject { get; set; }
  5618. internal Runspace remoteRunspace;
  5619. internal TraceSource pSCode;
  5620. #endregion
  5621. }
  5622. /// <summary>
  5623. /// Source:ROOT\ccm\cimodels
  5624. /// </summary>
  5625. public class CCM_WqlQuery_Setting_Double : CCM_Setting_Double
  5626. {
  5627. //Constructor
  5628. public CCM_WqlQuery_Setting_Double(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  5629. {
  5630. remoteRunspace = RemoteRunspace;
  5631. pSCode = PSCode;
  5632. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  5633. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  5634. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  5635. this.__INSTANCE = true;
  5636. this.WMIObject = WMIObject;
  5637. }
  5638. #region Properties
  5639. internal string __CLASS { get; set; }
  5640. internal string __NAMESPACE { get; set; }
  5641. internal bool __INSTANCE { get; set; }
  5642. internal string __RELPATH { get; set; }
  5643. internal PSObject WMIObject { get; set; }
  5644. internal Runspace remoteRunspace;
  5645. internal TraceSource pSCode;
  5646. #endregion
  5647. }
  5648. /// <summary>
  5649. /// Source:ROOT\ccm\cimodels
  5650. /// </summary>
  5651. public class CCM_WqlQuery_Setting_Integer : CCM_Setting_Integer
  5652. {
  5653. //Constructor
  5654. public CCM_WqlQuery_Setting_Integer(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  5655. {
  5656. remoteRunspace = RemoteRunspace;
  5657. pSCode = PSCode;
  5658. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  5659. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  5660. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  5661. this.__INSTANCE = true;
  5662. this.WMIObject = WMIObject;
  5663. }
  5664. #region Properties
  5665. internal string __CLASS { get; set; }
  5666. internal string __NAMESPACE { get; set; }
  5667. internal bool __INSTANCE { get; set; }
  5668. internal string __RELPATH { get; set; }
  5669. internal PSObject WMIObject { get; set; }
  5670. internal Runspace remoteRunspace;
  5671. internal TraceSource pSCode;
  5672. #endregion
  5673. }
  5674. /// <summary>
  5675. /// Source:ROOT\ccm\cimodels
  5676. /// </summary>
  5677. public class CCM_WqlQuery_Setting_IntegerArray : CCM_Setting_IntegerArray
  5678. {
  5679. //Constructor
  5680. public CCM_WqlQuery_Setting_IntegerArray(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  5681. {
  5682. remoteRunspace = RemoteRunspace;
  5683. pSCode = PSCode;
  5684. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  5685. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  5686. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  5687. this.__INSTANCE = true;
  5688. this.WMIObject = WMIObject;
  5689. }
  5690. #region Properties
  5691. internal string __CLASS { get; set; }
  5692. internal string __NAMESPACE { get; set; }
  5693. internal bool __INSTANCE { get; set; }
  5694. internal string __RELPATH { get; set; }
  5695. internal PSObject WMIObject { get; set; }
  5696. internal Runspace remoteRunspace;
  5697. internal TraceSource pSCode;
  5698. #endregion
  5699. }
  5700. /// <summary>
  5701. /// Source:ROOT\ccm\cimodels
  5702. /// </summary>
  5703. public class CCM_WqlQuery_Setting_String : CCM_Setting_String
  5704. {
  5705. //Constructor
  5706. public CCM_WqlQuery_Setting_String(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  5707. {
  5708. remoteRunspace = RemoteRunspace;
  5709. pSCode = PSCode;
  5710. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  5711. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  5712. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  5713. this.__INSTANCE = true;
  5714. this.WMIObject = WMIObject;
  5715. }
  5716. #region Properties
  5717. internal string __CLASS { get; set; }
  5718. internal string __NAMESPACE { get; set; }
  5719. internal bool __INSTANCE { get; set; }
  5720. internal string __RELPATH { get; set; }
  5721. internal PSObject WMIObject { get; set; }
  5722. internal Runspace remoteRunspace;
  5723. internal TraceSource pSCode;
  5724. #endregion
  5725. }
  5726. /// <summary>
  5727. /// Source:ROOT\ccm\cimodels
  5728. /// </summary>
  5729. public class CCM_WqlQuery_Setting_StringArray : CCM_Setting_StringArray
  5730. {
  5731. //Constructor
  5732. public CCM_WqlQuery_Setting_StringArray(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  5733. {
  5734. remoteRunspace = RemoteRunspace;
  5735. pSCode = PSCode;
  5736. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  5737. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  5738. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  5739. this.__INSTANCE = true;
  5740. this.WMIObject = WMIObject;
  5741. }
  5742. #region Properties
  5743. internal string __CLASS { get; set; }
  5744. internal string __NAMESPACE { get; set; }
  5745. internal bool __INSTANCE { get; set; }
  5746. internal string __RELPATH { get; set; }
  5747. internal PSObject WMIObject { get; set; }
  5748. internal Runspace remoteRunspace;
  5749. internal TraceSource pSCode;
  5750. #endregion
  5751. }
  5752. /// <summary>
  5753. /// Source:ROOT\ccm\cimodels
  5754. /// </summary>
  5755. public class CCM_WqlQuery_Setting_Synclet
  5756. {
  5757. //Constructor
  5758. public CCM_WqlQuery_Setting_Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  5759. {
  5760. remoteRunspace = RemoteRunspace;
  5761. pSCode = PSCode;
  5762. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  5763. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  5764. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  5765. this.__INSTANCE = true;
  5766. this.WMIObject = WMIObject;
  5767. this.DataType = WMIObject.Properties["DataType"].Value as byte?;
  5768. this.ID = WMIObject.Properties["ID"].Value as String;
  5769. this.IsArray = WMIObject.Properties["IsArray"].Value as Boolean?;
  5770. this.Namespace = WMIObject.Properties["Namespace"].Value as String;
  5771. this.Property = WMIObject.Properties["Property"].Value as String;
  5772. this.Query = WMIObject.Properties["Query"].Value as String;
  5773. this.WMIClass = WMIObject.Properties["WMIClass"].Value as String;
  5774. }
  5775. #region Properties
  5776. internal string __CLASS { get; set; }
  5777. internal string __NAMESPACE { get; set; }
  5778. internal bool __INSTANCE { get; set; }
  5779. internal string __RELPATH { get; set; }
  5780. internal PSObject WMIObject { get; set; }
  5781. internal Runspace remoteRunspace;
  5782. internal TraceSource pSCode;
  5783. public byte? DataType { get; set; }
  5784. public String ID { get; set; }
  5785. public Boolean? IsArray { get; set; }
  5786. public String Namespace { get; set; }
  5787. public String Property { get; set; }
  5788. public String Query { get; set; }
  5789. public String WMIClass { get; set; }
  5790. #endregion
  5791. }
  5792. /// <summary>
  5793. /// Source:ROOT\ccm\cimodels
  5794. /// </summary>
  5795. public class CCM_XPathQuery_Setting_Boolean : CCM_Setting_Boolean
  5796. {
  5797. //Constructor
  5798. public CCM_XPathQuery_Setting_Boolean(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  5799. {
  5800. remoteRunspace = RemoteRunspace;
  5801. pSCode = PSCode;
  5802. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  5803. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  5804. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  5805. this.__INSTANCE = true;
  5806. this.WMIObject = WMIObject;
  5807. }
  5808. #region Properties
  5809. internal string __CLASS { get; set; }
  5810. internal string __NAMESPACE { get; set; }
  5811. internal bool __INSTANCE { get; set; }
  5812. internal string __RELPATH { get; set; }
  5813. internal PSObject WMIObject { get; set; }
  5814. internal Runspace remoteRunspace;
  5815. internal TraceSource pSCode;
  5816. #endregion
  5817. }
  5818. /// <summary>
  5819. /// Source:ROOT\ccm\cimodels
  5820. /// </summary>
  5821. public class CCM_XPathQuery_Setting_DateTime : CCM_Setting_DateTime
  5822. {
  5823. //Constructor
  5824. public CCM_XPathQuery_Setting_DateTime(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  5825. {
  5826. remoteRunspace = RemoteRunspace;
  5827. pSCode = PSCode;
  5828. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  5829. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  5830. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  5831. this.__INSTANCE = true;
  5832. this.WMIObject = WMIObject;
  5833. }
  5834. #region Properties
  5835. internal string __CLASS { get; set; }
  5836. internal string __NAMESPACE { get; set; }
  5837. internal bool __INSTANCE { get; set; }
  5838. internal string __RELPATH { get; set; }
  5839. internal PSObject WMIObject { get; set; }
  5840. internal Runspace remoteRunspace;
  5841. internal TraceSource pSCode;
  5842. #endregion
  5843. }
  5844. /// <summary>
  5845. /// Source:ROOT\ccm\cimodels
  5846. /// </summary>
  5847. public class CCM_XPathQuery_Setting_Double : CCM_Setting_Double
  5848. {
  5849. //Constructor
  5850. public CCM_XPathQuery_Setting_Double(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  5851. {
  5852. remoteRunspace = RemoteRunspace;
  5853. pSCode = PSCode;
  5854. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  5855. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  5856. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  5857. this.__INSTANCE = true;
  5858. this.WMIObject = WMIObject;
  5859. }
  5860. #region Properties
  5861. internal string __CLASS { get; set; }
  5862. internal string __NAMESPACE { get; set; }
  5863. internal bool __INSTANCE { get; set; }
  5864. internal string __RELPATH { get; set; }
  5865. internal PSObject WMIObject { get; set; }
  5866. internal Runspace remoteRunspace;
  5867. internal TraceSource pSCode;
  5868. #endregion
  5869. }
  5870. /// <summary>
  5871. /// Source:ROOT\ccm\cimodels
  5872. /// </summary>
  5873. public class CCM_XPathQuery_Setting_Integer : CCM_Setting_Integer
  5874. {
  5875. //Constructor
  5876. public CCM_XPathQuery_Setting_Integer(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  5877. {
  5878. remoteRunspace = RemoteRunspace;
  5879. pSCode = PSCode;
  5880. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  5881. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  5882. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  5883. this.__INSTANCE = true;
  5884. this.WMIObject = WMIObject;
  5885. }
  5886. #region Properties
  5887. internal string __CLASS { get; set; }
  5888. internal string __NAMESPACE { get; set; }
  5889. internal bool __INSTANCE { get; set; }
  5890. internal string __RELPATH { get; set; }
  5891. internal PSObject WMIObject { get; set; }
  5892. internal Runspace remoteRunspace;
  5893. internal TraceSource pSCode;
  5894. #endregion
  5895. }
  5896. /// <summary>
  5897. /// Source:ROOT\ccm\cimodels
  5898. /// </summary>
  5899. public class CCM_XPathQuery_Setting_IntegerArray : CCM_Setting_IntegerArray
  5900. {
  5901. //Constructor
  5902. public CCM_XPathQuery_Setting_IntegerArray(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  5903. {
  5904. remoteRunspace = RemoteRunspace;
  5905. pSCode = PSCode;
  5906. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  5907. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  5908. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  5909. this.__INSTANCE = true;
  5910. this.WMIObject = WMIObject;
  5911. }
  5912. #region Properties
  5913. internal string __CLASS { get; set; }
  5914. internal string __NAMESPACE { get; set; }
  5915. internal bool __INSTANCE { get; set; }
  5916. internal string __RELPATH { get; set; }
  5917. internal PSObject WMIObject { get; set; }
  5918. internal Runspace remoteRunspace;
  5919. internal TraceSource pSCode;
  5920. #endregion
  5921. }
  5922. /// <summary>
  5923. /// Source:ROOT\ccm\cimodels
  5924. /// </summary>
  5925. public class CCM_XPathQuery_Setting_String : CCM_Setting_String
  5926. {
  5927. //Constructor
  5928. public CCM_XPathQuery_Setting_String(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  5929. {
  5930. remoteRunspace = RemoteRunspace;
  5931. pSCode = PSCode;
  5932. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  5933. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  5934. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  5935. this.__INSTANCE = true;
  5936. this.WMIObject = WMIObject;
  5937. }
  5938. #region Properties
  5939. internal string __CLASS { get; set; }
  5940. internal string __NAMESPACE { get; set; }
  5941. internal bool __INSTANCE { get; set; }
  5942. internal string __RELPATH { get; set; }
  5943. internal PSObject WMIObject { get; set; }
  5944. internal Runspace remoteRunspace;
  5945. internal TraceSource pSCode;
  5946. #endregion
  5947. }
  5948. /// <summary>
  5949. /// Source:ROOT\ccm\cimodels
  5950. /// </summary>
  5951. public class CCM_XPathQuery_Setting_StringArray : CCM_Setting_StringArray
  5952. {
  5953. //Constructor
  5954. public CCM_XPathQuery_Setting_StringArray(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  5955. {
  5956. remoteRunspace = RemoteRunspace;
  5957. pSCode = PSCode;
  5958. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  5959. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  5960. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  5961. this.__INSTANCE = true;
  5962. this.WMIObject = WMIObject;
  5963. }
  5964. #region Properties
  5965. internal string __CLASS { get; set; }
  5966. internal string __NAMESPACE { get; set; }
  5967. internal bool __INSTANCE { get; set; }
  5968. internal string __RELPATH { get; set; }
  5969. internal PSObject WMIObject { get; set; }
  5970. internal Runspace remoteRunspace;
  5971. internal TraceSource pSCode;
  5972. #endregion
  5973. }
  5974. /// <summary>
  5975. /// Source:ROOT\ccm\cimodels
  5976. /// </summary>
  5977. public class CCM_XPathQuery_Setting_Synclet
  5978. {
  5979. //Constructor
  5980. public CCM_XPathQuery_Setting_Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  5981. {
  5982. remoteRunspace = RemoteRunspace;
  5983. pSCode = PSCode;
  5984. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  5985. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  5986. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  5987. this.__INSTANCE = true;
  5988. this.WMIObject = WMIObject;
  5989. this.ID = WMIObject.Properties["ID"].Value as String;
  5990. this.Is64Bit = WMIObject.Properties["Is64Bit"].Value as Boolean?;
  5991. this.NamespaceDeclarations = WMIObject.Properties["NamespaceDeclarations"].Value as Namespace[];
  5992. this.SearchDepth = WMIObject.Properties["SearchDepth"].Value as byte?;
  5993. this.WorkingFilter = WMIObject.Properties["WorkingFilter"].Value as String;
  5994. this.WorkingPath = WMIObject.Properties["WorkingPath"].Value as String;
  5995. this.XpathQuery = WMIObject.Properties["XpathQuery"].Value as String;
  5996. }
  5997. #region Properties
  5998. internal string __CLASS { get; set; }
  5999. internal string __NAMESPACE { get; set; }
  6000. internal bool __INSTANCE { get; set; }
  6001. internal string __RELPATH { get; set; }
  6002. internal PSObject WMIObject { get; set; }
  6003. internal Runspace remoteRunspace;
  6004. internal TraceSource pSCode;
  6005. public String ID { get; set; }
  6006. public Boolean? Is64Bit { get; set; }
  6007. public Namespace[] NamespaceDeclarations { get; set; }
  6008. public byte? SearchDepth { get; set; }
  6009. public String WorkingFilter { get; set; }
  6010. public String WorkingPath { get; set; }
  6011. public String XpathQuery { get; set; }
  6012. #endregion
  6013. }
  6014. /// <summary>
  6015. /// Source:ROOT\ccm\cimodels
  6016. /// </summary>
  6017. public class CIM_ClassCreation : CIM_ClassIndication
  6018. {
  6019. //Constructor
  6020. public CIM_ClassCreation(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6021. {
  6022. remoteRunspace = RemoteRunspace;
  6023. pSCode = PSCode;
  6024. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  6025. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  6026. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  6027. this.__INSTANCE = true;
  6028. this.WMIObject = WMIObject;
  6029. }
  6030. #region Properties
  6031. internal string __CLASS { get; set; }
  6032. internal string __NAMESPACE { get; set; }
  6033. internal bool __INSTANCE { get; set; }
  6034. internal string __RELPATH { get; set; }
  6035. internal PSObject WMIObject { get; set; }
  6036. internal Runspace remoteRunspace;
  6037. internal TraceSource pSCode;
  6038. #endregion
  6039. }
  6040. /// <summary>
  6041. /// Source:ROOT\ccm\cimodels
  6042. /// </summary>
  6043. public class CIM_ClassDeletion : CIM_ClassIndication
  6044. {
  6045. //Constructor
  6046. public CIM_ClassDeletion(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6047. {
  6048. remoteRunspace = RemoteRunspace;
  6049. pSCode = PSCode;
  6050. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  6051. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  6052. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  6053. this.__INSTANCE = true;
  6054. this.WMIObject = WMIObject;
  6055. }
  6056. #region Properties
  6057. internal string __CLASS { get; set; }
  6058. internal string __NAMESPACE { get; set; }
  6059. internal bool __INSTANCE { get; set; }
  6060. internal string __RELPATH { get; set; }
  6061. internal PSObject WMIObject { get; set; }
  6062. internal Runspace remoteRunspace;
  6063. internal TraceSource pSCode;
  6064. #endregion
  6065. }
  6066. /// <summary>
  6067. /// Source:ROOT\ccm\cimodels
  6068. /// </summary>
  6069. public class CIM_ClassIndication : CIM_Indication
  6070. {
  6071. //Constructor
  6072. public CIM_ClassIndication(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6073. {
  6074. remoteRunspace = RemoteRunspace;
  6075. pSCode = PSCode;
  6076. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  6077. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  6078. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  6079. this.__INSTANCE = true;
  6080. this.WMIObject = WMIObject;
  6081. this.ClassDefinition = WMIObject.Properties["ClassDefinition"].Value as Object;
  6082. }
  6083. #region Properties
  6084. internal string __CLASS { get; set; }
  6085. internal string __NAMESPACE { get; set; }
  6086. internal bool __INSTANCE { get; set; }
  6087. internal string __RELPATH { get; set; }
  6088. internal PSObject WMIObject { get; set; }
  6089. internal Runspace remoteRunspace;
  6090. internal TraceSource pSCode;
  6091. public Object ClassDefinition { get; set; }
  6092. #endregion
  6093. }
  6094. /// <summary>
  6095. /// Source:ROOT\ccm\cimodels
  6096. /// </summary>
  6097. public class CIM_ClassModification : CIM_ClassIndication
  6098. {
  6099. //Constructor
  6100. public CIM_ClassModification(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6101. {
  6102. remoteRunspace = RemoteRunspace;
  6103. pSCode = PSCode;
  6104. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  6105. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  6106. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  6107. this.__INSTANCE = true;
  6108. this.WMIObject = WMIObject;
  6109. this.PreviousClassDefinition = WMIObject.Properties["PreviousClassDefinition"].Value as Object;
  6110. }
  6111. #region Properties
  6112. internal string __CLASS { get; set; }
  6113. internal string __NAMESPACE { get; set; }
  6114. internal bool __INSTANCE { get; set; }
  6115. internal string __RELPATH { get; set; }
  6116. internal PSObject WMIObject { get; set; }
  6117. internal Runspace remoteRunspace;
  6118. internal TraceSource pSCode;
  6119. public Object PreviousClassDefinition { get; set; }
  6120. #endregion
  6121. }
  6122. /// <summary>
  6123. /// Source:ROOT\ccm\cimodels
  6124. /// </summary>
  6125. public class CIM_Error
  6126. {
  6127. //Constructor
  6128. public CIM_Error(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6129. {
  6130. remoteRunspace = RemoteRunspace;
  6131. pSCode = PSCode;
  6132. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  6133. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  6134. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  6135. this.__INSTANCE = true;
  6136. this.WMIObject = WMIObject;
  6137. this.CIMStatusCode = WMIObject.Properties["CIMStatusCode"].Value as UInt32?;
  6138. this.CIMStatusCodeDescription = WMIObject.Properties["CIMStatusCodeDescription"].Value as String;
  6139. this.ErrorSource = WMIObject.Properties["ErrorSource"].Value as String;
  6140. this.ErrorSourceFormat = WMIObject.Properties["ErrorSourceFormat"].Value as UInt16;
  6141. this.ErrorType = WMIObject.Properties["ErrorType"].Value as UInt16;
  6142. this.Message = WMIObject.Properties["Message"].Value as String;
  6143. this.MessageArguments = WMIObject.Properties["MessageArguments"].Value as String[];
  6144. this.MessageID = WMIObject.Properties["MessageID"].Value as String;
  6145. this.OtherErrorSourceFormat = WMIObject.Properties["OtherErrorSourceFormat"].Value as String;
  6146. this.OtherErrorType = WMIObject.Properties["OtherErrorType"].Value as String;
  6147. this.OWningEntity = WMIObject.Properties["OWningEntity"].Value as String;
  6148. this.PerceivedSeverity = WMIObject.Properties["PerceivedSeverity"].Value as UInt16;
  6149. this.ProbableCause = WMIObject.Properties["ProbableCause"].Value as UInt16;
  6150. this.ProbableCauseDescription = WMIObject.Properties["ProbableCauseDescription"].Value as String;
  6151. this.RecommendedActions = WMIObject.Properties["RecommendedActions"].Value as String[];
  6152. }
  6153. #region Properties
  6154. internal string __CLASS { get; set; }
  6155. internal string __NAMESPACE { get; set; }
  6156. internal bool __INSTANCE { get; set; }
  6157. internal string __RELPATH { get; set; }
  6158. internal PSObject WMIObject { get; set; }
  6159. internal Runspace remoteRunspace;
  6160. internal TraceSource pSCode;
  6161. public UInt32? CIMStatusCode { get; set; }
  6162. public String CIMStatusCodeDescription { get; set; }
  6163. public String ErrorSource { get; set; }
  6164. public UInt16 ErrorSourceFormat { get; set; }
  6165. public UInt16 ErrorType { get; set; }
  6166. public String Message { get; set; }
  6167. public String[] MessageArguments { get; set; }
  6168. public String MessageID { get; set; }
  6169. public String OtherErrorSourceFormat { get; set; }
  6170. public String OtherErrorType { get; set; }
  6171. public String OWningEntity { get; set; }
  6172. public UInt16 PerceivedSeverity { get; set; }
  6173. public UInt16 ProbableCause { get; set; }
  6174. public String ProbableCauseDescription { get; set; }
  6175. public String[] RecommendedActions { get; set; }
  6176. #endregion
  6177. }
  6178. /// <summary>
  6179. /// Source:ROOT\ccm\cimodels
  6180. /// </summary>
  6181. public class CIM_Indication
  6182. {
  6183. //Constructor
  6184. public CIM_Indication(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6185. {
  6186. remoteRunspace = RemoteRunspace;
  6187. pSCode = PSCode;
  6188. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  6189. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  6190. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  6191. this.__INSTANCE = true;
  6192. this.WMIObject = WMIObject;
  6193. this.CorrelatedIndications = WMIObject.Properties["CorrelatedIndications"].Value as String[];
  6194. this.IndicationFilterName = WMIObject.Properties["IndicationFilterName"].Value as String;
  6195. this.IndicationIdentifier = WMIObject.Properties["IndicationIdentifier"].Value as String;
  6196. string sIndicationTime = WMIObject.Properties["IndicationTime"].Value as string;
  6197. if (string.IsNullOrEmpty(sIndicationTime))
  6198. this.IndicationTime = null;
  6199. else
  6200. this.IndicationTime = ManagementDateTimeConverter.ToDateTime(sIndicationTime) as DateTime?;
  6201. this.OtherSeverity = WMIObject.Properties["OtherSeverity"].Value as String;
  6202. this.PerceivedSeverity = WMIObject.Properties["PerceivedSeverity"].Value as UInt16;
  6203. this.SequenceContext = WMIObject.Properties["SequenceContext"].Value as String;
  6204. this.SequenceNumber = WMIObject.Properties["SequenceNumber"].Value as Int64?;
  6205. }
  6206. #region Properties
  6207. internal string __CLASS { get; set; }
  6208. internal string __NAMESPACE { get; set; }
  6209. internal bool __INSTANCE { get; set; }
  6210. internal string __RELPATH { get; set; }
  6211. internal PSObject WMIObject { get; set; }
  6212. internal Runspace remoteRunspace;
  6213. internal TraceSource pSCode;
  6214. public String[] CorrelatedIndications { get; set; }
  6215. public String IndicationFilterName { get; set; }
  6216. public String IndicationIdentifier { get; set; }
  6217. public DateTime? IndicationTime { get; set; }
  6218. public String OtherSeverity { get; set; }
  6219. public UInt16 PerceivedSeverity { get; set; }
  6220. public String SequenceContext { get; set; }
  6221. public Int64? SequenceNumber { get; set; }
  6222. #endregion
  6223. }
  6224. /// <summary>
  6225. /// Source:ROOT\ccm\cimodels
  6226. /// </summary>
  6227. public class CIM_InstCreation : CIM_InstIndication
  6228. {
  6229. //Constructor
  6230. public CIM_InstCreation(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6231. {
  6232. remoteRunspace = RemoteRunspace;
  6233. pSCode = PSCode;
  6234. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  6235. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  6236. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  6237. this.__INSTANCE = true;
  6238. this.WMIObject = WMIObject;
  6239. }
  6240. #region Properties
  6241. internal string __CLASS { get; set; }
  6242. internal string __NAMESPACE { get; set; }
  6243. internal bool __INSTANCE { get; set; }
  6244. internal string __RELPATH { get; set; }
  6245. internal PSObject WMIObject { get; set; }
  6246. internal Runspace remoteRunspace;
  6247. internal TraceSource pSCode;
  6248. #endregion
  6249. }
  6250. /// <summary>
  6251. /// Source:ROOT\ccm\cimodels
  6252. /// </summary>
  6253. public class CIM_InstDeletion : CIM_InstIndication
  6254. {
  6255. //Constructor
  6256. public CIM_InstDeletion(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6257. {
  6258. remoteRunspace = RemoteRunspace;
  6259. pSCode = PSCode;
  6260. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  6261. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  6262. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  6263. this.__INSTANCE = true;
  6264. this.WMIObject = WMIObject;
  6265. }
  6266. #region Properties
  6267. internal string __CLASS { get; set; }
  6268. internal string __NAMESPACE { get; set; }
  6269. internal bool __INSTANCE { get; set; }
  6270. internal string __RELPATH { get; set; }
  6271. internal PSObject WMIObject { get; set; }
  6272. internal Runspace remoteRunspace;
  6273. internal TraceSource pSCode;
  6274. #endregion
  6275. }
  6276. /// <summary>
  6277. /// Source:ROOT\ccm\cimodels
  6278. /// </summary>
  6279. public class CIM_InstIndication : CIM_Indication
  6280. {
  6281. //Constructor
  6282. public CIM_InstIndication(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6283. {
  6284. remoteRunspace = RemoteRunspace;
  6285. pSCode = PSCode;
  6286. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  6287. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  6288. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  6289. this.__INSTANCE = true;
  6290. this.WMIObject = WMIObject;
  6291. this.SourceInstance = WMIObject.Properties["SourceInstance"].Value as Object;
  6292. this.SourceInstanceHost = WMIObject.Properties["SourceInstanceHost"].Value as String;
  6293. this.SourceInstanceModelPath = WMIObject.Properties["SourceInstanceModelPath"].Value as String;
  6294. }
  6295. #region Properties
  6296. internal string __CLASS { get; set; }
  6297. internal string __NAMESPACE { get; set; }
  6298. internal bool __INSTANCE { get; set; }
  6299. internal string __RELPATH { get; set; }
  6300. internal PSObject WMIObject { get; set; }
  6301. internal Runspace remoteRunspace;
  6302. internal TraceSource pSCode;
  6303. public Object SourceInstance { get; set; }
  6304. public String SourceInstanceHost { get; set; }
  6305. public String SourceInstanceModelPath { get; set; }
  6306. #endregion
  6307. }
  6308. /// <summary>
  6309. /// Source:ROOT\ccm\cimodels
  6310. /// </summary>
  6311. public class CIM_InstModification : CIM_InstIndication
  6312. {
  6313. //Constructor
  6314. public CIM_InstModification(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6315. {
  6316. remoteRunspace = RemoteRunspace;
  6317. pSCode = PSCode;
  6318. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  6319. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  6320. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  6321. this.__INSTANCE = true;
  6322. this.WMIObject = WMIObject;
  6323. this.PreviousInstance = WMIObject.Properties["PreviousInstance"].Value as Object;
  6324. }
  6325. #region Properties
  6326. internal string __CLASS { get; set; }
  6327. internal string __NAMESPACE { get; set; }
  6328. internal bool __INSTANCE { get; set; }
  6329. internal string __RELPATH { get; set; }
  6330. internal PSObject WMIObject { get; set; }
  6331. internal Runspace remoteRunspace;
  6332. internal TraceSource pSCode;
  6333. public Object PreviousInstance { get; set; }
  6334. #endregion
  6335. }
  6336. /// <summary>
  6337. /// Source:ROOT\ccm\cimodels
  6338. /// </summary>
  6339. public class ContentInfo
  6340. {
  6341. //Constructor
  6342. public ContentInfo(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6343. {
  6344. remoteRunspace = RemoteRunspace;
  6345. pSCode = PSCode;
  6346. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  6347. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  6348. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  6349. this.__INSTANCE = true;
  6350. this.WMIObject = WMIObject;
  6351. this.ContentId = WMIObject.Properties["ContentId"].Value as String;
  6352. this.ContentVersion = WMIObject.Properties["ContentVersion"].Value as String;
  6353. }
  6354. #region Properties
  6355. internal string __CLASS { get; set; }
  6356. internal string __NAMESPACE { get; set; }
  6357. internal bool __INSTANCE { get; set; }
  6358. internal string __RELPATH { get; set; }
  6359. internal PSObject WMIObject { get; set; }
  6360. internal Runspace remoteRunspace;
  6361. internal TraceSource pSCode;
  6362. public String ContentId { get; set; }
  6363. public String ContentVersion { get; set; }
  6364. #endregion
  6365. }
  6366. /// <summary>
  6367. /// Source:ROOT\ccm\cimodels
  6368. /// </summary>
  6369. public class Device_OperatingSystem
  6370. {
  6371. //Constructor
  6372. public Device_OperatingSystem(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6373. {
  6374. remoteRunspace = RemoteRunspace;
  6375. pSCode = PSCode;
  6376. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  6377. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  6378. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  6379. this.__INSTANCE = true;
  6380. this.WMIObject = WMIObject;
  6381. this.OSName = WMIObject.Properties["OSName"].Value as String;
  6382. this.OSType = WMIObject.Properties["OSType"].Value as String;
  6383. }
  6384. #region Properties
  6385. internal string __CLASS { get; set; }
  6386. internal string __NAMESPACE { get; set; }
  6387. internal bool __INSTANCE { get; set; }
  6388. internal string __RELPATH { get; set; }
  6389. internal PSObject WMIObject { get; set; }
  6390. internal Runspace remoteRunspace;
  6391. internal TraceSource pSCode;
  6392. public String OSName { get; set; }
  6393. public String OSType { get; set; }
  6394. #endregion
  6395. }
  6396. /// <summary>
  6397. /// Source:ROOT\ccm\cimodels
  6398. /// </summary>
  6399. public class Device_OSInformation
  6400. {
  6401. //Constructor
  6402. public Device_OSInformation(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6403. {
  6404. remoteRunspace = RemoteRunspace;
  6405. pSCode = PSCode;
  6406. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  6407. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  6408. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  6409. this.__INSTANCE = true;
  6410. this.WMIObject = WMIObject;
  6411. this.APILevel = WMIObject.Properties["APILevel"].Value as UInt64;
  6412. this.Platform = WMIObject.Properties["Platform"].Value as String;
  6413. this.Version = WMIObject.Properties["Version"].Value as String;
  6414. }
  6415. #region Properties
  6416. internal string __CLASS { get; set; }
  6417. internal string __NAMESPACE { get; set; }
  6418. internal bool __INSTANCE { get; set; }
  6419. internal string __RELPATH { get; set; }
  6420. internal PSObject WMIObject { get; set; }
  6421. internal Runspace remoteRunspace;
  6422. internal TraceSource pSCode;
  6423. public UInt64 APILevel { get; set; }
  6424. public String Platform { get; set; }
  6425. public String Version { get; set; }
  6426. #endregion
  6427. }
  6428. /// <summary>
  6429. /// Source:ROOT\ccm\cimodels
  6430. /// </summary>
  6431. public class DeviceProperty
  6432. {
  6433. //Constructor
  6434. public DeviceProperty(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6435. {
  6436. remoteRunspace = RemoteRunspace;
  6437. pSCode = PSCode;
  6438. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  6439. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  6440. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  6441. this.__INSTANCE = true;
  6442. this.WMIObject = WMIObject;
  6443. this.DeviceOwnershipType = WMIObject.Properties["DeviceOwnershipType"].Value as String;
  6444. }
  6445. #region Properties
  6446. internal string __CLASS { get; set; }
  6447. internal string __NAMESPACE { get; set; }
  6448. internal bool __INSTANCE { get; set; }
  6449. internal string __RELPATH { get; set; }
  6450. internal PSObject WMIObject { get; set; }
  6451. internal Runspace remoteRunspace;
  6452. internal TraceSource pSCode;
  6453. public String DeviceOwnershipType { get; set; }
  6454. #endregion
  6455. }
  6456. /// <summary>
  6457. /// Source:ROOT\ccm\cimodels
  6458. /// </summary>
  6459. public class GLOBAL_MachineOU
  6460. {
  6461. //Constructor
  6462. public GLOBAL_MachineOU(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6463. {
  6464. remoteRunspace = RemoteRunspace;
  6465. pSCode = PSCode;
  6466. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  6467. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  6468. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  6469. this.__INSTANCE = true;
  6470. this.WMIObject = WMIObject;
  6471. this.MachineOU = WMIObject.Properties["MachineOU"].Value as String;
  6472. }
  6473. #region Properties
  6474. internal string __CLASS { get; set; }
  6475. internal string __NAMESPACE { get; set; }
  6476. internal bool __INSTANCE { get; set; }
  6477. internal string __RELPATH { get; set; }
  6478. internal PSObject WMIObject { get; set; }
  6479. internal Runspace remoteRunspace;
  6480. internal TraceSource pSCode;
  6481. public String MachineOU { get; set; }
  6482. #endregion
  6483. }
  6484. /// <summary>
  6485. /// Source:ROOT\ccm\cimodels
  6486. /// </summary>
  6487. public class Local_Detect_Synclet : CCM_HandlerSynclet
  6488. {
  6489. //Constructor
  6490. public Local_Detect_Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6491. {
  6492. remoteRunspace = RemoteRunspace;
  6493. pSCode = PSCode;
  6494. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  6495. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  6496. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  6497. this.__INSTANCE = true;
  6498. this.WMIObject = WMIObject;
  6499. this.DiscoverySourceXml = WMIObject.Properties["DiscoverySourceXml"].Value as String;
  6500. this.ExpressionXml = WMIObject.Properties["ExpressionXml"].Value as String;
  6501. }
  6502. #region Properties
  6503. internal string __CLASS { get; set; }
  6504. internal string __NAMESPACE { get; set; }
  6505. internal bool __INSTANCE { get; set; }
  6506. internal string __RELPATH { get; set; }
  6507. internal PSObject WMIObject { get; set; }
  6508. internal Runspace remoteRunspace;
  6509. internal TraceSource pSCode;
  6510. public String DiscoverySourceXml { get; set; }
  6511. public String ExpressionXml { get; set; }
  6512. #endregion
  6513. }
  6514. /// <summary>
  6515. /// Source:ROOT\ccm\cimodels
  6516. /// </summary>
  6517. public class MSFT_ExtendedStatus : MSFT_WmiError
  6518. {
  6519. //Constructor
  6520. public MSFT_ExtendedStatus(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6521. {
  6522. remoteRunspace = RemoteRunspace;
  6523. pSCode = PSCode;
  6524. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  6525. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  6526. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  6527. this.__INSTANCE = true;
  6528. this.WMIObject = WMIObject;
  6529. this.original_error = WMIObject.Properties["original_error"].Value as Object;
  6530. }
  6531. #region Properties
  6532. internal string __CLASS { get; set; }
  6533. internal string __NAMESPACE { get; set; }
  6534. internal bool __INSTANCE { get; set; }
  6535. internal string __RELPATH { get; set; }
  6536. internal PSObject WMIObject { get; set; }
  6537. internal Runspace remoteRunspace;
  6538. internal TraceSource pSCode;
  6539. public Object original_error { get; set; }
  6540. #endregion
  6541. }
  6542. /// <summary>
  6543. /// Source:ROOT\ccm\cimodels
  6544. /// </summary>
  6545. public class MSFT_WmiError : CIM_Error
  6546. {
  6547. //Constructor
  6548. public MSFT_WmiError(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6549. {
  6550. remoteRunspace = RemoteRunspace;
  6551. pSCode = PSCode;
  6552. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  6553. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  6554. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  6555. this.__INSTANCE = true;
  6556. this.WMIObject = WMIObject;
  6557. this.error_Category = WMIObject.Properties["error_Category"].Value as UInt16;
  6558. this.error_Code = WMIObject.Properties["error_Code"].Value as UInt32?;
  6559. this.error_Type = WMIObject.Properties["error_Type"].Value as String;
  6560. this.error_WindowsErrorMessage = WMIObject.Properties["error_WindowsErrorMessage"].Value as String;
  6561. }
  6562. #region Properties
  6563. internal string __CLASS { get; set; }
  6564. internal string __NAMESPACE { get; set; }
  6565. internal bool __INSTANCE { get; set; }
  6566. internal string __RELPATH { get; set; }
  6567. internal PSObject WMIObject { get; set; }
  6568. internal Runspace remoteRunspace;
  6569. internal TraceSource pSCode;
  6570. public UInt16 error_Category { get; set; }
  6571. public UInt32? error_Code { get; set; }
  6572. public String error_Type { get; set; }
  6573. public String error_WindowsErrorMessage { get; set; }
  6574. #endregion
  6575. }
  6576. /// <summary>
  6577. /// Source:ROOT\ccm\cimodels
  6578. /// </summary>
  6579. public class MSI_Detect_Synclet : CCM_HandlerSynclet
  6580. {
  6581. //Constructor
  6582. public MSI_Detect_Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6583. {
  6584. remoteRunspace = RemoteRunspace;
  6585. pSCode = PSCode;
  6586. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  6587. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  6588. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  6589. this.__INSTANCE = true;
  6590. this.WMIObject = WMIObject;
  6591. this.PackageCode = WMIObject.Properties["PackageCode"].Value as String;
  6592. this.PatchCodes = WMIObject.Properties["PatchCodes"].Value as String[];
  6593. this.ProductCode = WMIObject.Properties["ProductCode"].Value as String;
  6594. this.ProductVersion = WMIObject.Properties["ProductVersion"].Value as String;
  6595. }
  6596. #region Properties
  6597. internal string __CLASS { get; set; }
  6598. internal string __NAMESPACE { get; set; }
  6599. internal bool __INSTANCE { get; set; }
  6600. internal string __RELPATH { get; set; }
  6601. internal PSObject WMIObject { get; set; }
  6602. internal Runspace remoteRunspace;
  6603. internal TraceSource pSCode;
  6604. public String PackageCode { get; set; }
  6605. public String[] PatchCodes { get; set; }
  6606. public String ProductCode { get; set; }
  6607. public String ProductVersion { get; set; }
  6608. #endregion
  6609. }
  6610. /// <summary>
  6611. /// Source:ROOT\ccm\cimodels
  6612. /// </summary>
  6613. public class MSI_Install_Synclet : CCM_LocalInstallationSynclet
  6614. {
  6615. //Constructor
  6616. public MSI_Install_Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6617. {
  6618. remoteRunspace = RemoteRunspace;
  6619. pSCode = PSCode;
  6620. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  6621. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  6622. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  6623. this.__INSTANCE = true;
  6624. this.WMIObject = WMIObject;
  6625. }
  6626. #region Properties
  6627. internal string __CLASS { get; set; }
  6628. internal string __NAMESPACE { get; set; }
  6629. internal bool __INSTANCE { get; set; }
  6630. internal string __RELPATH { get; set; }
  6631. internal PSObject WMIObject { get; set; }
  6632. internal Runspace remoteRunspace;
  6633. internal TraceSource pSCode;
  6634. #endregion
  6635. }
  6636. /// <summary>
  6637. /// Source:ROOT\ccm\cimodels
  6638. /// </summary>
  6639. public class MSI_Uninstall_Synclet : CCM_LocalInstallationSynclet
  6640. {
  6641. //Constructor
  6642. public MSI_Uninstall_Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6643. {
  6644. remoteRunspace = RemoteRunspace;
  6645. pSCode = PSCode;
  6646. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  6647. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  6648. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  6649. this.__INSTANCE = true;
  6650. this.WMIObject = WMIObject;
  6651. }
  6652. #region Properties
  6653. internal string __CLASS { get; set; }
  6654. internal string __NAMESPACE { get; set; }
  6655. internal bool __INSTANCE { get; set; }
  6656. internal string __RELPATH { get; set; }
  6657. internal PSObject WMIObject { get; set; }
  6658. internal Runspace remoteRunspace;
  6659. internal TraceSource pSCode;
  6660. #endregion
  6661. }
  6662. /// <summary>
  6663. /// Source:ROOT\ccm\cimodels
  6664. /// </summary>
  6665. public class Namespace
  6666. {
  6667. //Constructor
  6668. public Namespace(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6669. {
  6670. remoteRunspace = RemoteRunspace;
  6671. pSCode = PSCode;
  6672. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  6673. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  6674. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  6675. this.__INSTANCE = true;
  6676. this.WMIObject = WMIObject;
  6677. this.Prefix = WMIObject.Properties["Prefix"].Value as String;
  6678. this.XMLNamespace = WMIObject.Properties["XMLNamespace"].Value as String;
  6679. }
  6680. #region Properties
  6681. internal string __CLASS { get; set; }
  6682. internal string __NAMESPACE { get; set; }
  6683. internal bool __INSTANCE { get; set; }
  6684. internal string __RELPATH { get; set; }
  6685. internal PSObject WMIObject { get; set; }
  6686. internal Runspace remoteRunspace;
  6687. internal TraceSource pSCode;
  6688. public String Prefix { get; set; }
  6689. public String XMLNamespace { get; set; }
  6690. #endregion
  6691. }
  6692. /// <summary>
  6693. /// Source:ROOT\ccm\cimodels
  6694. /// </summary>
  6695. public class PrimaryDevice
  6696. {
  6697. //Constructor
  6698. public PrimaryDevice(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6699. {
  6700. remoteRunspace = RemoteRunspace;
  6701. pSCode = PSCode;
  6702. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  6703. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  6704. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  6705. this.__INSTANCE = true;
  6706. this.WMIObject = WMIObject;
  6707. this.IsPrimaryDevice = WMIObject.Properties["IsPrimaryDevice"].Value as Boolean?;
  6708. }
  6709. #region Properties
  6710. internal string __CLASS { get; set; }
  6711. internal string __NAMESPACE { get; set; }
  6712. internal bool __INSTANCE { get; set; }
  6713. internal string __RELPATH { get; set; }
  6714. internal PSObject WMIObject { get; set; }
  6715. internal Runspace remoteRunspace;
  6716. internal TraceSource pSCode;
  6717. public Boolean? IsPrimaryDevice { get; set; }
  6718. #endregion
  6719. }
  6720. /// <summary>
  6721. /// Source:ROOT\ccm\cimodels
  6722. /// </summary>
  6723. public class RAX_Detect_Synclet : CCM_HandlerSynclet
  6724. {
  6725. //Constructor
  6726. public RAX_Detect_Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6727. {
  6728. remoteRunspace = RemoteRunspace;
  6729. pSCode = PSCode;
  6730. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  6731. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  6732. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  6733. this.__INSTANCE = true;
  6734. this.WMIObject = WMIObject;
  6735. this.ApplicationID = WMIObject.Properties["ApplicationID"].Value as String;
  6736. this.ApplicationName = WMIObject.Properties["ApplicationName"].Value as String;
  6737. this.FeedURL = WMIObject.Properties["FeedURL"].Value as String;
  6738. }
  6739. #region Properties
  6740. internal string __CLASS { get; set; }
  6741. internal string __NAMESPACE { get; set; }
  6742. internal bool __INSTANCE { get; set; }
  6743. internal string __RELPATH { get; set; }
  6744. internal PSObject WMIObject { get; set; }
  6745. internal Runspace remoteRunspace;
  6746. internal TraceSource pSCode;
  6747. public String ApplicationID { get; set; }
  6748. public String ApplicationName { get; set; }
  6749. public String FeedURL { get; set; }
  6750. #endregion
  6751. }
  6752. /// <summary>
  6753. /// Source:ROOT\ccm\cimodels
  6754. /// </summary>
  6755. public class RAX_Install_Synclet : RAX_Detect_Synclet
  6756. {
  6757. //Constructor
  6758. public RAX_Install_Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6759. {
  6760. remoteRunspace = RemoteRunspace;
  6761. pSCode = PSCode;
  6762. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  6763. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  6764. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  6765. this.__INSTANCE = true;
  6766. this.WMIObject = WMIObject;
  6767. this.FastRetryExitCodes = WMIObject.Properties["FastRetryExitCodes"].Value as UInt32?[];
  6768. this.MaxExecuteTime = WMIObject.Properties["MaxExecuteTime"].Value as UInt32?;
  6769. this.SuccessExitCodes = WMIObject.Properties["SuccessExitCodes"].Value as UInt32?[];
  6770. }
  6771. #region Properties
  6772. internal string __CLASS { get; set; }
  6773. internal string __NAMESPACE { get; set; }
  6774. internal bool __INSTANCE { get; set; }
  6775. internal string __RELPATH { get; set; }
  6776. internal PSObject WMIObject { get; set; }
  6777. internal Runspace remoteRunspace;
  6778. internal TraceSource pSCode;
  6779. public UInt32?[] FastRetryExitCodes { get; set; }
  6780. public UInt32? MaxExecuteTime { get; set; }
  6781. public UInt32?[] SuccessExitCodes { get; set; }
  6782. #endregion
  6783. }
  6784. /// <summary>
  6785. /// Source:ROOT\ccm\cimodels
  6786. /// </summary>
  6787. public class RAX_Uninstall_Synclet : RAX_Install_Synclet
  6788. {
  6789. //Constructor
  6790. public RAX_Uninstall_Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6791. {
  6792. remoteRunspace = RemoteRunspace;
  6793. pSCode = PSCode;
  6794. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  6795. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  6796. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  6797. this.__INSTANCE = true;
  6798. this.WMIObject = WMIObject;
  6799. }
  6800. #region Properties
  6801. internal string __CLASS { get; set; }
  6802. internal string __NAMESPACE { get; set; }
  6803. internal bool __INSTANCE { get; set; }
  6804. internal string __RELPATH { get; set; }
  6805. internal PSObject WMIObject { get; set; }
  6806. internal Runspace remoteRunspace;
  6807. internal TraceSource pSCode;
  6808. #endregion
  6809. }
  6810. /// <summary>
  6811. /// Source:ROOT\ccm\cimodels
  6812. /// </summary>
  6813. public class ScopeId_C2498A4B_7C31_452B_8A2B_A2D22D73AF40_Application_142fa09a_4a04_470c_8cf7_d07a6a065778_ScriptSetting_0d0bbb2e_1cf6_41a2_b7b8_5fc2838dafe7
  6814. {
  6815. //Constructor
  6816. public ScopeId_C2498A4B_7C31_452B_8A2B_A2D22D73AF40_Application_142fa09a_4a04_470c_8cf7_d07a6a065778_ScriptSetting_0d0bbb2e_1cf6_41a2_b7b8_5fc2838dafe7(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6817. {
  6818. remoteRunspace = RemoteRunspace;
  6819. pSCode = PSCode;
  6820. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  6821. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  6822. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  6823. this.__INSTANCE = true;
  6824. this.WMIObject = WMIObject;
  6825. this.InstancePath = WMIObject.Properties["InstancePath"].Value as String;
  6826. this.Value = WMIObject.Properties["Value"].Value as Int64?;
  6827. }
  6828. #region Properties
  6829. internal string __CLASS { get; set; }
  6830. internal string __NAMESPACE { get; set; }
  6831. internal bool __INSTANCE { get; set; }
  6832. internal string __RELPATH { get; set; }
  6833. internal PSObject WMIObject { get; set; }
  6834. internal Runspace remoteRunspace;
  6835. internal TraceSource pSCode;
  6836. public String InstancePath { get; set; }
  6837. public Int64? Value { get; set; }
  6838. #endregion
  6839. }
  6840. /// <summary>
  6841. /// Source:ROOT\ccm\cimodels
  6842. /// </summary>
  6843. public class ScopeId_C2498A4B_7C31_452B_8A2B_A2D22D73AF40_Application_142fa09a_4a04_470c_8cf7_d07a6a065778_ScriptSetting_116c5bf1_53f3_4025_af55_43305c2cb7dd
  6844. {
  6845. //Constructor
  6846. public ScopeId_C2498A4B_7C31_452B_8A2B_A2D22D73AF40_Application_142fa09a_4a04_470c_8cf7_d07a6a065778_ScriptSetting_116c5bf1_53f3_4025_af55_43305c2cb7dd(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6847. {
  6848. remoteRunspace = RemoteRunspace;
  6849. pSCode = PSCode;
  6850. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  6851. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  6852. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  6853. this.__INSTANCE = true;
  6854. this.WMIObject = WMIObject;
  6855. this.InstancePath = WMIObject.Properties["InstancePath"].Value as String;
  6856. this.Value = WMIObject.Properties["Value"].Value as Boolean?;
  6857. }
  6858. #region Properties
  6859. internal string __CLASS { get; set; }
  6860. internal string __NAMESPACE { get; set; }
  6861. internal bool __INSTANCE { get; set; }
  6862. internal string __RELPATH { get; set; }
  6863. internal PSObject WMIObject { get; set; }
  6864. internal Runspace remoteRunspace;
  6865. internal TraceSource pSCode;
  6866. public String InstancePath { get; set; }
  6867. public Boolean? Value { get; set; }
  6868. #endregion
  6869. }
  6870. /// <summary>
  6871. /// Source:ROOT\ccm\cimodels
  6872. /// </summary>
  6873. public class ScopeId_C2498A4B_7C31_452B_8A2B_A2D22D73AF40_Application_142fa09a_4a04_470c_8cf7_d07a6a065778_ScriptSetting_24f48702_2ce9_49b8_9a65_9ecee21c1af8
  6874. {
  6875. //Constructor
  6876. public ScopeId_C2498A4B_7C31_452B_8A2B_A2D22D73AF40_Application_142fa09a_4a04_470c_8cf7_d07a6a065778_ScriptSetting_24f48702_2ce9_49b8_9a65_9ecee21c1af8(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6877. {
  6878. remoteRunspace = RemoteRunspace;
  6879. pSCode = PSCode;
  6880. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  6881. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  6882. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  6883. this.__INSTANCE = true;
  6884. this.WMIObject = WMIObject;
  6885. this.InstancePath = WMIObject.Properties["InstancePath"].Value as String;
  6886. this.Value = WMIObject.Properties["Value"].Value as Boolean?;
  6887. }
  6888. #region Properties
  6889. internal string __CLASS { get; set; }
  6890. internal string __NAMESPACE { get; set; }
  6891. internal bool __INSTANCE { get; set; }
  6892. internal string __RELPATH { get; set; }
  6893. internal PSObject WMIObject { get; set; }
  6894. internal Runspace remoteRunspace;
  6895. internal TraceSource pSCode;
  6896. public String InstancePath { get; set; }
  6897. public Boolean? Value { get; set; }
  6898. #endregion
  6899. }
  6900. /// <summary>
  6901. /// Source:ROOT\ccm\cimodels
  6902. /// </summary>
  6903. public class ScopeId_C2498A4B_7C31_452B_8A2B_A2D22D73AF40_Application_142fa09a_4a04_470c_8cf7_d07a6a065778_ScriptSetting_290dd3cc_8414_442d_b1a2_7c844ed0b5be
  6904. {
  6905. //Constructor
  6906. public ScopeId_C2498A4B_7C31_452B_8A2B_A2D22D73AF40_Application_142fa09a_4a04_470c_8cf7_d07a6a065778_ScriptSetting_290dd3cc_8414_442d_b1a2_7c844ed0b5be(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6907. {
  6908. remoteRunspace = RemoteRunspace;
  6909. pSCode = PSCode;
  6910. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  6911. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  6912. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  6913. this.__INSTANCE = true;
  6914. this.WMIObject = WMIObject;
  6915. this.InstancePath = WMIObject.Properties["InstancePath"].Value as String;
  6916. this.Value = WMIObject.Properties["Value"].Value as String;
  6917. }
  6918. #region Properties
  6919. internal string __CLASS { get; set; }
  6920. internal string __NAMESPACE { get; set; }
  6921. internal bool __INSTANCE { get; set; }
  6922. internal string __RELPATH { get; set; }
  6923. internal PSObject WMIObject { get; set; }
  6924. internal Runspace remoteRunspace;
  6925. internal TraceSource pSCode;
  6926. public String InstancePath { get; set; }
  6927. public String Value { get; set; }
  6928. #endregion
  6929. }
  6930. /// <summary>
  6931. /// Source:ROOT\ccm\cimodels
  6932. /// </summary>
  6933. public class ScopeId_C2498A4B_7C31_452B_8A2B_A2D22D73AF40_Application_142fa09a_4a04_470c_8cf7_d07a6a065778_ScriptSetting_8c5052c0_049f_49cb_9a02_456946ea5bdc
  6934. {
  6935. //Constructor
  6936. public ScopeId_C2498A4B_7C31_452B_8A2B_A2D22D73AF40_Application_142fa09a_4a04_470c_8cf7_d07a6a065778_ScriptSetting_8c5052c0_049f_49cb_9a02_456946ea5bdc(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6937. {
  6938. remoteRunspace = RemoteRunspace;
  6939. pSCode = PSCode;
  6940. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  6941. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  6942. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  6943. this.__INSTANCE = true;
  6944. this.WMIObject = WMIObject;
  6945. this.InstancePath = WMIObject.Properties["InstancePath"].Value as String;
  6946. this.Value = WMIObject.Properties["Value"].Value as String;
  6947. }
  6948. #region Properties
  6949. internal string __CLASS { get; set; }
  6950. internal string __NAMESPACE { get; set; }
  6951. internal bool __INSTANCE { get; set; }
  6952. internal string __RELPATH { get; set; }
  6953. internal PSObject WMIObject { get; set; }
  6954. internal Runspace remoteRunspace;
  6955. internal TraceSource pSCode;
  6956. public String InstancePath { get; set; }
  6957. public String Value { get; set; }
  6958. #endregion
  6959. }
  6960. /// <summary>
  6961. /// Source:ROOT\ccm\cimodels
  6962. /// </summary>
  6963. public class ScopeId_C2498A4B_7C31_452B_8A2B_A2D22D73AF40_Application_142fa09a_4a04_470c_8cf7_d07a6a065778_ScriptSetting_bdd64169_c026_456b_9b01_fd2fa11a774f
  6964. {
  6965. //Constructor
  6966. public ScopeId_C2498A4B_7C31_452B_8A2B_A2D22D73AF40_Application_142fa09a_4a04_470c_8cf7_d07a6a065778_ScriptSetting_bdd64169_c026_456b_9b01_fd2fa11a774f(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6967. {
  6968. remoteRunspace = RemoteRunspace;
  6969. pSCode = PSCode;
  6970. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  6971. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  6972. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  6973. this.__INSTANCE = true;
  6974. this.WMIObject = WMIObject;
  6975. this.InstancePath = WMIObject.Properties["InstancePath"].Value as String;
  6976. this.Value = WMIObject.Properties["Value"].Value as String;
  6977. }
  6978. #region Properties
  6979. internal string __CLASS { get; set; }
  6980. internal string __NAMESPACE { get; set; }
  6981. internal bool __INSTANCE { get; set; }
  6982. internal string __RELPATH { get; set; }
  6983. internal PSObject WMIObject { get; set; }
  6984. internal Runspace remoteRunspace;
  6985. internal TraceSource pSCode;
  6986. public String InstancePath { get; set; }
  6987. public String Value { get; set; }
  6988. #endregion
  6989. }
  6990. /// <summary>
  6991. /// Source:ROOT\ccm\cimodels
  6992. /// </summary>
  6993. public class ScopeId_C2498A4B_7C31_452B_8A2B_A2D22D73AF40_Application_142fa09a_4a04_470c_8cf7_d07a6a065778_ScriptSetting_c53b0eb5_b533_4df2_b7e6_dee559b5979b
  6994. {
  6995. //Constructor
  6996. public ScopeId_C2498A4B_7C31_452B_8A2B_A2D22D73AF40_Application_142fa09a_4a04_470c_8cf7_d07a6a065778_ScriptSetting_c53b0eb5_b533_4df2_b7e6_dee559b5979b(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  6997. {
  6998. remoteRunspace = RemoteRunspace;
  6999. pSCode = PSCode;
  7000. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  7001. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  7002. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  7003. this.__INSTANCE = true;
  7004. this.WMIObject = WMIObject;
  7005. this.InstancePath = WMIObject.Properties["InstancePath"].Value as String;
  7006. this.Value = WMIObject.Properties["Value"].Value as String;
  7007. }
  7008. #region Properties
  7009. internal string __CLASS { get; set; }
  7010. internal string __NAMESPACE { get; set; }
  7011. internal bool __INSTANCE { get; set; }
  7012. internal string __RELPATH { get; set; }
  7013. internal PSObject WMIObject { get; set; }
  7014. internal Runspace remoteRunspace;
  7015. internal TraceSource pSCode;
  7016. public String InstancePath { get; set; }
  7017. public String Value { get; set; }
  7018. #endregion
  7019. }
  7020. /// <summary>
  7021. /// Source:ROOT\ccm\cimodels
  7022. /// </summary>
  7023. public class ScopeId_C2498A4B_7C31_452B_8A2B_A2D22D73AF40_Application_142fa09a_4a04_470c_8cf7_d07a6a065778_ScriptSetting_f47e9501_4f7f_4406_acf5_f7bb2fb2ef17
  7024. {
  7025. //Constructor
  7026. public ScopeId_C2498A4B_7C31_452B_8A2B_A2D22D73AF40_Application_142fa09a_4a04_470c_8cf7_d07a6a065778_ScriptSetting_f47e9501_4f7f_4406_acf5_f7bb2fb2ef17(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  7027. {
  7028. remoteRunspace = RemoteRunspace;
  7029. pSCode = PSCode;
  7030. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  7031. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  7032. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  7033. this.__INSTANCE = true;
  7034. this.WMIObject = WMIObject;
  7035. this.InstancePath = WMIObject.Properties["InstancePath"].Value as String;
  7036. this.Value = WMIObject.Properties["Value"].Value as String;
  7037. }
  7038. #region Properties
  7039. internal string __CLASS { get; set; }
  7040. internal string __NAMESPACE { get; set; }
  7041. internal bool __INSTANCE { get; set; }
  7042. internal string __RELPATH { get; set; }
  7043. internal PSObject WMIObject { get; set; }
  7044. internal Runspace remoteRunspace;
  7045. internal TraceSource pSCode;
  7046. public String InstancePath { get; set; }
  7047. public String Value { get; set; }
  7048. #endregion
  7049. }
  7050. /// <summary>
  7051. /// Source:ROOT\ccm\cimodels
  7052. /// </summary>
  7053. public class ScopeId_C2498A4B_7C31_452B_8A2B_A2D22D73AF40_Application_142fa09a_4a04_470c_8cf7_d07a6a065778_ScriptSetting_f9763508_e4a8_4072_9ee5_22e7616ff230
  7054. {
  7055. //Constructor
  7056. public ScopeId_C2498A4B_7C31_452B_8A2B_A2D22D73AF40_Application_142fa09a_4a04_470c_8cf7_d07a6a065778_ScriptSetting_f9763508_e4a8_4072_9ee5_22e7616ff230(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  7057. {
  7058. remoteRunspace = RemoteRunspace;
  7059. pSCode = PSCode;
  7060. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  7061. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  7062. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  7063. this.__INSTANCE = true;
  7064. this.WMIObject = WMIObject;
  7065. this.InstancePath = WMIObject.Properties["InstancePath"].Value as String;
  7066. this.Value = WMIObject.Properties["Value"].Value as Boolean?;
  7067. }
  7068. #region Properties
  7069. internal string __CLASS { get; set; }
  7070. internal string __NAMESPACE { get; set; }
  7071. internal bool __INSTANCE { get; set; }
  7072. internal string __RELPATH { get; set; }
  7073. internal PSObject WMIObject { get; set; }
  7074. internal Runspace remoteRunspace;
  7075. internal TraceSource pSCode;
  7076. public String InstancePath { get; set; }
  7077. public Boolean? Value { get; set; }
  7078. #endregion
  7079. }
  7080. /// <summary>
  7081. /// Source:ROOT\ccm\cimodels
  7082. /// </summary>
  7083. public class ScopeId_C2498A4B_7C31_452B_8A2B_A2D22D73AF40_Application_f1802fa8_aa4b_4326_9533_a6c134702013_ScriptSetting_0142664b_36d8_4edb_a9d8_d1ffaf0f4e6a
  7084. {
  7085. //Constructor
  7086. public ScopeId_C2498A4B_7C31_452B_8A2B_A2D22D73AF40_Application_f1802fa8_aa4b_4326_9533_a6c134702013_ScriptSetting_0142664b_36d8_4edb_a9d8_d1ffaf0f4e6a(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  7087. {
  7088. remoteRunspace = RemoteRunspace;
  7089. pSCode = PSCode;
  7090. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  7091. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  7092. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  7093. this.__INSTANCE = true;
  7094. this.WMIObject = WMIObject;
  7095. this.InstancePath = WMIObject.Properties["InstancePath"].Value as String;
  7096. this.Value = WMIObject.Properties["Value"].Value as String;
  7097. }
  7098. #region Properties
  7099. internal string __CLASS { get; set; }
  7100. internal string __NAMESPACE { get; set; }
  7101. internal bool __INSTANCE { get; set; }
  7102. internal string __RELPATH { get; set; }
  7103. internal PSObject WMIObject { get; set; }
  7104. internal Runspace remoteRunspace;
  7105. internal TraceSource pSCode;
  7106. public String InstancePath { get; set; }
  7107. public String Value { get; set; }
  7108. #endregion
  7109. }
  7110. /// <summary>
  7111. /// Source:ROOT\ccm\cimodels
  7112. /// </summary>
  7113. public class ScopeId_C2498A4B_7C31_452B_8A2B_A2D22D73AF40_Application_f1802fa8_aa4b_4326_9533_a6c134702013_ScriptSetting_7c7a8ec1_f9a0_45bc_8405_9566657763a5
  7114. {
  7115. //Constructor
  7116. public ScopeId_C2498A4B_7C31_452B_8A2B_A2D22D73AF40_Application_f1802fa8_aa4b_4326_9533_a6c134702013_ScriptSetting_7c7a8ec1_f9a0_45bc_8405_9566657763a5(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  7117. {
  7118. remoteRunspace = RemoteRunspace;
  7119. pSCode = PSCode;
  7120. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  7121. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  7122. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  7123. this.__INSTANCE = true;
  7124. this.WMIObject = WMIObject;
  7125. this.InstancePath = WMIObject.Properties["InstancePath"].Value as String;
  7126. this.Value = WMIObject.Properties["Value"].Value as String;
  7127. }
  7128. #region Properties
  7129. internal string __CLASS { get; set; }
  7130. internal string __NAMESPACE { get; set; }
  7131. internal bool __INSTANCE { get; set; }
  7132. internal string __RELPATH { get; set; }
  7133. internal PSObject WMIObject { get; set; }
  7134. internal Runspace remoteRunspace;
  7135. internal TraceSource pSCode;
  7136. public String InstancePath { get; set; }
  7137. public String Value { get; set; }
  7138. #endregion
  7139. }
  7140. /// <summary>
  7141. /// Source:ROOT\ccm\cimodels
  7142. /// </summary>
  7143. public class Script_Detect_Synclet : CCM_HandlerSynclet
  7144. {
  7145. //Constructor
  7146. public Script_Detect_Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  7147. {
  7148. remoteRunspace = RemoteRunspace;
  7149. pSCode = PSCode;
  7150. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  7151. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  7152. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  7153. this.__INSTANCE = true;
  7154. this.WMIObject = WMIObject;
  7155. this.RunAs32Bit = WMIObject.Properties["RunAs32Bit"].Value as Boolean?;
  7156. this.ScriptBody = WMIObject.Properties["ScriptBody"].Value as String;
  7157. this.ScriptType = WMIObject.Properties["ScriptType"].Value as byte?;
  7158. }
  7159. #region Properties
  7160. internal string __CLASS { get; set; }
  7161. internal string __NAMESPACE { get; set; }
  7162. internal bool __INSTANCE { get; set; }
  7163. internal string __RELPATH { get; set; }
  7164. internal PSObject WMIObject { get; set; }
  7165. internal Runspace remoteRunspace;
  7166. internal TraceSource pSCode;
  7167. public Boolean? RunAs32Bit { get; set; }
  7168. public String ScriptBody { get; set; }
  7169. public byte? ScriptType { get; set; }
  7170. #endregion
  7171. }
  7172. /// <summary>
  7173. /// Source:ROOT\ccm\cimodels
  7174. /// </summary>
  7175. public class Script_Install_Synclet : CCM_LocalInstallationSynclet
  7176. {
  7177. //Constructor
  7178. public Script_Install_Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  7179. {
  7180. remoteRunspace = RemoteRunspace;
  7181. pSCode = PSCode;
  7182. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  7183. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  7184. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  7185. this.__INSTANCE = true;
  7186. this.WMIObject = WMIObject;
  7187. }
  7188. #region Properties
  7189. internal string __CLASS { get; set; }
  7190. internal string __NAMESPACE { get; set; }
  7191. internal bool __INSTANCE { get; set; }
  7192. internal string __RELPATH { get; set; }
  7193. internal PSObject WMIObject { get; set; }
  7194. internal Runspace remoteRunspace;
  7195. internal TraceSource pSCode;
  7196. #endregion
  7197. }
  7198. /// <summary>
  7199. /// Source:ROOT\ccm\cimodels
  7200. /// </summary>
  7201. public class Script_Uninstall_Synclet : CCM_LocalInstallationSynclet
  7202. {
  7203. //Constructor
  7204. public Script_Uninstall_Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  7205. {
  7206. remoteRunspace = RemoteRunspace;
  7207. pSCode = PSCode;
  7208. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  7209. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  7210. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  7211. this.__INSTANCE = true;
  7212. this.WMIObject = WMIObject;
  7213. }
  7214. #region Properties
  7215. internal string __CLASS { get; set; }
  7216. internal string __NAMESPACE { get; set; }
  7217. internal bool __INSTANCE { get; set; }
  7218. internal string __RELPATH { get; set; }
  7219. internal PSObject WMIObject { get; set; }
  7220. internal Runspace remoteRunspace;
  7221. internal TraceSource pSCode;
  7222. #endregion
  7223. }
  7224. /// <summary>
  7225. /// Source:ROOT\ccm\cimodels
  7226. /// </summary>
  7227. public class ScriptDefinition
  7228. {
  7229. //Constructor
  7230. public ScriptDefinition(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  7231. {
  7232. remoteRunspace = RemoteRunspace;
  7233. pSCode = PSCode;
  7234. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  7235. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  7236. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  7237. this.__INSTANCE = true;
  7238. this.WMIObject = WMIObject;
  7239. this.ScriptBody = WMIObject.Properties["ScriptBody"].Value as String;
  7240. this.ScriptType = WMIObject.Properties["ScriptType"].Value as byte?;
  7241. }
  7242. #region Properties
  7243. internal string __CLASS { get; set; }
  7244. internal string __NAMESPACE { get; set; }
  7245. internal bool __INSTANCE { get; set; }
  7246. internal string __RELPATH { get; set; }
  7247. internal PSObject WMIObject { get; set; }
  7248. internal Runspace remoteRunspace;
  7249. internal TraceSource pSCode;
  7250. public String ScriptBody { get; set; }
  7251. public byte? ScriptType { get; set; }
  7252. #endregion
  7253. }
  7254. /// <summary>
  7255. /// Source:ROOT\ccm\cimodels
  7256. /// </summary>
  7257. public class Security_Ace
  7258. {
  7259. //Constructor
  7260. public Security_Ace(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  7261. {
  7262. remoteRunspace = RemoteRunspace;
  7263. pSCode = PSCode;
  7264. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  7265. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  7266. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  7267. this.__INSTANCE = true;
  7268. this.WMIObject = WMIObject;
  7269. this.AccessMask = WMIObject.Properties["AccessMask"].Value as UInt32?;
  7270. this.AccessSacl = WMIObject.Properties["AccessSacl"].Value as Boolean?;
  7271. this.AceType = WMIObject.Properties["AceType"].Value as byte?;
  7272. this.ContainerInherit = WMIObject.Properties["ContainerInherit"].Value as Boolean?;
  7273. this.DeleteObject = WMIObject.Properties["DeleteObject"].Value as Boolean?;
  7274. this.DomainName = WMIObject.Properties["DomainName"].Value as String;
  7275. this.GenericAll = WMIObject.Properties["GenericAll"].Value as Boolean?;
  7276. this.GenericExecute = WMIObject.Properties["GenericExecute"].Value as Boolean?;
  7277. this.GenericRead = WMIObject.Properties["GenericRead"].Value as Boolean?;
  7278. this.GenericWrite = WMIObject.Properties["GenericWrite"].Value as Boolean?;
  7279. this.InheritedFrom = WMIObject.Properties["InheritedFrom"].Value as String;
  7280. this.InheritOnly = WMIObject.Properties["InheritOnly"].Value as Boolean?;
  7281. this.ObjectInherit = WMIObject.Properties["ObjectInherit"].Value as Boolean?;
  7282. this.ReadControl = WMIObject.Properties["ReadControl"].Value as Boolean?;
  7283. this.Synchronize = WMIObject.Properties["Synchronize"].Value as Boolean?;
  7284. this.Trustee = WMIObject.Properties["Trustee"].Value as String;
  7285. this.UserName = WMIObject.Properties["UserName"].Value as String;
  7286. this.WriteDACL = WMIObject.Properties["WriteDACL"].Value as Boolean?;
  7287. this.WriteOwner = WMIObject.Properties["WriteOwner"].Value as Boolean?;
  7288. }
  7289. #region Properties
  7290. internal string __CLASS { get; set; }
  7291. internal string __NAMESPACE { get; set; }
  7292. internal bool __INSTANCE { get; set; }
  7293. internal string __RELPATH { get; set; }
  7294. internal PSObject WMIObject { get; set; }
  7295. internal Runspace remoteRunspace;
  7296. internal TraceSource pSCode;
  7297. public UInt32? AccessMask { get; set; }
  7298. public Boolean? AccessSacl { get; set; }
  7299. public byte? AceType { get; set; }
  7300. public Boolean? ContainerInherit { get; set; }
  7301. public Boolean? DeleteObject { get; set; }
  7302. public String DomainName { get; set; }
  7303. public Boolean? GenericAll { get; set; }
  7304. public Boolean? GenericExecute { get; set; }
  7305. public Boolean? GenericRead { get; set; }
  7306. public Boolean? GenericWrite { get; set; }
  7307. public String InheritedFrom { get; set; }
  7308. public Boolean? InheritOnly { get; set; }
  7309. public Boolean? ObjectInherit { get; set; }
  7310. public Boolean? ReadControl { get; set; }
  7311. public Boolean? Synchronize { get; set; }
  7312. public String Trustee { get; set; }
  7313. public String UserName { get; set; }
  7314. public Boolean? WriteDACL { get; set; }
  7315. public Boolean? WriteOwner { get; set; }
  7316. #endregion
  7317. }
  7318. /// <summary>
  7319. /// Source:ROOT\ccm\cimodels
  7320. /// </summary>
  7321. public class Security_Acl
  7322. {
  7323. //Constructor
  7324. public Security_Acl(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  7325. {
  7326. remoteRunspace = RemoteRunspace;
  7327. pSCode = PSCode;
  7328. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  7329. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  7330. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  7331. this.__INSTANCE = true;
  7332. this.WMIObject = WMIObject;
  7333. this.Aces = WMIObject.Properties["Aces"].Value as Security_Ace[];
  7334. this.AutoPropagate = WMIObject.Properties["AutoPropagate"].Value as Boolean?;
  7335. this.Protected = WMIObject.Properties["Protected"].Value as Boolean?;
  7336. }
  7337. #region Properties
  7338. internal string __CLASS { get; set; }
  7339. internal string __NAMESPACE { get; set; }
  7340. internal bool __INSTANCE { get; set; }
  7341. internal string __RELPATH { get; set; }
  7342. internal PSObject WMIObject { get; set; }
  7343. internal Runspace remoteRunspace;
  7344. internal TraceSource pSCode;
  7345. public Security_Ace[] Aces { get; set; }
  7346. public Boolean? AutoPropagate { get; set; }
  7347. public Boolean? Protected { get; set; }
  7348. #endregion
  7349. }
  7350. /// <summary>
  7351. /// Source:ROOT\ccm\cimodels
  7352. /// </summary>
  7353. public class Security_DirectoryAce : Security_Ace
  7354. {
  7355. //Constructor
  7356. public Security_DirectoryAce(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  7357. {
  7358. remoteRunspace = RemoteRunspace;
  7359. pSCode = PSCode;
  7360. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  7361. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  7362. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  7363. this.__INSTANCE = true;
  7364. this.WMIObject = WMIObject;
  7365. this.AddFile = WMIObject.Properties["AddFile"].Value as Boolean?;
  7366. this.AddSubdirectory = WMIObject.Properties["AddSubdirectory"].Value as Boolean?;
  7367. this.AppendData = WMIObject.Properties["AppendData"].Value as Boolean?;
  7368. this.DeleteChild = WMIObject.Properties["DeleteChild"].Value as Boolean?;
  7369. this.Execute = WMIObject.Properties["Execute"].Value as Boolean?;
  7370. this.ListDirectory = WMIObject.Properties["ListDirectory"].Value as Boolean?;
  7371. this.ReadAttributes = WMIObject.Properties["ReadAttributes"].Value as Boolean?;
  7372. this.ReadData = WMIObject.Properties["ReadData"].Value as Boolean?;
  7373. this.ReadExtendedAttributes = WMIObject.Properties["ReadExtendedAttributes"].Value as Boolean?;
  7374. this.Traverse = WMIObject.Properties["Traverse"].Value as Boolean?;
  7375. this.WriteAttributes = WMIObject.Properties["WriteAttributes"].Value as Boolean?;
  7376. this.WriteData = WMIObject.Properties["WriteData"].Value as Boolean?;
  7377. this.WriteExtendedAttributes = WMIObject.Properties["WriteExtendedAttributes"].Value as Boolean?;
  7378. }
  7379. #region Properties
  7380. internal string __CLASS { get; set; }
  7381. internal string __NAMESPACE { get; set; }
  7382. internal bool __INSTANCE { get; set; }
  7383. internal string __RELPATH { get; set; }
  7384. internal PSObject WMIObject { get; set; }
  7385. internal Runspace remoteRunspace;
  7386. internal TraceSource pSCode;
  7387. public Boolean? AddFile { get; set; }
  7388. public Boolean? AddSubdirectory { get; set; }
  7389. public Boolean? AppendData { get; set; }
  7390. public Boolean? DeleteChild { get; set; }
  7391. public Boolean? Execute { get; set; }
  7392. public Boolean? ListDirectory { get; set; }
  7393. public Boolean? ReadAttributes { get; set; }
  7394. public Boolean? ReadData { get; set; }
  7395. public Boolean? ReadExtendedAttributes { get; set; }
  7396. public Boolean? Traverse { get; set; }
  7397. public Boolean? WriteAttributes { get; set; }
  7398. public Boolean? WriteData { get; set; }
  7399. public Boolean? WriteExtendedAttributes { get; set; }
  7400. #endregion
  7401. }
  7402. /// <summary>
  7403. /// Source:ROOT\ccm\cimodels
  7404. /// </summary>
  7405. public class Security_DirectorySecurityDescriptor : Security_SecurableObject
  7406. {
  7407. //Constructor
  7408. public Security_DirectorySecurityDescriptor(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  7409. {
  7410. remoteRunspace = RemoteRunspace;
  7411. pSCode = PSCode;
  7412. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  7413. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  7414. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  7415. this.__INSTANCE = true;
  7416. this.WMIObject = WMIObject;
  7417. this.BasePath = WMIObject.Properties["BasePath"].Value as String;
  7418. this.FileSystemRedirectionMode = WMIObject.Properties["FileSystemRedirectionMode"].Value as byte?;
  7419. this.Name = WMIObject.Properties["Name"].Value as String;
  7420. this.Path = WMIObject.Properties["Path"].Value as String;
  7421. this.SearchDepth = WMIObject.Properties["SearchDepth"].Value as byte?;
  7422. }
  7423. #region Properties
  7424. internal string __CLASS { get; set; }
  7425. internal string __NAMESPACE { get; set; }
  7426. internal bool __INSTANCE { get; set; }
  7427. internal string __RELPATH { get; set; }
  7428. internal PSObject WMIObject { get; set; }
  7429. internal Runspace remoteRunspace;
  7430. internal TraceSource pSCode;
  7431. public String BasePath { get; set; }
  7432. public byte? FileSystemRedirectionMode { get; set; }
  7433. public String Name { get; set; }
  7434. public String Path { get; set; }
  7435. public byte? SearchDepth { get; set; }
  7436. #endregion
  7437. }
  7438. /// <summary>
  7439. /// Source:ROOT\ccm\cimodels
  7440. /// </summary>
  7441. public class Security_FileAce : Security_Ace
  7442. {
  7443. //Constructor
  7444. public Security_FileAce(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  7445. {
  7446. remoteRunspace = RemoteRunspace;
  7447. pSCode = PSCode;
  7448. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  7449. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  7450. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  7451. this.__INSTANCE = true;
  7452. this.WMIObject = WMIObject;
  7453. this.AppendData = WMIObject.Properties["AppendData"].Value as Boolean?;
  7454. this.Execute = WMIObject.Properties["Execute"].Value as Boolean?;
  7455. this.ReadAttributes = WMIObject.Properties["ReadAttributes"].Value as Boolean?;
  7456. this.ReadData = WMIObject.Properties["ReadData"].Value as Boolean?;
  7457. this.ReadExtendedAttributes = WMIObject.Properties["ReadExtendedAttributes"].Value as Boolean?;
  7458. this.WriteAttributes = WMIObject.Properties["WriteAttributes"].Value as Boolean?;
  7459. this.WriteData = WMIObject.Properties["WriteData"].Value as Boolean?;
  7460. this.WriteExtendedAttributes = WMIObject.Properties["WriteExtendedAttributes"].Value as Boolean?;
  7461. }
  7462. #region Properties
  7463. internal string __CLASS { get; set; }
  7464. internal string __NAMESPACE { get; set; }
  7465. internal bool __INSTANCE { get; set; }
  7466. internal string __RELPATH { get; set; }
  7467. internal PSObject WMIObject { get; set; }
  7468. internal Runspace remoteRunspace;
  7469. internal TraceSource pSCode;
  7470. public Boolean? AppendData { get; set; }
  7471. public Boolean? Execute { get; set; }
  7472. public Boolean? ReadAttributes { get; set; }
  7473. public Boolean? ReadData { get; set; }
  7474. public Boolean? ReadExtendedAttributes { get; set; }
  7475. public Boolean? WriteAttributes { get; set; }
  7476. public Boolean? WriteData { get; set; }
  7477. public Boolean? WriteExtendedAttributes { get; set; }
  7478. #endregion
  7479. }
  7480. /// <summary>
  7481. /// Source:ROOT\ccm\cimodels
  7482. /// </summary>
  7483. public class Security_FileSecurityDescriptor : Security_SecurableObject
  7484. {
  7485. //Constructor
  7486. public Security_FileSecurityDescriptor(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  7487. {
  7488. remoteRunspace = RemoteRunspace;
  7489. pSCode = PSCode;
  7490. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  7491. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  7492. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  7493. this.__INSTANCE = true;
  7494. this.WMIObject = WMIObject;
  7495. this.BasePath = WMIObject.Properties["BasePath"].Value as String;
  7496. this.FileSystemRedirectionMode = WMIObject.Properties["FileSystemRedirectionMode"].Value as byte?;
  7497. this.Name = WMIObject.Properties["Name"].Value as String;
  7498. this.Path = WMIObject.Properties["Path"].Value as String;
  7499. this.SearchDepth = WMIObject.Properties["SearchDepth"].Value as byte?;
  7500. }
  7501. #region Properties
  7502. internal string __CLASS { get; set; }
  7503. internal string __NAMESPACE { get; set; }
  7504. internal bool __INSTANCE { get; set; }
  7505. internal string __RELPATH { get; set; }
  7506. internal PSObject WMIObject { get; set; }
  7507. internal Runspace remoteRunspace;
  7508. internal TraceSource pSCode;
  7509. public String BasePath { get; set; }
  7510. public byte? FileSystemRedirectionMode { get; set; }
  7511. public String Name { get; set; }
  7512. public String Path { get; set; }
  7513. public byte? SearchDepth { get; set; }
  7514. #endregion
  7515. }
  7516. /// <summary>
  7517. /// Source:ROOT\ccm\cimodels
  7518. /// </summary>
  7519. public class Security_RegistryKeyAce : Security_Ace
  7520. {
  7521. //Constructor
  7522. public Security_RegistryKeyAce(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  7523. {
  7524. remoteRunspace = RemoteRunspace;
  7525. pSCode = PSCode;
  7526. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  7527. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  7528. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  7529. this.__INSTANCE = true;
  7530. this.WMIObject = WMIObject;
  7531. this.CreateLink = WMIObject.Properties["CreateLink"].Value as Boolean?;
  7532. this.CreateSubKey = WMIObject.Properties["CreateSubKey"].Value as Boolean?;
  7533. this.EnumerateSubKeys = WMIObject.Properties["EnumerateSubKeys"].Value as Boolean?;
  7534. this.Notify = WMIObject.Properties["Notify"].Value as Boolean?;
  7535. this.QueryValue = WMIObject.Properties["QueryValue"].Value as Boolean?;
  7536. this.SetValue = WMIObject.Properties["SetValue"].Value as Boolean?;
  7537. }
  7538. #region Properties
  7539. internal string __CLASS { get; set; }
  7540. internal string __NAMESPACE { get; set; }
  7541. internal bool __INSTANCE { get; set; }
  7542. internal string __RELPATH { get; set; }
  7543. internal PSObject WMIObject { get; set; }
  7544. internal Runspace remoteRunspace;
  7545. internal TraceSource pSCode;
  7546. public Boolean? CreateLink { get; set; }
  7547. public Boolean? CreateSubKey { get; set; }
  7548. public Boolean? EnumerateSubKeys { get; set; }
  7549. public Boolean? Notify { get; set; }
  7550. public Boolean? QueryValue { get; set; }
  7551. public Boolean? SetValue { get; set; }
  7552. #endregion
  7553. }
  7554. /// <summary>
  7555. /// Source:ROOT\ccm\cimodels
  7556. /// </summary>
  7557. public class Security_RegistrySecurityDescriptor : Security_SecurableObject
  7558. {
  7559. //Constructor
  7560. public Security_RegistrySecurityDescriptor(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  7561. {
  7562. remoteRunspace = RemoteRunspace;
  7563. pSCode = PSCode;
  7564. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  7565. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  7566. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  7567. this.__INSTANCE = true;
  7568. this.WMIObject = WMIObject;
  7569. this.Hive = WMIObject.Properties["Hive"].Value as byte?;
  7570. this.KeyPath = WMIObject.Properties["KeyPath"].Value as String;
  7571. }
  7572. #region Properties
  7573. internal string __CLASS { get; set; }
  7574. internal string __NAMESPACE { get; set; }
  7575. internal bool __INSTANCE { get; set; }
  7576. internal string __RELPATH { get; set; }
  7577. internal PSObject WMIObject { get; set; }
  7578. internal Runspace remoteRunspace;
  7579. internal TraceSource pSCode;
  7580. public byte? Hive { get; set; }
  7581. public String KeyPath { get; set; }
  7582. #endregion
  7583. }
  7584. /// <summary>
  7585. /// Source:ROOT\ccm\cimodels
  7586. /// </summary>
  7587. public class Security_SecurableObject
  7588. {
  7589. //Constructor
  7590. public Security_SecurableObject(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  7591. {
  7592. remoteRunspace = RemoteRunspace;
  7593. pSCode = PSCode;
  7594. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  7595. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  7596. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  7597. this.__INSTANCE = true;
  7598. this.WMIObject = WMIObject;
  7599. this.ObjectId = WMIObject.Properties["ObjectId"].Value as String;
  7600. this.ObjectType = WMIObject.Properties["ObjectType"].Value as String;
  7601. this.Sd = WMIObject.Properties["Sd"].Value as Security_SecurityDescriptor;
  7602. }
  7603. #region Properties
  7604. internal string __CLASS { get; set; }
  7605. internal string __NAMESPACE { get; set; }
  7606. internal bool __INSTANCE { get; set; }
  7607. internal string __RELPATH { get; set; }
  7608. internal PSObject WMIObject { get; set; }
  7609. internal Runspace remoteRunspace;
  7610. internal TraceSource pSCode;
  7611. public String ObjectId { get; set; }
  7612. public String ObjectType { get; set; }
  7613. public Security_SecurityDescriptor Sd { get; set; }
  7614. #endregion
  7615. }
  7616. /// <summary>
  7617. /// Source:ROOT\ccm\cimodels
  7618. /// </summary>
  7619. public class Security_SecurityDescriptor
  7620. {
  7621. //Constructor
  7622. public Security_SecurityDescriptor(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  7623. {
  7624. remoteRunspace = RemoteRunspace;
  7625. pSCode = PSCode;
  7626. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  7627. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  7628. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  7629. this.__INSTANCE = true;
  7630. this.WMIObject = WMIObject;
  7631. this.Dacl = WMIObject.Properties["Dacl"].Value as Security_Acl;
  7632. this.Group = WMIObject.Properties["Group"].Value as String;
  7633. this.Owner = WMIObject.Properties["Owner"].Value as String;
  7634. this.Sacl = WMIObject.Properties["Sacl"].Value as Security_Acl;
  7635. }
  7636. #region Properties
  7637. internal string __CLASS { get; set; }
  7638. internal string __NAMESPACE { get; set; }
  7639. internal bool __INSTANCE { get; set; }
  7640. internal string __RELPATH { get; set; }
  7641. internal PSObject WMIObject { get; set; }
  7642. internal Runspace remoteRunspace;
  7643. internal TraceSource pSCode;
  7644. public Security_Acl Dacl { get; set; }
  7645. public String Group { get; set; }
  7646. public String Owner { get; set; }
  7647. public Security_Acl Sacl { get; set; }
  7648. #endregion
  7649. }
  7650. /// <summary>
  7651. /// Source:ROOT\ccm\cimodels
  7652. /// </summary>
  7653. public class Synclet
  7654. {
  7655. //Constructor
  7656. public Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  7657. {
  7658. remoteRunspace = RemoteRunspace;
  7659. pSCode = PSCode;
  7660. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  7661. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  7662. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  7663. this.__INSTANCE = true;
  7664. this.WMIObject = WMIObject;
  7665. this.ClassName = WMIObject.Properties["ClassName"].Value as String;
  7666. }
  7667. #region Properties
  7668. internal string __CLASS { get; set; }
  7669. internal string __NAMESPACE { get; set; }
  7670. internal bool __INSTANCE { get; set; }
  7671. internal string __RELPATH { get; set; }
  7672. internal PSObject WMIObject { get; set; }
  7673. internal Runspace remoteRunspace;
  7674. internal TraceSource pSCode;
  7675. public String ClassName { get; set; }
  7676. #endregion
  7677. }
  7678. /// <summary>
  7679. /// Source:ROOT\ccm\cimodels
  7680. /// </summary>
  7681. public class UserProperty
  7682. {
  7683. //Constructor
  7684. public UserProperty(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  7685. {
  7686. remoteRunspace = RemoteRunspace;
  7687. pSCode = PSCode;
  7688. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  7689. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  7690. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  7691. this.__INSTANCE = true;
  7692. this.WMIObject = WMIObject;
  7693. this.IsCloudUser = WMIObject.Properties["IsCloudUser"].Value as Boolean?;
  7694. }
  7695. #region Properties
  7696. internal string __CLASS { get; set; }
  7697. internal string __NAMESPACE { get; set; }
  7698. internal bool __INSTANCE { get; set; }
  7699. internal string __RELPATH { get; set; }
  7700. internal PSObject WMIObject { get; set; }
  7701. internal Runspace remoteRunspace;
  7702. internal TraceSource pSCode;
  7703. public Boolean? IsCloudUser { get; set; }
  7704. #endregion
  7705. }
  7706. /// <summary>
  7707. /// Source:ROOT\ccm\cimodels
  7708. /// </summary>
  7709. public class WebApp_Detect_Synclet : CCM_HandlerSynclet
  7710. {
  7711. //Constructor
  7712. public WebApp_Detect_Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  7713. {
  7714. remoteRunspace = RemoteRunspace;
  7715. pSCode = PSCode;
  7716. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  7717. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  7718. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  7719. this.__INSTANCE = true;
  7720. this.WMIObject = WMIObject;
  7721. this.LocalAppId = WMIObject.Properties["LocalAppId"].Value as String;
  7722. this.LocalAppVersion = WMIObject.Properties["LocalAppVersion"].Value as UInt32?;
  7723. this.TargetUrl = WMIObject.Properties["TargetUrl"].Value as String;
  7724. }
  7725. #region Properties
  7726. internal string __CLASS { get; set; }
  7727. internal string __NAMESPACE { get; set; }
  7728. internal bool __INSTANCE { get; set; }
  7729. internal string __RELPATH { get; set; }
  7730. internal PSObject WMIObject { get; set; }
  7731. internal Runspace remoteRunspace;
  7732. internal TraceSource pSCode;
  7733. public String LocalAppId { get; set; }
  7734. public UInt32? LocalAppVersion { get; set; }
  7735. public String TargetUrl { get; set; }
  7736. #endregion
  7737. }
  7738. /// <summary>
  7739. /// Source:ROOT\ccm\cimodels
  7740. /// </summary>
  7741. public class WebApp_Install_Synclet : CCM_HandlerSynclet
  7742. {
  7743. //Constructor
  7744. public WebApp_Install_Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  7745. {
  7746. remoteRunspace = RemoteRunspace;
  7747. pSCode = PSCode;
  7748. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  7749. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  7750. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  7751. this.__INSTANCE = true;
  7752. this.WMIObject = WMIObject;
  7753. this.LocalAppId = WMIObject.Properties["LocalAppId"].Value as String;
  7754. this.LocalAppVersion = WMIObject.Properties["LocalAppVersion"].Value as UInt32?;
  7755. this.TargetUrl = WMIObject.Properties["TargetUrl"].Value as String;
  7756. }
  7757. #region Properties
  7758. internal string __CLASS { get; set; }
  7759. internal string __NAMESPACE { get; set; }
  7760. internal bool __INSTANCE { get; set; }
  7761. internal string __RELPATH { get; set; }
  7762. internal PSObject WMIObject { get; set; }
  7763. internal Runspace remoteRunspace;
  7764. internal TraceSource pSCode;
  7765. public String LocalAppId { get; set; }
  7766. public UInt32? LocalAppVersion { get; set; }
  7767. public String TargetUrl { get; set; }
  7768. #endregion
  7769. }
  7770. /// <summary>
  7771. /// Source:ROOT\ccm\cimodels
  7772. /// </summary>
  7773. public class WebApp_Uninstall_Synclet : CCM_HandlerSynclet
  7774. {
  7775. //Constructor
  7776. public WebApp_Uninstall_Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  7777. {
  7778. remoteRunspace = RemoteRunspace;
  7779. pSCode = PSCode;
  7780. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  7781. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  7782. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  7783. this.__INSTANCE = true;
  7784. this.WMIObject = WMIObject;
  7785. this.LocalAppId = WMIObject.Properties["LocalAppId"].Value as String;
  7786. this.LocalAppVersion = WMIObject.Properties["LocalAppVersion"].Value as UInt32?;
  7787. this.TargetUrl = WMIObject.Properties["TargetUrl"].Value as String;
  7788. }
  7789. #region Properties
  7790. internal string __CLASS { get; set; }
  7791. internal string __NAMESPACE { get; set; }
  7792. internal bool __INSTANCE { get; set; }
  7793. internal string __RELPATH { get; set; }
  7794. internal PSObject WMIObject { get; set; }
  7795. internal Runspace remoteRunspace;
  7796. internal TraceSource pSCode;
  7797. public String LocalAppId { get; set; }
  7798. public UInt32? LocalAppVersion { get; set; }
  7799. public String TargetUrl { get; set; }
  7800. #endregion
  7801. }
  7802. /// <summary>
  7803. /// Source:ROOT\ccm\cimodels
  7804. /// </summary>
  7805. public class Windows8App_Detect_Synclet : CCM_HandlerSynclet
  7806. {
  7807. //Constructor
  7808. public Windows8App_Detect_Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  7809. {
  7810. remoteRunspace = RemoteRunspace;
  7811. pSCode = PSCode;
  7812. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  7813. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  7814. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  7815. this.__INSTANCE = true;
  7816. this.WMIObject = WMIObject;
  7817. this.DisplayName = WMIObject.Properties["DisplayName"].Value as String;
  7818. this.Frameworks = WMIObject.Properties["Frameworks"].Value as String;
  7819. this.IsBundle = WMIObject.Properties["IsBundle"].Value as Boolean?;
  7820. this.IsDeepLink = WMIObject.Properties["IsDeepLink"].Value as Boolean?;
  7821. this.Name = WMIObject.Properties["Name"].Value as String;
  7822. this.ProcessorArchitecture = WMIObject.Properties["ProcessorArchitecture"].Value as String;
  7823. this.Publisher = WMIObject.Properties["Publisher"].Value as String;
  7824. this.ResourceId = WMIObject.Properties["ResourceId"].Value as String;
  7825. this.Version = WMIObject.Properties["Version"].Value as String;
  7826. }
  7827. #region Properties
  7828. internal string __CLASS { get; set; }
  7829. internal string __NAMESPACE { get; set; }
  7830. internal bool __INSTANCE { get; set; }
  7831. internal string __RELPATH { get; set; }
  7832. internal PSObject WMIObject { get; set; }
  7833. internal Runspace remoteRunspace;
  7834. internal TraceSource pSCode;
  7835. public String DisplayName { get; set; }
  7836. public String Frameworks { get; set; }
  7837. public Boolean? IsBundle { get; set; }
  7838. public Boolean? IsDeepLink { get; set; }
  7839. public String Name { get; set; }
  7840. public String ProcessorArchitecture { get; set; }
  7841. public String Publisher { get; set; }
  7842. public String ResourceId { get; set; }
  7843. public String Version { get; set; }
  7844. #endregion
  7845. }
  7846. /// <summary>
  7847. /// Source:ROOT\ccm\cimodels
  7848. /// </summary>
  7849. public class Windows8App_Install_Synclet : CCM_HandlerSynclet
  7850. {
  7851. //Constructor
  7852. public Windows8App_Install_Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  7853. {
  7854. remoteRunspace = RemoteRunspace;
  7855. pSCode = PSCode;
  7856. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  7857. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  7858. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  7859. this.__INSTANCE = true;
  7860. this.WMIObject = WMIObject;
  7861. this.DisplayName = WMIObject.Properties["DisplayName"].Value as String;
  7862. this.FastRetryExitCodes = WMIObject.Properties["FastRetryExitCodes"].Value as UInt32?[];
  7863. this.Frameworks = WMIObject.Properties["Frameworks"].Value as String;
  7864. this.IsDeepLink = WMIObject.Properties["IsDeepLink"].Value as Boolean?;
  7865. this.MaxExecuteTime = WMIObject.Properties["MaxExecuteTime"].Value as UInt32?;
  7866. this.Name = WMIObject.Properties["Name"].Value as String;
  7867. this.PackageUri = WMIObject.Properties["PackageUri"].Value as String;
  7868. this.ProcessorArchitecture = WMIObject.Properties["ProcessorArchitecture"].Value as String;
  7869. this.Publisher = WMIObject.Properties["Publisher"].Value as String;
  7870. this.ResourceId = WMIObject.Properties["ResourceId"].Value as String;
  7871. this.SuccessExitCodes = WMIObject.Properties["SuccessExitCodes"].Value as UInt32?[];
  7872. this.Version = WMIObject.Properties["Version"].Value as String;
  7873. }
  7874. #region Properties
  7875. internal string __CLASS { get; set; }
  7876. internal string __NAMESPACE { get; set; }
  7877. internal bool __INSTANCE { get; set; }
  7878. internal string __RELPATH { get; set; }
  7879. internal PSObject WMIObject { get; set; }
  7880. internal Runspace remoteRunspace;
  7881. internal TraceSource pSCode;
  7882. public String DisplayName { get; set; }
  7883. public UInt32?[] FastRetryExitCodes { get; set; }
  7884. public String Frameworks { get; set; }
  7885. public Boolean? IsDeepLink { get; set; }
  7886. public UInt32? MaxExecuteTime { get; set; }
  7887. public String Name { get; set; }
  7888. public String PackageUri { get; set; }
  7889. public String ProcessorArchitecture { get; set; }
  7890. public String Publisher { get; set; }
  7891. public String ResourceId { get; set; }
  7892. public UInt32?[] SuccessExitCodes { get; set; }
  7893. public String Version { get; set; }
  7894. #endregion
  7895. }
  7896. /// <summary>
  7897. /// Source:ROOT\ccm\cimodels
  7898. /// </summary>
  7899. public class Windows8App_Uninstall_Synclet : CCM_HandlerSynclet
  7900. {
  7901. //Constructor
  7902. public Windows8App_Uninstall_Synclet(PSObject WMIObject, Runspace RemoteRunspace, TraceSource PSCode)
  7903. {
  7904. remoteRunspace = RemoteRunspace;
  7905. pSCode = PSCode;
  7906. this.__CLASS = WMIObject.Properties["__CLASS"].Value as string;
  7907. this.__NAMESPACE = WMIObject.Properties["__NAMESPACE"].Value as string;
  7908. this.__RELPATH = WMIObject.Properties["__RELPATH"].Value as string;
  7909. this.__INSTANCE = true;
  7910. this.WMIObject = WMIObject;
  7911. this.DisplayName = WMIObject.Properties["DisplayName"].Value as String;
  7912. this.FastRetryExitCodes = WMIObject.Properties["FastRetryExitCodes"].Value as UInt32?[];
  7913. this.IsDeepLink = WMIObject.Properties["IsDeepLink"].Value as Boolean?;
  7914. this.MaxExecuteTime = WMIObject.Properties["MaxExecuteTime"].Value as UInt32?;
  7915. this.Name = WMIObject.Properties["Name"].Value as String;
  7916. this.ProcessorArchitecture = WMIObject.Properties["ProcessorArchitecture"].Value as String;
  7917. this.Publisher = WMIObject.Properties["Publisher"].Value as String;
  7918. this.ResourceId = WMIObject.Properties["ResourceId"].Value as String;
  7919. this.SuccessExitCodes = WMIObject.Properties["SuccessExitCodes"].Value as UInt32?[];
  7920. this.Version = WMIObject.Properties["Version"].Value as String;
  7921. }
  7922. #region Properties
  7923. internal string __CLASS { get; set; }
  7924. internal string __NAMESPACE { get; set; }
  7925. internal bool __INSTANCE { get; set; }
  7926. internal string __RELPATH { get; set; }
  7927. internal PSObject WMIObject { get; set; }
  7928. internal Runspace remoteRunspace;
  7929. internal TraceSource pSCode;
  7930. public String DisplayName { get; set; }
  7931. public UInt32?[] FastRetryExitCodes { get; set; }
  7932. public Boolean? IsDeepLink { get; set; }
  7933. public UInt32? MaxExecuteTime { get; set; }
  7934. public String Name { get; set; }
  7935. public String ProcessorArchitecture { get; set; }
  7936. public String Publisher { get; set; }
  7937. public String ResourceId { get; set; }
  7938. public UInt32?[] SuccessExitCodes { get; set; }
  7939. public String Version { get; set; }
  7940. #endregion
  7941. }
  7942. */
  7943. }
  7944. #endif
  7945. }