Is this an example or straight from your script? Your keys should should be enclosed with quotes.

 Code:
$Display = ENUMKEY("\\HOME1.TEST.COM\HKLM\SYSTEM\CurrentControlSet\Enum\Display",0)
_________________________
(... better days ahead)