Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wmic ( Unknown error while connecting ) #74

Open
xmha97 opened this issue Mar 28, 2024 · 2 comments
Open

wmic ( Unknown error while connecting ) #74

xmha97 opened this issue Mar 28, 2024 · 2 comments
Assignees

Comments

@xmha97
Copy link

xmha97 commented Mar 28, 2024

سلام، اومدم برنامه رو روی سیستم دوستم نصب کنم دیدم ارور میده

image

لاگ رو بررسی کردم و مشکل رو فهمیدم

[2024-03-28 17:52:21.898] [error] Error: Unable to find wmic command in path.
    at ChildProcess._handle.onexit (node:internal/child_process:286:19)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) Unable to find wmic command in path.

در صورتی که wmic نصب نشده باشه، برنامه کار نمی‌کنه.

image

image

image

البته ممکنه به راحتی نصب نشه و یکم اذیت کنه

image

در کل خواستم بگم باید به کاربر بگه که این نصب نیست و حتی با تصویر توضیح بده که فرد باید چطوری نصبش کنه

@xmha97
Copy link
Author

xmha97 commented Mar 28, 2024

ظاهرا با این دستور نصب میشه:

DISM /Online /Add-Capability /CapabilityName:WMIC~~~~​

این که این برنامه بخواد این ابزار رو نصب کنه شاید خارج از اسکوپ برنامه باشه
نهایتا اینستالر اینو نصب کنه

اما من پیشنهاد میکنم اینو به کاربر نشون بده که اگه خواست خودش نصب کنه

@sajjadmrx sajjadmrx changed the title wmic wmic ( Unknown error while connecting ) Mar 29, 2024
@non7676
Copy link

non7676 commented May 8, 2024

Add these 2 items back to your Path environment variable

C:\Windows\System32\WindowsPowerShell\v1.0
C:\Windows\System32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants