Afternoon all,
I've been working on getting a days left to expiry alert from our CA's. I have found and currently testing @serco.paul's very helpful SAM template found here
Unfortunately, although it's working a number of client Servers ranging from Server2012 up to 2019, I can't seem to get a result back from our CA's, which are on 2008 R2.
The script is working fine when running remote execution (After enabling WinRM listener and F/W ports) on the CA's, but I'd like to use the script as intended for "local execution" while the SAM component is pointed at the target server.
The error I'm getting is:
Errors: ==============================================
Exception calling "Open" with "1" argument(s): "The network path was not found.
"At line:14 char:5
+ $objStore.open("ReadOnly")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : CryptographicException
This is using an account with local admin rights, and it is working on a large number of other Servers which serve different roles.
It looks to me as though something is not allowing the ${IP} script argument to be resolved on those particular servers that aren't working as I can specify the IP manually in the script (negating the need for ${IP} argument), set remote exec and it's fine.
has anyone else run into this issue? Could it be a Win2008 R2 issue? I don't have a newer CA to test with unfortunately.
thanks all