---
title: "التثبيت على Windows | Wantastic Docs"
description: "ثبّت wantasticd على Windows 10/11 وWindows Server: افتح PowerShell كمسؤول، والصق سطرًا واحدًا، ثم وافق على الجهاز في المتصفح."
url: "https://wantastic.app/ar/docs/install-windows"
category: "Install wantasticd"
reading_time: "3 دقائق"
---

# التثبيت على Windows

ثبّت wantasticd على Windows 10/11 وWindows Server: افتح PowerShell كمسؤول، والصق سطرًا واحدًا، ثم وافق على الجهاز في المتصفح.

> **Outcome:** يعمل wantasticd كخدمة Windows تلقائية باسم "Wantastic Overlay Networking"، ويبدأ تطبيق منطقة الإشعارات عند تسجيل الدخول، ويظهر الحاسوب بحالة Online في وحدة التحكم.

## Before you start

- Windows 10 أو Windows 11 أو Windows Server 2016+ (x64 أو ARM64 أو 32 بت).
- حساب Windows يمكنه الموافقة على طلبات المسؤول.
- حسابك في Wantastic (تسجّل الدخول مرة واحدة أثناء التثبيت).

## تثبيت سريع (4 خطوات)

1. افتح PowerShell بصلاحيات Administrator.
2. الصق irm https://get.wantastic.app/install.ps1 | iex واضغط Enter.
3. امسح رمز QR أو Ctrl+انقر الرابط.
4. انقر Claim Device في المتصفح. يتصل الحاسوب تلقائيًا.

PowerShell (Administrator):

```powershell
irm https://get.wantastic.app/install.ps1 | iex
```

> **Tip:** تفضّل معالج تثبيت؟ نزّله من wantastic.app/download وشغّله، ثم انقر أيقونة Wantastic بجانب الساعة واختر Log in….

> **Operational note:** توضّح الصور أدناه كل خطوة.

## افتح PowerShell كمسؤول

ينشئ المثبّت خدمة Windows، لذلك يجب تشغيل PowerShell كمسؤول.

1. انقر Start (أو اضغط مفتاح Windows) واكتب powershell.
2. على اليمين، انقر Run as administrator (تشغيل كمسؤول).
3. يسأل Windows: "Do you want to allow this app to make changes to your device?" (هل تريد السماح لهذا التطبيق بإجراء تغييرات على جهازك؟). انقر Yes (نعم).
4. تُفتح نافذة زرقاء يبدأ عنوانها بـ Administrator: Windows PowerShell.

*Console: Start ← اكتب powershell ← Run as administrator.*

1. اكتب powershell
2. انقر Run as administrator (تشغيل كمسؤول)

*Console: طلب المسؤول. تأكد أنه يذكر Windows PowerShell، ثم انقر Yes (نعم).*

1. Windows PowerShell
2. انقر Yes (نعم)

> **Tip:** أسرع: انقر بزر الماوس الأيمن على زر Start واختر Terminal (Admin) أو Windows PowerShell (Admin).

## الصق، امسح، وافق

1. الصق السطر في نافذة المسؤول واضغط Enter.
2. يظهر رمز QR ورابط. امسح رمز QR بهاتفك، أو اضغط Ctrl مع النقر على الرابط.
3. سجّل الدخول إلى Wantastic وانقر Claim Device.
4. يتصل الحاسوب تلقائيًا وتصبح أيقونة شريط النظام خضراء، ويظهر بحالة Online في Devices.

*Administrator: Windows PowerShell: يعرض المثبّت رمز QR ورابط طلب الملكية. لا حاجة إلى رمز مميز.*

```
$ PS C:\Windows\system32> irm https://get.wantastic.app/install.ps1 | iex
Wantastic Agent - Windows Installer
Version: v1.0.54+377f3c0
Installed to C:\Program Files\Wantastic\wantasticd.exe
█▀▀▀▀▀█ ▄▀▄ █▀▀▀▀▀█   (QR code)
wantasticd v1.0.54+377f3c0 is installed and waiting to be added to your account.
Scan the QR code above, or open this link, and approve the device:
  https://console.wantastic.app/#desktop?claim_public_key=Vd3hK1oQ…%3D
It connects by itself as soon as it is claimed (the tray icon turns green).
```

