Copying files within a Workgroup
Posted
by Andrew La Grange
on Server Fault
See other posts from Server Fault
or by Andrew La Grange
Published on 2009-10-16T12:56:38Z
Indexed on
2010/03/24
3:03 UTC
Read the original article
Hit count: 406
I have three boxes operating in a Windows Server workgroup within a closed network. (No Domain / No AD)
There are several derivations of the scenario that I'm about to outline, but I'm sure I will be able to retool the solution as and when I need.
Essentially the boxes are:
2 x Windows Server 2008 R2 x64 Standard 1 x Windows Server 2000 Standard
I need to be able to schedule the copying/and-or/moving of files from various directories and each of the boxes. Each box has a different username and password for the administrator.
I have PowerShell 2.0 on the two Win2K8 boxes (obviously).
Previously I have used mapped network drives to copy the files, and cmd line batches, but I'd much rather use Powershell if possible (with Shares and/or $ notation). However the Copy-Item cmdlet doesn't seem to be processing the Credential correctly.
Perhaps some Powershell gurus out there might be able to help me.
Essentially I'd like to schedule a PS run of script to push backup files onto my WIn2k box (old fileserver) periodically.
© Server Fault or respective owner