Files
MemRelay/projects/ea207d36-693c-4349-b3c8-7c40c8c889f5/VM 首次测试账户参数被错误展开.md
T

21 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: VM 首次测试账户参数被错误展开
type: experience
permalink: main/projects/ea207d36-693c-4349-b3c8-7c40c8c889f5/vm-首次测试账户参数被错误展开
stable_id: 981165ad-fc59-490f-b414-495fb36854d0
scope: project
project_id: ea207d36-693c-4349-b3c8-7c40c8c889f5
memory_type: experience
status: active
revision: 1
restored_from_commit: 6a6a895eafcca6052e81a14fca103a42635dd1c2
created_at: '2026-09-23T15:11:51.428789+00:00'
updated_at: '2026-09-23T15:11:51.428872+00:00'
tags:
- vm-test
- setup
- powershell
- troubleshooting
---
2026-08-24 VM 首次端到端测试未自动解锁。截图确认 setup 命令把账户参数写成了 `".\$env:Administrator"`;PowerShell 中不存在 `env:Administrator`,因此变量展开为空,setup 输出并保存的账户仅为 `.\`,无法通过 LSA 认证。正确写法是本地账户字面量 `".\Administrator"`,或使用真实环境变量 `".\$env:USERNAME"`。重新运行 setup 会覆盖 config.toml 与 cred.bin。另需在 setup 完成后重新把计划任务时间调整到未来几分钟,避免安装时设置的触发点已错过。