# Sunshine Password Reset Guide for Moonlight
## 📋 Video Overview
This tutorial provides a comprehensive **Sunshine password reset guide** for the Moonlight streaming server. The creator DP demonstrates step-by-step how to reset your Sunshine login credentials using command-line tools, helping users regain access to their streaming server when they've forgotten their password.
---
## 🔑 Core Problem
When users forget their Sunshine login password, they cannot access the system management interface. This tutorial offers an official command-line solution that allows you to create new login credentials without reinstalling the software.
---
## 📝 Detailed Step-by-Step Instructions
### 1. Locate the Sunshine Application Path
- **Method 1**: Search for "Sunshine" in the Start menu, right-click and select "Open file location"
- **Method 2**: Right-click on the application shortcut and view "Properties" to find the actual installation path
- Copy the complete directory path where Sunshine.exe is located (note: only copy the folder path, not including the exe filename)
### 2. Open Command Line Tool
- Type "CMD" in the Windows search bar to open Command Prompt
- Or use Visual Studio Command Prompt (better compatibility in some cases)
- **Important Note**: If Sunshine is installed on a non-C drive, you need to switch drives first (e.g., type `D:` to switch to D drive)
### 3. Navigate to Sunshine Directory
```bash
cd [paste Sunshine directory path]
```
Example:
```bash
cd D:\Program Files\Sunshine
```
### 4. Execute Password Reset Command
```bash
sunshine --credits [new_username] [new_password]
```
Practical example:
```bash
sunshine --credits John Johnpass
```
**Command Format Explanation**:
- `sunshine` - Program name
- `--credits` - Password reset parameter (note: two dashes)
- First parameter: New username
- Second parameter: New password
### 5. Restart Sunshine Service
After executing the command, restart the Sunshine service to activate the new credentials:
- Restart via system tray icon
- Or completely close and restart the application
---
## ⚠️ Important Notes
1. **Single Account Mode**: Sunshine only supports a single account; creating a new account will automatically invalidate the old one
2. **Drive Switching**: If Sunshine is installed on D drive or other non-system drives, you must switch to the corresponding drive letter first
3. **Command Format**: Use two dashes before `--credits`, separate parameters with spaces
4. **Success Indicator**: The message "has been created" indicates successful account creation
---
## 🎯 Use Cases
- Forgotten Sunshine login password
- Need to change administrator account
- Reconfigure Moonlight streaming server access permissions
- Sunshine account security management
---
## 💡 Technical Highlights
This method utilizes Sunshine's built-in command-line tool functionality. The `--credits` parameter allows you to bypass the web interface and directly create a new administrator account. This is an official, legitimate reset method that won't affect other software configurations or streaming functions.
---
## 🔗 Related Technologies
- **Sunshine**: Open-source game streaming server software compatible with Moonlight clients
- **Moonlight**: Open-source streaming client based on NVIDIA GameStream protocol
- **Remote Game Streaming**: Allows users to remotely play PC games on different devices
---
## 🏷️ SEO Keywords
Sunshine password reset, Moonlight server configuration, game streaming server, forgotten password recovery, Sunshine credentials, remote gaming setup, streaming server troubleshooting, Sunshine command line, GameStream alternative