PowerShell_PC_Aide

SmsCfgRc.cpl + Software-Center (CCM).ps1

Jun 10th, 2019
445
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <#
  2. -------------------------------------------------------------------------------------------------------------------------
  3.     SRC: https://www.systemcenterdudes.com/configuration-manager-2012-client-command-list/
  4.     Doc.MS: https://blogs.technet.microsoft.com/charlesa_us/2015/03/07/triggering-configmgr-client-actions-with-wmic-without-pesky-right-click-tools/
  5.  
  6.     Available CMD: WMIC <- pending...
  7.    
  8.     Elevated (powershell start powershell -v runAs): Y
  9.  
  10.     PowerShell ver. 3
  11.  
  12.     FR: Recuperation de strategie ordinateur et cycle d'evalutation
  13.  
  14.     GUI:  control \windows\ccm\SmsCfgRc.cpl,,2 http://pix.toile-libre.org/upload/original/1559744113.png
  15.  
  16.     Syntax: WMIC /namespace:\\root\ccm path sms_client CALL TriggerSchedule {TriggerI} /NOINTERACTIVE
  17.  
  18. -------------------------------------------------------------------------------------------------------------------------
  19. Trigger Codes:
  20. {00000000-0000-0000-0000-000000000001} Hardware Inventory
  21. {00000000-0000-0000-0000-000000000002} Software Inventory
  22. {00000000-0000-0000-0000-000000000003} Discovery Inventory
  23. {00000000-0000-0000-0000-000000000010} File Collection
  24. {00000000-0000-0000-0000-000000000011} IDMIF Collection
  25. {00000000-0000-0000-0000-000000000012} Client Machine Authentication
  26. {00000000-0000-0000-0000-000000000021} Request Machine Assignments
  27. {00000000-0000-0000-0000-000000000022} Evaluate Machine Policies
  28. {00000000-0000-0000-0000-000000000023} Refresh Default MP Task
  29. {00000000-0000-0000-0000-000000000024} LS (Location Service) Refresh Locations Task
  30. {00000000-0000-0000-0000-000000000025} LS (Location Service) Timeout Refresh Task
  31. {00000000-0000-0000-0000-000000000026} Policy Agent Request Assignment (User)
  32. {00000000-0000-0000-0000-000000000027} Policy Agent Evaluate Assignment (User)
  33. {00000000-0000-0000-0000-000000000031} Software Metering Generating Usage Report
  34. {00000000-0000-0000-0000-000000000032} Source Update Message
  35. {00000000-0000-0000-0000-000000000037} Clearing proxy settings cache
  36. {00000000-0000-0000-0000-000000000040} Machine Policy Agent Cleanup
  37. {00000000-0000-0000-0000-000000000041} User Policy Agent Cleanup
  38. {00000000-0000-0000-0000-000000000042} Policy Agent Validate Machine Policy / Assignment
  39. {00000000-0000-0000-0000-000000000043} Policy Agent Validate User Policy / Assignment
  40. {00000000-0000-0000-0000-000000000051} Retrying/Refreshing certificates in AD on MP
  41. {00000000-0000-0000-0000-000000000061} Peer DP Status reporting
  42. {00000000-0000-0000-0000-000000000062} Peer DP Pending package check schedule
  43. {00000000-0000-0000-0000-000000000063} SUM Updates install schedule
  44. {00000000-0000-0000-0000-000000000071} NAP action
  45. {00000000-0000-0000-0000-000000000101} Hardware Inventory Collection Cycle
  46. {00000000-0000-0000-0000-000000000102} Software Inventory Collection Cycle
  47. {00000000-0000-0000-0000-000000000103} Discovery Data Collection Cycle
  48. {00000000-0000-0000-0000-000000000104} File Collection Cycle
  49. {00000000-0000-0000-0000-000000000105} IDMIF Collection Cycle
  50. {00000000-0000-0000-0000-000000000106} Software Metering Usage Report Cycle
  51. {00000000-0000-0000-0000-000000000107} Windows Installer Source List Update Cycle
  52. {00000000-0000-0000-0000-000000000108} Software Updates Assignments Evaluation Cycle
  53. {00000000-0000-0000-0000-000000000109} Branch Distribution Point Maintenance Task
  54. {00000000-0000-0000-0000-000000000110} DCM policy
  55. {00000000-0000-0000-0000-000000000111} Send Unsent State Message
  56. {00000000-0000-0000-0000-000000000112} State System policy cache cleanout
  57. {00000000-0000-0000-0000-000000000113} Scan by Update Source
  58. {00000000-0000-0000-0000-000000000114} Update Store Policy
  59. {00000000-0000-0000-0000-000000000115} State system policy bulk send high
  60. {00000000-0000-0000-0000-000000000116} State system policy bulk send low
  61. {00000000-0000-0000-0000-000000000120} AMT Status Check Policy
  62. {00000000-0000-0000-0000-000000000121} Application manager policy action
  63. {00000000-0000-0000-0000-000000000122} Application manager user policy action
  64. {00000000-0000-0000-0000-000000000123} Application manager global evaluation action
  65. {00000000-0000-0000-0000-000000000131} Power management start summarizer
  66. {00000000-0000-0000-0000-000000000221} Endpoint deployment reevaluate
  67. {00000000-0000-0000-0000-000000000222} Endpoint AM policy reevaluate
  68. {00000000-0000-0000-0000-000000000223} External event detection
  69.  
  70. ⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛
  71.     Time: ~2 min + 15 sec if nothing, try again the query + F5 softwareCenter:
  72. ⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛⌛
  73. -------------------------------------------------------------------------------------------------------------------------
  74. ◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼
  75.     mp4:
  76. ◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼
  77. #>
  78.  
  79. #Machine Policy Retrieval & Evaluation Cycle <-
  80. Invoke-WmiMethod -Namespace "Root\CCM" -Class SMS_Client -Name TriggerSchedule -ArgumentList "{00000000-0000-0000-0000-000000000021}" ; cmd /c start softwareCenter:
Advertisement
Add Comment
Please, Sign In to add comment