We are facing a weird issue using DSC at the time of deployment.
We are in the process of deploying the DSC PowerShell scripts in DEV environment for the first time. The DSC modules are copied to the Staging server to PSModulePath(C:\Program Files\WindowsPowershell\Modules), but at the time of deployment the modules are not getting recognized. This happens only when we are trying DSC deployments on the server for the first time. Rebooting the server solves the issue and DSC modules are loaded correctly. We are using WMF 4.0 .
Reboot somehow allows us to use DSC deployments, but moving forward onto PROD environment, we cannot restart all the servers that we try deployment on. Can someone help us understand what needs to be done in order to get the DSC modules\Resources recognized by LCM without a server restart.
Appreciate some quick help. Thanks in advance.