File size limit when using Move-item cmdlet?

  • Follow


Greetings all,
Quick question.  Is there a file size limitation when using the Move-item 
cmdlet?  Given the example below, it works great for smaller files (approx 7 
MB) but not for larger files (approx 8 GB).

There exists 3 files in the $SRC_DIR. 
MHSPHP_0326.bak (approx 7 MB)
PRJ_PHINFO_LT_0628.bak  (approx 8 GB) PRJ_PHINFO_LT_backup_201006301100.bak  
(approx 8 GB) 

Issuing the following commands in Powershell 1.0

PS C:\> $SRC_DIR = "D:\DB Backups\AQDEV\PRJ_PHINFO_LT"
PS C:\> $DEST_DIR = "\\windcsrv\Backup\dbarchives\PRJ_PHINFO_LT"
PS C:\> Get-Childitem $SRC_DIR -recurse -include *.bak | move-item -dest 
$DEST_DIR -Verbose -Debug

Yield the following results:
Confirm
Are you sure you want to perform this action?
Performing operation "Move File" on Target "Item: D:\DB 
Backups\AQDEV\PRJ_PHINFO_LT\MHSPHP_0326.bak Des
\\windcsrv\Backup\dbarchives\PRJ_PHINFO_LT\MHSPHP_0326.bak".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help 
(default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing operation "Move File" on Target "Item: D:\DB 
Backups\AQDEV\PRJ_PHINFO_LT\PRJ_PHINFO_LT_0628.
 \\windcsrv\Backup\dbarchives\PRJ_PHINFO_LT\PRJ_PHINFO_LT_0628.bak".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help 
(default is "Y"):

Confirm
The file exists.
[Y] Yes  [A] Yes to All  [H] Halt Command  [S] Suspend  [?] Help (default is 
"Y"):
Move-Item : The file exists.
At line:1 char:59
+ Get-Childitem $SRC_DIR -recurse -include *.bak | move-item  <<<< -dest 
$DEST_DIR -Verbose -Debug

Confirm
Are you sure you want to perform this action?
Performing operation "Move File" on Target "Item: D:\DB
Backups\AQDEV\PRJ_PHINFO_LT\PRJ_PHINFO_LT_backup_201006301100.bak Destination:
\\windcsrv\Backup\dbarchives\PRJ_PHINFO_LT\PRJ_PHINFO_LT_backup_201006301100.bak".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help 
(default is "Y"):

Confirm
The file exists.
[Y] Yes  [A] Yes to All  [H] Halt Command  [S] Suspend  [?] Help (default is 
"Y"):
Move-Item : The file exists.
At line:1 char:59
+ Get-Childitem $SRC_DIR -recurse -include *.bak | move-item  <<<< -dest 
$DEST_DIR -Verbose -Debug
PS C:\>

Note I took the default action on all prompts ("Y") and only the 
MHSPHP_0326.bak was moved.


Can someone help me out?

Thanks in advance,



0
Reply Utf 7/1/2010 3:02:24 PM

There is no official limitation that I'm aware of.  You may also want to 
confirm this problem with PowerShell v2.

Marco

"Loopsludge" <Loopsludge@discussions.microsoft.com> wrote in message 
news:CDE50F2A-2CD1-4523-B7C3-0F00FC59D20A@microsoft.com...
> Greetings all,
> Quick question.  Is there a file size limitation when using the Move-item
> cmdlet?  Given the example below, it works great for smaller files (approx 
> 7
> MB) but not for larger files (approx 8 GB). 

0
Reply Marco 7/2/2010 1:52:09 AM


1 Replies
621 Views

(page loaded in 0.169 seconds)

Similiar Articles:













8/1/2012 12:38:07 PM


Reply: