Home Forums Programming Powershell Errors while trying to copy files to UNC path using Powershell RE: Errors while trying to copy files to UNC path using Powershell

  • can you run $PSVersionTable?

    i'm thinking the script is for Powershell 3.0, but it's running under 2.0 context?

    the third error i would think can occur if the string $DestinationFile has less than 20 chars., c:\Data\test.csv for example

    Name Value

    ---- -----

    CLRVersion 2.0.50727.5485

    BuildVersion 6.1.7601.17514

    PSVersion 2.0

    WSManStackVersion 2.0

    PSCompatibleVersions {1.0, 2.0}

    SerializationVersion 1.1.0.1

    PSRemotingProtocolVersion 2.1

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!