Adding to Marco, try to add -force. I would test it first on a test folder,
make a copy of one directory and try
to move that directory only with the -force parameter, there may be some
read only files inside.
BTW, you can make it shorter:
move-item "v:\UXP VRC\*-*-2007" -dest v:\Archive2007 -force
---
Shay Levy
Windows PowerShell MVP
http://blogs.microsoft.co.il/blogs/ScriptFanatic Quote:
> Hi,
> I am trying to move some 2007 data which is stored in the following
> folder naming format:
> 01-Aug-2007
> to a central Archive2007 folder.
> I have the following script:
> dir "v:\UXP VRC" | Where-Object { $_.Name -like "*-*-2007" } | Move-
> Item -Destination v:\Archive2007
>
> but I get the following error when running the script:
>
> WARNING: Access to the path 'V:\UXP VRC\11-Oct-2007' is denied. (This
> appears for all folders)
>
> I can drag and drop without any issues.
> Thanks in advance.
> Giles Ogram