Additional information regarding WMIC Deprecation in Agent Client Collector Checks<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } .kb-wrapper { font-family: Lato, sans-serif; font-size: 12pt; color: #000000; line-height: 1.7; max-width: 100%; } .kb-wrapper p { margin: 0 0 12px 0; } .kb-wrapper h2 { font-size: 14pt; font-weight: 900; color: #032D42; border-bottom: 2px solid #e8fce4; padding-bottom: 6px; margin: 28px 0 14px 0; } .kb-wrapper ul { padding-left: 22px; margin: 0 0 14px 0; } .kb-wrapper ul li { margin-bottom: 8px; } .kb-wrapper ol.steps { list-style: none; padding-left: 0; counter-reset: step-counter; margin: 0 0 14px 0; } .kb-wrapper ol.steps > li { counter-increment: step-counter; position: relative; padding-left: 38px; margin-bottom: 14px; } .kb-wrapper ol.steps > li::before { content: counter(step-counter); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; background: #032D42; color: #63DF4E; border-radius: 50%; font-size: 10pt; font-weight: 900; text-align: center; line-height: 26px; } .kb-wrapper .toc { background: #f5f8fa; border: 1px solid #d8e6ee; border-radius: 4px; padding: 14px 22px; margin-bottom: 8px; display: inline-block; min-width: 230px; } .kb-wrapper .toc-title { font-weight: 900; color: #032D42; font-size: 11pt; margin: 0 0 8px 0; } .kb-wrapper .toc ul { padding-left: 18px; margin: 0; } .kb-wrapper .toc ul li { margin-bottom: 4px; font-size: 11pt; } .kb-wrapper a { color: #52B8FF; text-decoration: none; } .kb-wrapper a:hover { text-decoration: underline; } .kb-wrapper .toc a { color: #032D42; } .kb-wrapper code { background: #e6f0f5; color: #032D42; border: 1px solid #b8cfd8; border-radius: 3px; padding: 1px 5px; font-family: 'Courier New', monospace; font-size: 10.5pt; } .kb-wrapper .ms-quote { border-left: 3px solid #d8e6ee; padding: 8px 18px; margin: 0 0 14px 0; color: #444444; font-style: italic; } .kb-wrapper .ms-quote p { margin: 0; } .kb-wrapper .callout-info { border-left: 4px solid #52B8FF; background: #e6f4ff; padding: 10px 16px; margin: 0 0 14px 0; border-radius: 0 4px 4px 0; } .kb-wrapper .callout-info p { margin: 0; } .kb-wrapper .related-links ul { list-style: none; padding-left: 0; } .kb-wrapper .related-links ul li { margin-bottom: 6px; } .kb-wrapper .link-disclaimer { font-size: 10pt; font-style: italic; color: #444444; margin: 4px 0 10px 0; } Overview Microsoft deprecated the Windows Management Instrumentation Command-line (WMIC) tool beginning with Windows 10 version 21H1 and the Windows Server 21H1 semi-annual channel release, and recommends against installing this feature. Agent Client Collector (ACC) checks that historically used WMIC commands to collect device information fail on devices where WMIC is disabled. "WMIC is deprecated as of Windows 10, version 21H1; and as of the 21H1 semi-annual channel release of Windows Server. This utility is superseded by Windows PowerShell for WMI." — Microsoft Note: This article refers specifically to the WMIC command-line utility. Data must still be collected from the Windows Management Instrumentation (WMI) framework using other methods. Impacted checks and assets The following ACC check areas use WMIC-dependent modules: ACC Discovery checks: Use the data_collection module to collect identifying device information, such as hostname and serial number.Logged-in user checks: The Enhanced Discovery check and SAM metering checks use modules that collect logged-in user information. These modules are contained in assets (also known as ACC Plugins), stored as attachments on the sn_agent_asset table. Because ACC is highly extensible, custom checks and assets that use WMIC commands are also affected. How WMIC usage was replaced Recent versions of ACC contain fallback alternatives for WMIC commands. For a full list of affected checks and assets, see Related Links. Fallback updates use the following methods: WIN32OLE (Ruby COM bridge): Recent ACC content uses the win32ole Ruby gem to access WMI/COM data without running the WMIC executable.PowerShell: PowerShell commands query CIM instances as an alternative to WMIC. WMIC-based commands remain in ACC check assets. Updates focused on providing fallback alternatives when WMIC is disabled, rather than removing WMIC commands entirely. Some assets may still contain WMIC commands for backward compatibility with older Windows versions, but they primarily collect data without using WMIC. Recommended actions Keep ACC and extending applications (such as Agent Client Collector for Visibility Content) up to date.Review skipped upgrades for sn_agent_asset and sn_agent_check_def records to verify that the latest versions are in use.If you maintain custom assets that still call WMIC, refactor them to use another method, such as Get-CimInstance. Related Links ACC features affected by WMIC deprecation in WindowsWMIC deprecation notice (Microsoft) The Microsoft link points to external content maintained by a third party. ServiceNow is not responsible for the accuracy or availability of content on external sites.