Run CMD
C:/windows/system32>
C:/windows/system32>net user /add Test mypass
C:/windows/system32>net localgroup administrators Test /add
建立临时 Windows 管理员账户
Create a Temporary Windows Administrator Account
如果需要确认网络共享问题是否与当前 Windows 用户权限、Profile 或 Credentials 有关,可以建立一个临时管理员账户进行测试。
If you need to determine whether the network share problem is related to the current Windows user’s permissions, profile, or credentials, create a temporary administrator account for testing.
1. 以管理员身份打开 CMD
1. Open CMD as Administrator
点击:
Click:
Start → 搜索 CMD → 右键 → Run as administrator
2. 建立测试用户
2. Create a Test User
执行:
net user /add Test mypass
成功后通常会显示:
The command completed successfully.
3. 加入 Administrators 群组
3. Add the User to the Administrators Group
执行:
net localgroup administrators Test /add
成功后通常会显示:
The command completed successfully.
4. 确认用户是否已经建立
4. Verify the User
执行:
net user Test
确认用户存在。
Confirm that the user exists.
也可以检查管理员群组:
You can also check the Administrators group:
net localgroup administrators
应该可以看到:
Test
5. 使用 Test 用户登录
5. Sign in Using the Test User
注销当前 Windows 用户:
Sign out from the current Windows user:
Start → Account → Sign out
然后使用:
Username: Test
Password: mypass
登录。
Sign in using the test account.
6. 测试网络共享
6. Test the Network Share
登录 Test 后按:
Press:
Win + R
输入:
\\192.168.0.123\ShareName
或者实际的服务器共享路径:
Or the actual server share path:
\\SERVERNAME\ShareName
测试结果判断
Interpreting the Result
如果 Test 用户可以访问:
如果 Test user can access the share:
→ 问题很可能与原来的 Windows 用户 Profile、Credentials、权限或用户相关设置有关。
→ The problem is likely related to the original user’s profile, credentials, permissions, or user-specific settings.
如果 Test 用户也无法访问:
如果 Test user also cannot access the share:
→ 问题比较可能在 SMB、Network、Firewall、Server/NAS、Group Policy 或 Authentication 层面。
→ The problem is more likely related to SMB, network, firewall, Server/NAS, Group Policy, or authentication.
7. 测试完成后删除临时账户
7. Remove the Temporary Account After Testing
测试完成后,建议删除 Test 用户:
After testing, remove the temporary Test account:
net user Test /delete
确认:
net user
确保 Test 已经不存在。
Confirm that Test no longer appears in the user list.
⚠️ 安全注意事项 / Security Note
不要长期保留这个测试账户,尤其不要使用简单密码,例如:
mypass
123456
password
Do not keep the temporary account permanently, especially with a weak password.
测试完成后应立即删除。
Delete the account immediately after troubleshooting is completed.