Easy farm passphrase recovery

Since it happened twice that I forgot my MSF2010 testing environment's farm passphrase, I think that the following script could be useful to many admins at some point in time :)

 $passphrase = ConvertTo-SecureString -asPlainText -Force
Set-SPPassPhrase -PassPhrase $passphrase -Confirm

That should be it! In case you run into trouble (for example the passphrase fails to propagate to all servers in the farm), you can find more information on how to fix this by running the following command:

 Get-Help Set-SPPassPhrase -Detailed