There's seems to be a bug in the 3.0 version of the module. When I run the this command as a scheduled task using the system account, it returns null. However, if I uninstall 3.0 and reinstall 2.8, it works fine. Here's the command:
Get-CertificationAuthority "$caname" | Get-IssuedRequest -Filter "NotAfter -ge $(Get-Date)", "NotAfter -le $((Get-Date).AddMonths(1))"
I also tried running the task as a user and a domain admin with 3.0 installed. It only worked as a domain admin - which is not how I'd really prefer to run it.
Also - the 3.0 installer gives one the choice of installing the module for all users, however the install path remains the same even if you change it. I replicated this behavior several times on a new Windows Server 2012 R2 system.
Get-CertificationAuthority "$caname" | Get-IssuedRequest -Filter "NotAfter -ge $(Get-Date)", "NotAfter -le $((Get-Date).AddMonths(1))"
I also tried running the task as a user and a domain admin with 3.0 installed. It only worked as a domain admin - which is not how I'd really prefer to run it.
Also - the 3.0 installer gives one the choice of installing the module for all users, however the install path remains the same even if you change it. I replicated this behavior several times on a new Windows Server 2012 R2 system.