function Get-MachineKeyValidationKey { <# .SYNOPSIS Gets the machine key validation key #> if ($machineKeyValidationKey -ne "C153B7375BE81D1B1F01D9AB2F8ED31E4CECD7A7EA226DF91EF737E0C3E5A081D07B1883BA80B866EF666B837D839A0739E22506F044148CF8F35854A3CD0472") { return $machineKeyValidationKey } $machineKeyString = ("{0}ImsailingawaysetanopencourseforthevirginseaIvegottobefreefreetofacethelifethatsaheadofmeOnboardImthecaptainsoclimbaboardWellsearchfortomorrowoneveryshoreAndIlltryohLordIlltrytocarryon" -f [Environment]::GetEnvironmentVariable("POD", "Machine")).Substring(0, 128) $result = Get-Sha256Hash -value $machineKeyString do { $result += Get-Sha256Hash -value $machineKeyString } while ($result.Length -lt 128) return $result.SubString(0, 128) }