windows-powershell-docs
windows-powershell-docs copied to clipboard
Get-ADReplicationAttributeMetadata error when using powershell core
Get-ADReplicationAttributeMetadata works fine in powershell, but on powershell core it errors out about hexadecimal values
Get-ADUser -Filter "*" -ErrorAction Stop -Server $DC -credential $Credential | Get-ADReplicationAttributeMetadata -Server $DC -credential $Credential | Where-Object -FilterScript $WhereClause
Get-ADReplicationAttributeMetadata:
Line |
2 | Get-ADReplicationAttributeMetadata -Server $DC -credential $Credentia …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| '♦', hexadecimal value 0x04, is an invalid character.
Get-ADReplicationAttributeMetadata:
Line |
2 | Get-ADReplicationAttributeMetadata -Server $DC -credential $Credentia …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| '.', hexadecimal value 0x00, is an invalid character.
Get-ADReplicationAttributeMetadata:
Line |
2 | Get-ADReplicationAttributeMetadata -Server $DC -credential $Credentia …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| '►', hexadecimal value 0x10, is an invalid character.
