You can run AppCapture using Microsoft PowerShell.
Prerequisites
Verify that you are logged in as administrator and you are taking the appropriate precautions:
Procedure
- Take a snapshot of the system.
You can revert to the snapshot after the capture session.
- Open a 32-bit or 64-bit PowerShell console,
- Import the PowerCLI module using the import-module vmware.appcapture command.
This imports the
AppCapture module.
- (optional) To see a list of all modules, run the get-module command.
- Run the command Start-AVAppCapture -Name appStackFile, where appStackFile is the name of the AppStack .vhd file to create.
Do not press
Enter yet.
appStackFile
.vhd is created.
- Leave the PowerShell console and install, on this machine, any applications to be provisioned.
- After all of the applications have been installed, open the PowerShell console again.
- Press Enter.
- Reboot your machine if necessary.
In the
AppCapture console window you see the locations of the
AppStack files
.json,
.vhd and
.vmdk. By default, these files are stored in
C:\ProgramData\VMware\AppCapture\appvhds.
- (Optional) Examine the .json, .vhd, and .vmdk files in that directory to ensure that the applications have been bundled.
- Copy the AppStacks that you have created to a staging file share.
- Revert to the system snapshot that you captured before you started the first capture session.
- Copy the AppStacks from the staging file share to your system.