@@ -98,7 +98,7 @@ syntax to continue a command on the next line.
98
98
99
99
### Clean installation using UEFI
100
100
101
- ``` pwsh
101
+ ``` text
102
102
./GenerateAnswerFile autounattend.xml `
103
103
-Install CleanEfi `
104
104
-ProductKey ABCDE-12345-ABCDE-12345-ABCDE
@@ -109,7 +109,7 @@ system, using the default UEFI partition layout, and activates it using the spec
109
109
110
110
### Installing a 32 bit OS
111
111
112
- ``` pwsh
112
+ ``` text
113
113
./GenerateAnswerFile autounattend.xml `
114
114
-Install CleanBios `
115
115
-ProcessorArchitecture x86 `
@@ -122,7 +122,7 @@ such as "x86" for 32 bit processors, or "arm64" for ARM based systems.
122
122
123
123
### Creating a user during installation
124
124
125
- ``` pwsh
125
+ ``` text
126
126
./GenerateAnswerFile autounattend.xml `
127
127
-Install CleanEfi `
128
128
-LocalAccount "John,Password" "Steve,OtherPassword" `
@@ -138,7 +138,7 @@ All accounts created during this method will be members of the local Administrat
138
138
139
139
### Joining a domain and automatic log-on
140
140
141
- ``` pwsh
141
+ ``` text
142
142
./GenerateAnswerFile unattend.xml `
143
143
-ComputerName mypc `
144
144
-JoinDomain mydomain `
@@ -164,7 +164,7 @@ the [`-AutoLogonCount`][] argument[^1].
164
164
165
165
### Joining a domain using provisioning
166
166
167
- ``` pwsh
167
+ ``` text
168
168
./GenerateAnswerFile unattend.xml `
169
169
-Install CleanEfi
170
170
-JoinDomainProvisioningFile AccountData.txt `
@@ -198,7 +198,7 @@ size is the size of the partition. The size can use multiple-byte units, such as
198
198
will be rounded down to a whole number of megabytes. If the size is ` * ` , it indicates the partition
199
199
will fill the remainder of the disk.
200
200
201
- ``` pwsh
201
+ ``` text
202
202
./GenerateAnswerFile autounattend.xml `
203
203
-Install CleanEFI `
204
204
-ProductKey ABCDE-12345-ABCDE-12345-ABCDE `
@@ -238,7 +238,7 @@ volumes in that partition.
238
238
Answer files can be used to enable optional features during installation. To do this, use the
239
239
[ ` -Feature ` ] [ ] argument. This argument can take multiple values to enable multiple features.
240
240
241
- ``` pwsh
241
+ ``` text
242
242
./GenerateAnswerFile autounattend.xml `
243
243
-Install CleanEfi `
244
244
-Feature Microsoft-Windows-Subsystem-Linux VirtualMachinePlatform `
@@ -264,15 +264,15 @@ using sysprep, or by using DISM tools.
264
264
265
265
### First log-on commands and scripts
266
266
267
- ``` pwsh
267
+ ``` text
268
268
./GenerateAnswerFile autounattend.xml `
269
269
-Install CleanEfi `
270
270
-FirstLogonCommand "reg add HKCU\Software\MyCompany /v ImportantRegistryKey /t REG_DWORD /d 1 /f" `
271
271
-SetupScript "\\server\share\script.ps1 -Argument" `
272
272
-LocalAccount "John,Password" `
273
273
-AutoLogonUser John `
274
274
-AutoLogonPassword Password `
275
- -ProductKey " ABCDE-12345-ABCDE-12345-ABCDE"
275
+ -ProductKey ABCDE-12345-ABCDE-12345-ABCDE
276
276
```
277
277
278
278
The [ ` -FirstLogonCommand ` ] [ ] argument can be used to execute a command when a user first logs on to the
0 commit comments