*Console: Claim Wantastic Device. يملأ Claim URL ورمز QR المفتاح نيابةً عنك. كل ما عليك هو النقر على Claim Device.*

1. Claim public key معبأ مسبقًا
2. اترك Wantastic server كما هو
3. انقر Claim Device

> **Operational note:** لم يظهر رمز QR أو رابط بعد 30 ثانية؟ اضغط Ctrl+C واستخدم التثبيت باستخدام رمز مميز ضمن طرق أخرى للتثبيت.

## تحقق من أنه يعمل

1. افتح نافذة PowerShell جديدة وشغّل wantasticd status. يعرض Status: Connected.
2. تعرض أيقونة منطقة الإشعارات (بجوار الساعة) حالة الاتصال.
3. افتح Devices في وحدة التحكم. يظهر الحاسوب بحالة Online.

PowerShell (نافذة جديدة):

```powershell
wantasticd status
```

*wantasticd status: تعني Status: Connected ووجود VPN IP أن النفق يعمل.*

```
$ PS C:\> wantasticd status
Status:        Connected
Version:       v1.0.54+377f3c0
Mode:          TUN (wantastic0)
VPN IPs:       10.200.0.14/32
Public key:    q7ZkV3m1yH0dTn8pXo2bLwR4sE6uJ9cA1fG5hK8iN0M=
Server:        wg.wantastic.app:51820
Exit node:     false
Local access:  false
Auto update:   true
Traffic:       ↓ 18.4 KiB  ↑ 9.2 KiB
Peers:         2 (direct 1, relay 1)
Uptime:        4m12s
```

*Console: نافذة Devices: يظهر الجهاز الجديد باسمه ويتحول إلى Online خلال ثوانٍ.*

1. البحث بالاسم
2. الحالة Online
3. يطابق Overlay IP ما يعرضه wantasticd status
4. يستمر Last seen في التحديث

## إدارة الخدمة

- يمكنك أيضًا استخدام services.msc → Wantastic Overlay Networking.
- إذا سأل جدار حماية Windows عما إذا كان مسموحًا لـ wantasticd.exe بالاتصال، فانقر Allow. تحتاج الاتصالات المباشرة بين الأجهزة إلى ذلك.
- إذا حظر برنامج مكافحة الفيروسات محوّل النفق، فأضف استثناءً للمسار C:\Program Files\Wantastic\wantasticd.exe.
- للترقية، استخدم wantasticd update. لا تشغّل install.ps1 مرة أخرى على حاسوب يعمل.

PowerShell (Administrator):

```powershell
Restart-Service wantasticd
Stop-Service wantasticd
Start-Service wantasticd
Get-Service wantasticd
```

## طرق أخرى للتثبيت

تحتاج إلى هذا للحالات الخاصة فقط.

### معالج التثبيت (.exe)

نزّل wantastic-setup-windows-amd64.exe (أو -arm64.exe) من wantastic.app/download.

1. افتح ملف التثبيت، وانقر نعم ثم تثبيت.
2. انقر أيقونة Wantastic بجانب الساعة واختر Log in….
3. يفتح المتصفح. انقر Claim Device.

> تثبيت صامت للنشر الواسع: wantastic-setup-windows-amd64.exe /VERYSILENT /SUPPRESSMSGBOXES

### التثبيت باستخدام رمز

لعدة حواسيب، أو عند عدم ظهور رمز QR. في وحدة التحكم افتح Account → Secrets، وانقر + New Secret ثم Generate، وانسخه. استبدل <TOKEN> أدناه.

PowerShell (Administrator):

```powershell
& ([scriptblock]::Create((irm https://get.wantastic.app/install.ps1))) -Token <TOKEN>
```

> تعامل مع الرمز ككلمة مرور. يستطيع أي شخص يملكه إضافة أجهزة إلى حسابك حتى تنتهي صلاحيته.

### بدون تطبيق منطقة الإشعارات

للخوادم والحواسيب المشتركة. تظل الخدمة تعمل.

