• Scott Newman-212556 (9/5/2012)


    You need to change the provider when the job runs. It's running under the sqlserver:/ provider. Just do a cd c: at the top of your script and it will now accept the unc path.

    Scott

    Hmm, that was not necessary for me. My test was successful with only a single command like so:

    Copy-Item "\\server\path\file.extension" -Destination "C:\localpath\localfilename.extension"

    For the record I am using 2008 R2 Build 10.50.2806.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato