Forum Discussion
Wait a second - if the script is running on the collector then maybe that's the issue? Maybe I need to install these features on the collector. I went ahead and did that and it works now from the collector OS via PowerShell but tests fail via debug on the collector: For some reason it doesn't like the token and I've tried ##system.sysname## & ##system.hostname##.
---POWERSHELL---
returns 0
error:
Get-ADReplicationFailure : Invalid URI: The server name '##system.sysname##' could not be parsed. You might need to
enable internationalized domain name support for class System.Uri. See help of class System.Uri for more details.
At C:\Program Files (x86)\LogicMonitor\Agent\tmp\test.ps1:3 char:18
+ $partner_array = Get-ADReplicationFailure -Target $hostname;
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidType: (##system.sysname##:String) [Get-ADReplicationFailure], UriFormatException
+ FullyQualifiedErrorId : ActiveDirectoryCmdlet:System.UriFormatException,Microsoft.ActiveDirectory.Management.Com
mands.GetADReplicationFailure
output:
0
Related Content
- 8 months ago
- 11 months ago