Skip to content

Commit 76226fe

Browse files
authored
Merge pull request #39304 from MattKotsenas/patch-1
Fix bcdedit commands for PowerShell in prepare-for-upload-vhd-image.md
2 parents 5ee3236 + bdb0203 commit 76226fe

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

articles/virtual-machines/windows/prepare-for-upload-vhd-image.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -269,23 +269,19 @@ Make sure the VM is healthy, secure, and RDP accessible:
269269
> Use an elevated PowerShell window to run these commands.
270270
271271
```powershell
272-
cmd
273-
274-
bcdedit /set {bootmgr} integrityservices enable
275-
bcdedit /set {default} device partition=C:
276-
bcdedit /set {default} integrityservices enable
277-
bcdedit /set {default} recoveryenabled Off
278-
bcdedit /set {default} osdevice partition=C:
279-
bcdedit /set {default} bootstatuspolicy IgnoreAllFailures
272+
bcdedit /set "{bootmgr}" integrityservices enable
273+
bcdedit /set "{default}" device partition=C:
274+
bcdedit /set "{default}" integrityservices enable
275+
bcdedit /set "{default}" recoveryenabled Off
276+
bcdedit /set "{default}" osdevice partition=C:
277+
bcdedit /set "{default}" bootstatuspolicy IgnoreAllFailures
280278
281279
#Enable Serial Console Feature
282-
bcdedit /set {bootmgr} displaybootmenu yes
283-
bcdedit /set {bootmgr} timeout 5
284-
bcdedit /set {bootmgr} bootems yes
285-
bcdedit /ems {current} ON
280+
bcdedit /set "{bootmgr}" displaybootmenu yes
281+
bcdedit /set "{bootmgr}" timeout 5
282+
bcdedit /set "{bootmgr}" bootems yes
283+
bcdedit /ems "{current}" ON
286284
bcdedit /emssettings EMSPORT:1 EMSBAUDRATE:115200
287-
288-
exit
289285
```
290286
3. The dump log can be helpful in troubleshooting Windows crash issues. Enable the dump log collection:
291287

0 commit comments

Comments
 (0)