![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Copy|Move-ItemProperty: different meaning of -Name: why? From help: Copy-ItemProperty -name <string> Move-ItemProperty -name <string[]> It seems to me Copy and Move parameters should be as much similar as possible. Variant with <string[]> looks more practically useful. Any remarks? -- Thanks, Roman Kuzmin |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Copy|Move-ItemProperty: different meaning of -Name: why? Possible it's a typo in the help file? Both parms accept pipeline input, which sort of implies an array/collection. Wouldn't be the first help file typo, in any event. -- Don Jones Windows PowerShell MVP Founder: www.ScriptingAnswers.com Co-Author: "Windows PowerShell: TFM" "Roman Kuzmin" <z@z.z> wrote in message news:ei7e6cRhHHA.392@TK2MSFTNGP06.phx.gbl... > From help: > Copy-ItemProperty -name <string> > Move-ItemProperty -name <string[]> > > It seems to me Copy and Move parameters should be as much similar as > possible. Variant with <string[]> looks more practically useful. > > Any remarks? > > -- > Thanks, > Roman Kuzmin > > |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Copy|Move-ItemProperty: different meaning of -Name: why? No, unfortunately it is not a typo in the help file: Example a1: is a PSDrive in the Registry: Copy-ItemProperty fails: > Copy-ItemProperty . -Name Command0,HotKey -Dest a1:\Item1 Copy-ItemProperty : Cannot convert 'System.Object[]' to the type 'System.String' required by parameter 'Name'. Specified method is not supported. At line:1 char:26 + Copy-ItemProperty . -Name <<<< Command0,HotKey -Dest a1:\Item1 But Move-ItemProperty with the same parameters succeeds: > Move-ItemProperty . -Name Command0,HotKey -Dest a1:\Item1 -- Thanks, Roman Kuzmin "Don Jones [MVP]" <don@sapien.com> wrote in message news:C3556BCB-27C3-40E1-A6AA-0802C2E9C880@microsoft.com... > Possible it's a typo in the help file? Both parms accept pipeline input, > which sort of implies an array/collection. Wouldn't be the first help file > typo, in any event. > > -- > Don Jones > Windows PowerShell MVP > Founder: www.ScriptingAnswers.com > Co-Author: "Windows PowerShell: TFM" |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Copy/Move files. | Vista General | |||
| copy or move | General Discussion | |||
| Re: Copy and Move Paralysis | Vista performance & maintenance | |||
| COPY/MOVE | Vista General | |||
| Copy-Item or Copy-ItemProperty and Remote Registry. | PowerShell | |||