How to do it...

Let's use the gpresult command to gather some information on policies applied to our server:

  1. Log in to the web server, or whatever client computer you want to see these results on, and open up an administrative Command Prompt.
  1. Type gpresult /r and press Enter. This displays all of the resultant data on which policies are applied, and are not applied, to our system. You can scroll through this information to get the data that you need:
  1. Now let's clean that data up a little bit. For instance, the general output we just received had information about both computer policies and user policies. Now we want to display only policies ...

Get Windows Server 2016 Administration Cookbook 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.