How it works...

In step 1, you examine the resources on SRV1. This server has only the default DSC resources installed as part of a default installation of Windows Server 2016. This list looks like this:

In step 2, you view the details of the DSC resource File. The output looks like this:

In step 3, you use Get-DSCResource to obtain the syntax of the File resource, which looks like this:

In step 4, you create a DSC configuration. To this, you ...

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.