You can use listreceivedbyaddress to print out all the addresses that you have ever received money at:
>
bitcoind listreceivedbyaddress | findstr address > addresslist.txtThen some clever search and replace can turn that into a .cmd file to do the above key export for each one:
powershell.exe
Get-Content addresslist.txt | ForEach-Object { $_ -replace "` ` ` ` ` ` ` ` `"address`" : `"" , "bitcoind dumpprivkey " } | ForEach-Object { $_ -replace "`"," , " >> privkeylist.txt" } | Set-Content export.cmd
exit