Skip to content

Commit 5b9f0e5

Browse files
Merge pull request #231681 from JimMoyle/patch-1
Slight code changes to use DeviceID variable
2 parents 3f1c589 + a211708 commit 5b9f0e5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

articles/virtual-desktop/app-attach.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ To mount a CimFS disk image:
109109
$mount = Mount-CimDiskimage -ImagePath $diskImage -PassThru -NoMountPath
110110
111111
#We can now get the Device Id for the mounted volume, this will be useful for the destage step.
112-
Write-Output $mount.DeviceId
112+
$DeviceId = $mount.DeviceId
113+
Write-Output $DeviceId
113114
```
114115

115116
2. When you're done, proceed to [Finish staging your disk image](#finish-staging-your-disk-image).
@@ -136,11 +137,11 @@ To mount a VHD(X) disk image:
136137

137138
### Finish staging your disk image
138139

139-
Finally, you'll need to run the following command for all image formats to complete staging the disk image. This command will use the `$mount` variable you created when you mounted your disk image in the previous section.
140+
Finally, you'll need to run the following command for all image formats to complete staging the disk image. This command will use the `$DeviceId` variable you created when you mounted your disk image in the previous section.
140141

141142
```powershell
142143
#Once the volume is mounted we can retrieve the application information
143-
$manifest = Get-Childitem -LiteralPath $mount.DeviceId -Recurse -File AppxManifest.xml
144+
$manifest = Get-Childitem -LiteralPath $DeviceId -Recurse -File AppxManifest.xml
144145
$manifestFolder = $manifest.DirectoryName
145146
146147
#We can now get the MSIX package full name, this will be needed for later steps.
@@ -212,7 +213,7 @@ Remove-AppxPackage -AllUsers -Package $msixPackageFullName
212213
Remove-AppxPackage -Package $msixPackageFullName
213214
```
214215

215-
## Dismount the disks from the system
216+
### Dismount the disks from the system
216217

217218
To finish the destaging process, you'll need to dismount the disks from the system. The command you'll need to use depends on the format of your disk image.
218219

@@ -306,4 +307,4 @@ You can find demonstration scripts for all four stages of the MSIX App Attach pa
306307
307308
If you have any questions, you can ask them at the [Azure Virtual Desktop TechCommunity](https://techcommunity.microsoft.com/t5/Windows-Virtual-Desktop/bd-p/WindowsVirtualDesktop).
308309
309-
You can also leave feedback for Azure Virtual Desktop at the [Azure Virtual Desktop feedback hub](https://support.microsoft.com/help/4021566/windows-10-send-feedback-to-microsoft-with-feedback-hub-app).
310+
You can also leave feedback for Azure Virtual Desktop at the [Azure Virtual Desktop feedback hub](https://support.microsoft.com/help/4021566/windows-10-send-feedback-to-microsoft-with-feedback-hub-app).

0 commit comments

Comments
 (0)