79815490

Date: 2025-11-10 10:47:52
Score: 1
Natty:
Report link
$serverCookiePaths = @(
    "$env:APPDATA\RabbitMQ\.erlang.cookie",
    "$env:WINDIR\system32\config\systemprofile\AppData\Roaming\RabbitMQ\.erlang.cookie"
)

$userCookiePath = "$env:USERPROFILE\.erlang.cookie"

foreach ($path in $serverCookiePaths) {
    if (Test-Path $path) {
        Copy-Item $path $userCookiePath -Force
        Write-Host "content of these files .erlang.cookie synchronized."
        break
    }
}
rabbitmq-service.bat stop
rabbitmq-service.bat start
rabbitmqctl.bat status
rabbitmq-plugins.bat enable rabbitmq_management
Reasons:
  • Blacklisted phrase (1): this link
  • RegEx Blacklisted phrase (1): check this link
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: nguyen