English 中文(简体)
Powowshell 复制项目挂挂大文件到网络位置
原标题:Powershell copy-item hangs with large file to network location
  • 时间:2012-05-21 19:39:07
  •  标签:
  • powershell

我有一个电动壳脚本, 将一大套( 80+GH) 文件复制到网络位置。 复制到位置驱动器后, 一切正常, 但现在复制到网络的备份位置后, 文件传输似乎只是挂着。 似乎文件的传输实际上已经完成, 因为文件在目的地的大小是正确的, 在查看 PerfMon 时没有网络使用, 因此它似乎只是等待或确认某事。 有其他人看到类似问题, 或者有办法将复制操作标记为“ 不验证 ” 吗?

问题回答

Powershell是很棒的,但有时呼唤外部程序可以提供更强有力的解决方案;我总是从Powershell调用机器人,在将大型文件传送到网络上时,建议你使用这种方法。

问题可能是由于网络问题或 SMB 问题而附加的。 您不提供机器操作系统的细节, 并且它也会产生影响 。

这只是一个建议 : 您是否尝试在用 PowerShell 安装的远程文件系统中使用 < cocode> Copy- tempt

New-PSDrive -Name Y -PSProvider filesystem -Root \ServerNameShare
Copy-Item BigFile Y:BigFileCopy




相关问题
Mutually exclusive powershell parameters

SCENARIO I m writing a cmdlet for Powershell 2.0 using Visual Studio 2008 and .NET 3.5 the cmdlet requires 3 arguments. my intended grammar of the cmdlet is something like this: cmdletname [foo|...

Run a program from PowerShell with timeout

I ll write a script that runs a program and wait for it finished. But if the program is not finished within a specified time I want that the program is killed.

How to transpose data in powershell

I have a file that looks like this: a,1 b,2 c,3 a,4 b,5 c,6 (...repeat 1,000s of lines) How can I transpose it into this? a,b,c 1,2,3 4,5,6 Thanks

Powershell v2 remoting and delegation

I have installed Powershell V2 on 2 machines and run Enable-PsRemoting on both of them. Both machines are Win 2003 R2 and are joined to the same active directory domain and I can successfully run ...

PowerShell -match operator and multiple groups

I have the following log entry that I am processing in PowerShell I m trying to extract all the activity names and durations using the -match operator but I am only getting one match group back. I m ...

热门标签