T

"wmic is not recognized" Fix කරන ආකාරය

32 views · updated 2026-07-01 · published 2026-07-01 · by Hasarinda Manjula · Troubleshooting Reading time: 1 min English සිංහල

Overview

WMIC command එක deprecated වෙලා Windows එකෙන් ඉවත් වෙමින් තියෙනවා, ඒ නිසා scripts සහ users වැඩි වැඩියෙන් "wmic is not recognized" දකිනවා. මේ guide එකෙන් පුළුවන් තැන්වල ඒක ආයෙත් enable කරන හැටියි, එහි modern replacement එකට යන හැටියි පැහැදිලි කරනවා.

Key Takeaways

  • WMIC deprecated වෙලා අලුත් Windows වල disabled නැත්නම් removed වෙලා.
  • ඇතැම් විට optional feature එකක් විදිහට ආයෙත් add කරන්න පුළුවන්.
  • PowerShell ගේ CIM cmdlets තමයි supported replacement එක.
  • scripts PowerShell එකට update කරන එක long-term fix එක.

Re-enable WMIC

1. Settings > Apps > Optional features > Add an optional feature එක open කරන්න.

2. WMIC search කරන්න.

3. list වෙලා තියෙනවා නම්, ඒක select කරලා Install click කරන්න.

4. Command Prompt එක ආයෙත් open කරලා wmic command එක test කරන්න.

Use the PowerShell Replacement

1. PowerShell එක open කරන්න.

2. wmic queries Get-CimInstance එකෙන් replace කරන්න, උදාහරණයක් විදිහට: Get-CimInstance Win32_OperatingSystem

3. ඕන විදිහට Get-CimInstance Win32_BIOS සහ ඒ වගේ classes භාවිත කරන්න.

4. අනාගත compatibility එකට ඔබේ scripts CIM cmdlets වලට update කරන්න.

Note: WMIC retire වෙමින් තියෙන නිසා, PowerShell CIM cmdlets වලට migrate වෙන එක තමයි durable solution එක.

Troubleshooting

Problem: WMIC Optional features වල නෑ.

Solution: අලුත්ම builds වල ඒක සම්පූර්ණයෙන් remove වෙලා තියෙන්න පුළුවන්; ඒ වෙනුවට PowerShell CIM cmdlets වලට මාරු වෙන්න.

Problem: ආයෙත් enable කළාට පස්සෙත් scripts fail වෙනවා.

Solution: feature එක install වුණා කියලා සහ command එක interactive විදිහට run වෙනවා කියලා scripts වල rely කරන්න කලින් confirm කරන්න.

Problem: CIM equivalent එක මොකක්ද කියලා විශ්වාස නෑ.

Solution: wmic භාවිත කරන Win32_ classes වලින් බොහොමයක් Get-CimInstance එක්ක කෙලින්ම වැඩ කරනවා.

Problem: updates වලට පස්සේ WMIC දිගටම නැති වෙනවා.

Solution: feature updates වලින් ඒක remove වෙන්න පුළුවන්; නැවත නැවත breakage එක වළක්වන්න PowerShell එකේ standardize වෙන්න.

Conclusion

WMIC error එකෙන් පිළිබිඹු වෙන්නේ ඒක Windows එකෙන් remove කරන්න සැලසුම් කරලා තියෙන එක. අනිවාර්ය නම් තාවකාලිකව ආයෙත් add කරන්න, නමුත් PowerShell ගේ CIM cmdlets වලට migrate වෙන එක තමයි lasting fix එක.

About TechHub

මේ guide එක TechHub Knowledge Base එකේ කොටසක්. තව step-by-step IT guides සහ support වලට techhub.com.lk එකට යන්න.

Thanks for your feedback! 🙌

Read more

📖

Windows 11 KB5083631 (April 2026 Preview Update) — අලුත් දේ සහ Install කරන හැටි (සිංහල)

KB5083631 — Windows 11 24H2/25H2 සඳහා optional April 2026 preview update එක: Xbox Mode, File Explorer වැඩිදියු

📖

Windows Error 0xC0000005 (Access Violation) විසඳන හැටි

0xC0000005 access-violation error එකට හේතු — RAM දෝෂ, corrupted system files, drivers, malware, DEP — සහ පිළිව

Fix Windows Media Creation Tool Error 0x80072F8F – 0x20000

Resolve the common MCT download error caused by TLS, date/time, network, or disk issues.

How to Fix “Security Certificate Is Not Trusted” in Your Browser

Understand what causes SSL certificate warnings and how to resolve the common, safe-to-fix causes — without pu

How to Fix Windows Optional Features Not Installing

Resolve errors when adding Windows optional features — from metered-connection blocks to corrupted system file

How to Fix the "No Such Interface Supported" Error in Windows

Resolve the 0x80004002 "No such interface supported" error that blocks files, apps, or File Explorer — by repa

Fix Error 0X80070666 Visual Cpp

Overview Error code 0x80070666 usually appears while installing a Microsoft Visual C++ Redistributable package

How to Fix the Critical Process Died BSoD Error on Windows 11 and 10

Stop the CRITICAL_PROCESS_DIED blue screen by repairing system files, drivers, and boot data — with steps that

TechHub Assistant
Online · AI assistant
Thinking
⬇ Downloads 📦 Orders 🛒 Buy License 🎫 Create Ticket 🙋 Contact
AI-generated · may be inaccurate. Talk to a human