copy-item With Alternate Credentials

后端 未结 12 2073
长情又很酷
长情又很酷 2020-12-01 05:29

I\'m using the CTP of powershell v2. I have a script written that needs to go out to various network shares in our dmz and copy some files. However, the issue I have is that

12条回答
  •  醉话见心
    2020-12-01 05:57

    that evidently powershell's cmdlets such as copy-item, test-path, etc do not support alternate credentials...

    It looks like they do here, copy-item certainly includes a -Credential parameter.

    PS C:\> gcm -syn copy-item
    Copy-Item [-Path]  [[-Destination] ] [-Container] [-Force] [-Filter ] [-I
    nclude ] [-Exclude ] [-Recurse] [-PassThru] [-Credential ] [...]
    

提交回复
热议问题