when PulseSecure establishes certificate-based VPN connection, eventid 20225 never gets logged into application log.
Thus author should probably replace 20225 get-winevent with test-netconnection -port 389 with domain controller of admin's choosing (or autoselect the environment variable's logonserver to confirm good line-of-site with a domain controller).
confirmed with pulsesecure 9.1.7 on winx64 10.0.19045.2486
when PulseSecure establishes certificate-based VPN connection, eventid 20225 never gets logged into application log.
Thus author should probably replace 20225 get-winevent with test-netconnection -port 389 with domain controller of admin's choosing (or autoselect the environment variable's logonserver to confirm good line-of-site with a domain controller).
confirmed with pulsesecure 9.1.7 on winx64 10.0.19045.2486