As the title suggests I was wondering if it is possible to edit the iis pull server in such a way that I can capture all requests and run my own code path.
I have created the IIS pull server following this tutorial from microsoft: Setting Up a DSC Web Pull Server
In my DSC configuration I have imported the xWebAdministration module and used the xDscWebService resource to create my PullServer and its endpoints.
I have applied this configuration to my pull server machine and have been able to have my pull client pull configurations from the pull server.
Hopes and Dreams:
The goal of my question is to be able to trigger my own code following any pull request from client nodes.
I was planning on creating code for a maintenance window. The goal would be that the pull server would only supply a configuration if the target node was in the set window. With custom code on the pull server I could capture the pull request and run my logic to determine if the target node is currently in the maintenance window.
Any idea on how to accomplish this would be greatly appreciated.