跳到主要内容

Claude Cage · 面向 Claude 的隔离开发环境,支持桌面工作台、多账号、远程部署与移动端连接。上游 Lee-xeo/Claude-Cage 完整源码镜像,非灵栈原创;主许可 MIT,第三方组件遵循各自许可。来源:https://github.com/Lee-xeo/Claude-Cage 。手动同步,不附带 Release 安装包。

浏览文件

autounattend.xml

248 行 · 10.5 KB历史下载
1{{ $windowsVersionDir := "w11" -}}
2{{ if .IsWindowsServer -}}
3{{ $windowsVersionDir = "2k25" -}}
4{{ end -}}
5{{ $windowsArchDir := "arm64" -}}
6{{ if eq .Arch "x86_64" -}}
7{{ $windowsArchDir = "amd64" -}}
8{{ end -}}
9<?xml version="1.0" encoding="utf-8"?>
10<unattend xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:schemas-microsoft-com:unattend">
11 <settings pass="windowsPE">
12 <component name="Microsoft-Windows-PnpCustomizationsWinPE" publicKeyToken="31bf3856ad364e35"
13 language="neutral" versionScope="nonSxS" processorArchitecture="{{ $windowsArchDir }}"
14 xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
15 <DriverPaths>
16 <PathAndCredentials wcm:action="add" wcm:keyValue="1">
17 <Path>E:\viostor\{{ $windowsVersionDir }}\{{ $windowsArchDir }}</Path>
18 </PathAndCredentials>
19 <PathAndCredentials wcm:action="add" wcm:keyValue="2">
20 <Path>E:\vioinput\{{ $windowsVersionDir }}\{{ $windowsArchDir }}</Path>
21 </PathAndCredentials>
22 <PathAndCredentials wcm:action="add" wcm:keyValue="3">
23 <Path>E:\NetKVM\{{ $windowsVersionDir }}\{{ $windowsArchDir }}</Path>
24 </PathAndCredentials>
25 <PathAndCredentials wcm:action="add" wcm:keyValue="4">
26 <Path>E:\viofs\{{ $windowsVersionDir }}\{{ $windowsArchDir }}</Path>
27 </PathAndCredentials>
28 <PathAndCredentials wcm:action="add" wcm:keyValue="5">
29 <Path>E:\Balloon\{{ $windowsVersionDir }}\{{ $windowsArchDir }}</Path>
30 </PathAndCredentials>
31 <PathAndCredentials wcm:action="add" wcm:keyValue="6">
32 <Path>E:\viorng\{{ $windowsVersionDir }}\{{ $windowsArchDir }}</Path>
33 </PathAndCredentials>
34 </DriverPaths>
35 </component>
36
37 <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="{{ $windowsArchDir }}" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
38 <InputLocale>en-US</InputLocale>
39 <SystemLocale>en-US</SystemLocale>
40 <UILanguage>en-US</UILanguage>
41 <UserLocale>en-US</UserLocale>
42 </component>
43 <component name="Microsoft-Windows-Setup" processorArchitecture="{{ $windowsArchDir }}" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
44 {{ if not .IsWindowsServer }}
45 <!-- Windows 11 has hardware requirements. (ref: https://www.microsoft.com/en-gb/windows/windows-11-specifications). -->
46 <!-- For flexibility, we bypass those requirements. -->
47 <RunSynchronous>
48 <RunSynchronousCommand wcm:action="add">
49 <Order>1</Order>
50 <Path>reg add "HKLM\SYSTEM\Setup\LabConfig" /v BypassSecureBootCheck /t REG_DWORD /d 1 /f</Path>
51 </RunSynchronousCommand>
52 <RunSynchronousCommand wcm:action="add">
53 <Order>2</Order>
54 <Path>reg add "HKLM\SYSTEM\Setup\LabConfig" /v BypassRAMCheck /t REG_DWORD /d 1 /f</Path>
55 </RunSynchronousCommand>
56 <RunSynchronousCommand wcm:action="add">
57 <Order>3</Order>
58 <Path>reg add "HKLM\SYSTEM\Setup\LabConfig" /v BypassCPUCheck /t REG_DWORD /d 1 /f</Path>
59 </RunSynchronousCommand>
60 <RunSynchronousCommand wcm:action="add">
61 <Order>4</Order>
62 <Path>reg add "HKLM\SYSTEM\Setup\LabConfig" /v BypassStorageCheck /t REG_DWORD /d 1 /f</Path>
63 </RunSynchronousCommand>
64 {{ if not .TPM }}
65 <!-- Those requirements are only bypassed when TPM is disabled. -->
66 <!-- By default, TPM is enabled for Windows 11. -->
67 <RunSynchronousCommand wcm:action="add">
68 <Order>5</Order>
69 <Path>reg add "HKLM\SYSTEM\Setup\LabConfig" /v BypassTPMCheck /t REG_DWORD /d 1 /f</Path>
70 </RunSynchronousCommand>
71 <RunSynchronousCommand wcm:action="add">
72 <Order>6</Order>
73 <Path>reg add "HKLM\SYSTEM\Setup\MoSetup" /v AllowUpgradesWithUnsupportedTPMOrCPU /t REG_DWORD /d 1 /f</Path>
74 </RunSynchronousCommand>
75 {{ end }}
76 </RunSynchronous>
77 {{ end }}
78 <ImageInstall>
79 <OSImage>
80 <InstallFrom>
81 <MetaData wcm:action="add">
82 <Key>/IMAGE/INDEX</Key>
83 <Value>{{ if .IsWindowsServer }}1{{ else if eq .Arch "x86_64" }}6{{ else }}3{{ end }}</Value>
84 </MetaData>
85 </InstallFrom>
86 <InstallTo>
87 <DiskID>0</DiskID>
88 <PartitionID>
89 {{ if .LegacyBIOS }}2{{ else }}3{{ end }}
90 </PartitionID>
91 </InstallTo>
92 </OSImage>
93 </ImageInstall>
94 <DiskConfiguration>
95 <!-- Disk partition is different between LegacyBIOS and UEFI -->
96 {{ if .LegacyBIOS }}
97 <Disk wcm:action="add">
98 <DiskID>0</DiskID>
99 <WillWipeDisk>true</WillWipeDisk>
100 <!-- The first partition is system reserved for BIOS boot -->
101 <CreatePartitions>
102 <CreatePartition wcm:action="add">
103 <Order>1</Order>
104 <Type>Primary</Type>
105 <Size>500</Size>
106 </CreatePartition>
107 <!-- The second partition is the main one which Windows OS is installed -->
108 <CreatePartition wcm:action="add">
109 <Order>2</Order>
110 <Type>Primary</Type>
111 <Extend>true</Extend>
112 </CreatePartition>
113 </CreatePartitions>
114 <ModifyPartitions>
115 <ModifyPartition wcm:action="add">
116 <Order>1</Order>
117 <PartitionID>1</PartitionID>
118 <Label>BIOS</Label>
119 <Format>NTFS</Format>
120 <Active>true</Active>
121 </ModifyPartition>
122 <ModifyPartition wcm:action="add">
123 <Order>2</Order>
124 <PartitionID>2</PartitionID>
125 <Label>Windows</Label>
126 <Format>NTFS</Format>
127 <Letter>C</Letter>
128 </ModifyPartition>
129 </ModifyPartitions>
130 </Disk>
131 {{ else }}
132 <Disk wcm:action="add">
133 <DiskID>0</DiskID>
134 <WillWipeDisk>true</WillWipeDisk>
135 <CreatePartitions>
136 <CreatePartition wcm:action="add">
137 <Order>1</Order>
138 <Type>EFI</Type>
139 <Size>100</Size>
140 </CreatePartition>
141 <CreatePartition wcm:action="add">
142 <Order>2</Order>
143 <Type>MSR</Type>
144 <Size>16</Size>
145 </CreatePartition>
146 <CreatePartition wcm:action="add">
147 <Order>3</Order>
148 <Type>Primary</Type>
149 <Extend>true</Extend>
150 </CreatePartition>
151 </CreatePartitions>
152 <ModifyPartitions>
153 <ModifyPartition wcm:action="add">
154 <Order>1</Order>
155 <PartitionID>1</PartitionID>
156 <Label>System</Label>
157 <Format>FAT32</Format>
158 </ModifyPartition>
159 <ModifyPartition wcm:action="add">
160 <Order>2</Order>
161 <PartitionID>2</PartitionID>
162 </ModifyPartition>
163 <ModifyPartition wcm:action="add">
164 <Order>3</Order>
165 <PartitionID>3</PartitionID>
166 <Label>Windows</Label>
167 <Format>NTFS</Format>
168 <Letter>C</Letter>
169 </ModifyPartition>
170 </ModifyPartitions>
171 </Disk>
172 {{ end }}
173 </DiskConfiguration>
174 <UserData>
175 <AcceptEula>true</AcceptEula>
176 <FullName />
177 {{ if not .IsWindowsServer }}
178 <!-- This field necessary for skipping product key step on Win-11 -->
179 <ProductKey>
180 <WillShowUI>Never</WillShowUI>
181 </ProductKey>
182 {{ end }}
183 <Organization />
184 </UserData>
185 </component>
186 </settings>
187 <settings pass="specialize">
188 <component name="Microsoft-Windows-International-Core" processorArchitecture="{{ $windowsArchDir }}" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
189 <InputLocale>en-US</InputLocale>
190 <SystemLocale>en-US</SystemLocale>
191 <UILanguage>en-US</UILanguage>
192 <UserLocale>en-US</UserLocale>
193 </component>
194 <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="{{ $windowsArchDir }}" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
195 <ComputerName>lima</ComputerName>
196 </component>
197 </settings>
198 <settings pass="oobeSystem">
199 <component name="Microsoft-Windows-International-Core" processorArchitecture="{{ $windowsArchDir }}" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
200 <InputLocale>en-US</InputLocale>
201 <SystemLocale>en-US</SystemLocale>
202 <UILanguage>en-US</UILanguage>
203 <UserLocale>en-US</UserLocale>
204 </component>
205 <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="{{ $windowsArchDir }}" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
206 <UserAccounts>
207 <LocalAccounts>
208 <LocalAccount wcm:action="add">
209 <Password>
210 <!-- This initial password is immediately changed by a script after run by FirstLogonCommands. -->
211 <Value>{{.WindowsInitialPassword}}</Value>
212 <PlainText>true</PlainText>
213 </Password>
214 <Description>This is limauser</Description>
215 <DisplayName>{{.User}}</DisplayName>
216 <Group>Administrators</Group>
217 <Name>{{.User}}</Name>
218 </LocalAccount>
219 </LocalAccounts>
220 </UserAccounts>
221 <OOBE>
222 <ProtectYourPC>1</ProtectYourPC>
223 <HideEULAPage>true</HideEULAPage>
224 <HideLocalAccountScreen>true</HideLocalAccountScreen>
225 <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
226 <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
227 <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
228 </OOBE>
229 <TimeZone>GMT Standard Time</TimeZone>
230 <FirstLogonCommands>
231 <SynchronousCommand wcm:action="add">
232 <Order>1</Order>
233 <RequiresUserInput>false</RequiresUserInput>
234 <CommandLine>powershell -NoProfile -NonInteractive -ExecutionPolicy Bypass -File "F:\first_logon.ps1"</CommandLine>
235 </SynchronousCommand>
236 </FirstLogonCommands>
237 <AutoLogon>
238 <Enabled>true</Enabled>
239 <Username>{{.User}}</Username>
240 <Password>
241 <Value>{{.WindowsInitialPassword}}</Value>
242 <PlainText>true</PlainText>
243 </Password>
244 <LogonCount>1</LogonCount>
245 </AutoLogon>
246 </component>
247 </settings>
248</unattend>