I solved the problem by writing the following script:
$ADSyncRules = Get-ADSyncRule
$connectors = Get-ADSyncConnector
$ConfigBasePath = "C:\temp"
$ADSyncRules|select Identifier,Name, @{n="Connector";e={($connectors|Where Identifier -eq $_.Connector).Name}},Description,Disabled,IsStandardRule,Precedence, SourceObjectType,TargetObjectType,LinkType,Direction | Export-Csv ("$ConfigBasePath\{0}.csv" -f $env:COMPUTERNAME) -NoTypeInformation -Force