How it works...

In step 1, you create a credential object to be used when invoking commands within the VM1 VM. There is no output from this step.

In step 2, you look at the files in the C:\ drive within the VM1 VM, with output that looks like this:

In step 3, you create an initial checkpoint, named Snapshot1, for the VM1 VM which produces no output.

In step 4, you examine the files that comprise the C: for the VM1 VM. As you can see, with output like this, there are two files—a base and a differencing drive:

In step 5, you create a file in ...

Get Windows Server 2016 Automation with PowerShell Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.