i am trying to copy a registry key and all its descends to a new key. The problem is that the key has a colon (in it.
PS HKLM:\software\RouteMatch\agencies> copy -literalpath 'rm_pa_septa:SEPTA' 'RM_PA_SEPTA_73479:SEPTA' -recurse
Copy-Item : Cannot find drive. A drive with the name 'RM_PA_SEPTA_73479' does not exist.
At line:1 char:5
+ copy <<<< -literalpath 'rm_pa_septa:SEPTA' 'RM_PA_SEPTA_73479:SEPTA' -recurse
+ CategoryInfo : ObjectNotFound: (RM_PA_SEPTA_73479:String) [Copy-Item], DriveNotFoundException
+ FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.CopyItemCommand
How do i keep the colon from being interpreted?
danny

in it.