PowerShell (Administrator):

```powershell
& ([scriptblock]::Create((irm https://get.wantastic.app/install.ps1))) -NoTray
```

### بوابة مستضافة ذاتيًا

لا يتضمن install.ps1 خيارًا للبوابة. ثبّت أولًا، ثم سجّل الدخول إلى بوابتك وأعد التشغيل.

PowerShell (Administrator):

```powershell
& "C:\Program Files\Wantastic\wantasticd.exe" login --no-connect --portal-url https://wantastic.example.com --token <TOKEN>
Restart-Service wantasticd
```

## Verify the result

- يعرض Get-Service wantasticd القيمة Running.
- يعرض wantasticd status القيمة Status: Connected.
- يظهر الحاسوب بحالة Online في Devices، وكذلك بعد إعادة الإقلاع.

## Common issues

### يتوقف المثبّت فورًا.

```
Administrator privileges are required.
```

- **Where:** install.ps1
- **Likely cause:** لم يُفتح PowerShell بصلاحيات Administrator.
- **Fix:** أغلق النافذة. انقر Start، واكتب powershell، وانقر Run as administrator ثم Yes، والصق السطر مجددًا.

PowerShell (Administrator):

```powershell
irm https://get.wantastic.app/install.ps1 | iex
```

### لا يظهر رمز QR ولا رابط؛ والمثبّت ينتظر.

- **Where:** install.ps1 · === Logging in ===
- **Likely cause:** إصدارات wantasticd القديمة على Windows لا تستطيع عرض رمز QR ورابط تسجيل الدخول.
- **Fix:** اضغط Ctrl+C. أنشئ رمزًا مميزًا في Account → Secrets وثبّت به.

PowerShell (Administrator):

```powershell
& ([scriptblock]::Create((irm https://get.wantastic.app/install.ps1))) -Token <TOKEN>
```

### لم يكتمل تسجيل الدخول ولم تبدأ الخدمة.

```
Login did not complete (exit 1).
The service is installed but not started because this device is not logged in yet.
```

- **Where:** install.ps1
- **Likely cause:** لم تكتمل الموافقة في المتصفح في الوقت المحدد، أو رُفضت، أو كان الرمز المميز خاطئًا.
- **Fix:** سجّل الدخول مجددًا ووافق على الجهاز، ثم شغّل الخدمة.

PowerShell (Administrator):

```powershell
wantasticd login --no-connect
Start-Service wantasticd
```

- **Verify:** يعرض wantasticd status القيمة Connected.

### لا يعمل السكربت من ملف محفوظ.

```
install.ps1 cannot be loaded because running scripts is disabled on this system.
```

- **Where:** PowerShell
- **Likely cause:** سياسة PowerShell تمنع ملفات السكربت المحفوظة.
- **Fix:** استخدم التثبيت بسطر واحد بدلًا من ذلك؛ هذه السياسة لا تمنعه.

PowerShell (Administrator):

```powershell
irm https://get.wantastic.app/install.ps1 | iex
```

### يفشل sc.exe بينما يعيد المثبّت إنشاء الخدمة.

```
Failed to create the Windows service (sc.exe exit code 1072).
```

- **Where:** install.ps1
- **Likely cause:** لا يزال services.msc أو Event Viewer يُبقي الخدمة القديمة مفتوحة.
- **Fix:** أغلق services.msc وEvent Viewer (أو أعد الإقلاع)، ثم الصق كتلة التثبيت مرة أخرى.

### لا يتعرّف PowerShell على wantasticd.

```
wantasticd : The term 'wantasticd' is not recognized as the name of a cmdlet, function, script file, or operable program.
```

- **Where:** PowerShell
- **Likely cause:** لا ينطبق تغيير PATH إلا على النوافذ الجديدة.
- **Fix:** افتح نافذة PowerShell جديدة.

### لا يمكن إنشاء محوّل النفق.

```
Error creating interface: …
```

- **Where:** سجل التصحيح
- **Likely cause:** برنامج مكافحة الفيروسات أو EDR يحظر تعريف النفق.
- **Fix:** أضف استثناءً في مكافحة الفيروسات للمسار C:\Program Files\Wantastic\wantasticd.exe، ثم أعد تشغيل الخدمة.

إعادة التشغيل:

```powershell
Restart-Service wantasticd
```

### يفشل التثبيت بالرمز مباشرةً بعد التنزيل.

```
Login failed: registration rejected (401): invalid or expired login token
```

- **Where:** install.ps1 / wantasticd login
- **Likely cause:** الرمز خاطئ، أو منتهي الصلاحية، أو مستنفد (بلغ Max Uses)، أو محذوف.
- **Fix:** أنشئ سرًا جديدًا في Account → Secrets وسجّل الدخول به.

الحل:

```powershell
& "C:\Program Files\Wantastic\wantasticd.exe" login --no-connect --token <NEW_TOKEN>
Restart-Service wantasticd
```

### تُرفض المطالبة أو تسجيل الدخول.

```
Login failed: account has reached its device limit — upgrade your plan or remove an existing device
```

- **Where:** wantasticd login / وحدة التحكم
- **Likely cause:** اكتمل عدد الأجهزة في خطتك. تعرض وحدة التحكم "You have reached the maximum number of devices for your plan."
- **Fix:** احذف جهازًا غير مستخدم في Devices (الصف → Delete) أو رقِّ خطتك. ثم طالب بالجهاز مجددًا.

### يطبع wantasticd status القيمة Offline.

```
Status: Offline — daemon not running (start: sc.exe start wantasticd)
```

- **Where:** wantasticd status
- **Likely cause:** الخدمة الخلفية متوقفة أو متعطلة أو لا تزال تبدأ. أمر الحالة لا يشغّلها.
- **Fix:** شغّل الخدمة.

تشغيل الخدمة:

```powershell
Start-Service wantasticd
```

### تعرض الحالة Running (tunnel down)، أو يعرض peers القيمة HANDSHAKE never لـ (server).

```
Device health check failed: …
```

- **Where:** سجل الخدمة
- **Likely cause:** تحظر الشبكة منفذ UDP الصادر 51820 إلى المحور (wg.wantastic.app)، أو أن DNS لا يعمل.
- **Fix:** اسمح بحركة UDP 51820 الصادرة في جدار الحماية، ثم أعد تشغيل الخدمة.

اختبار DNS وإعادة التشغيل:

```powershell
nslookup wg.wantastic.app
Restart-Service wantasticd
```

- **Verify:** يعرض wantasticd peers مصافحة حديثة (مثل "8s ago") لـ (server).

### الوصول المحلي لا يعمل على Windows.

```
automatic local-access subnet routing is not supported on Windows yet
```

- **Where:** سجل التصحيح
- **Likely cause:** يعمل الوصول المحلي على Linux وOpenWrt فقط.
- **Fix:** ثبّت wantasticd على جهاز Linux في شبكة LAN تلك وفعّل الوصول المحلي عليه.

## Continue with

- [Choose your install method](https://wantastic.app/ar/docs/install-overview): Find your device in one table and copy one command. Most devices install in 2 minutes: install, scan a QR code, click Claim Device.
- [wantasticd CLI reference and operations](https://wantastic.app/ar/docs/wantasticd): The most used wantasticd commands first, then every command and flag, environment variables, config and state paths per OS, log lines, local access, exit node, and the claim flow (genkey / --wait-claim).
- [Update, roll back and uninstall](https://wantastic.app/ar/docs/update-and-uninstall): Update or uninstall wantasticd with one line per OS. Also: how auto-update works, turning it off, rolling back to the previous binary, and purging all data.
- [macOS and Windows errors](https://wantastic.app/ar/docs/errors-macos-windows): launchd, Gatekeeper, tray, sc.exe and Windows service errors with the easiest fixes.
- [Login, token and claim errors](https://wantastic.app/ar/docs/errors-login-claim): Fix claim problems (genkey, QR code, Claim Device), "Login failed: …" messages and token errors.
- [WebProxy for device web UIs](https://wantastic.app/ar/docs/webproxy): Open a router, NAS or camera web page in the console. No port forward needed.
